diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:38:23 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:38:23 +0000 |
commit | 78c2bcf9e96ab00615ee6f96905bca78fcd52a00 (patch) | |
tree | 9c7e31f2a59e174433e55b589771005b48a34158 /doc/user/pie_intr | |
parent | 9daa98ce90ceeeaba9e942d28575d8fcfe36db4b (diff) | |
download | lout-78c2bcf9e96ab00615ee6f96905bca78fcd52a00.tar.gz |
Lout 3.27.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@23 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'doc/user/pie_intr')
-rw-r--r-- | doc/user/pie_intr | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/doc/user/pie_intr b/doc/user/pie_intr new file mode 100644 index 0000000..9eca4d2 --- /dev/null +++ b/doc/user/pie_intr @@ -0,0 +1,65 @@ +@Section + @Title { Introduction } + @Tag { pie_intr } +@Begin +@PP +The Lout definitions for pie graph formatting are kept in a file called +{@Code "pie"}, which you must include at the start of your document if +pie.file @Index { @Code "pie" setup file } +you want pie graphs, like this: +@ID -1px @Break @OneRow @Code { +"@SysInclude { pie }" +"@SysInclude { doc }" +"@Doc @Text @Begin" +"..." +"@End @Text" +} +Setup files for specialized packages, such as {@Code "pie"}, should be +included before the main setup file. Once this is done, the @Code "@Pie" +symbol used below will then be available for use anywhere within your +document. As usual in Lout, the @Code "@Pie" symbol produces an object +which may appear anywhere at all -- in a centred display, for example, +or in a figure, or as an entry in a table. +@PP +A pie graph is made by a @Code "@Pie" symbol enclosing a sequence of +@Code "@Slice" symbols. These @Code "@Slice" symbols and their options +are the only things that may appear inside the @Code "@Pie" symbol. +@PP +Every option of @Code "@Slice" is also an option of {@Code "@Pie"}. +Giving a value to such an option at @Code "@Pie" will make that +the default value for very {@Code "@Slice"}. For example, +you can write +@ID -1px @Break @OneRow @Code @Verbatim { +@Pie + weight { 20 } +{ + ... +} +} +to give every slice a weight (angular extent) of 20. If all but a +few slices have the same weight, you can still do this, just giving +a @Code weight option to the exceptional slices. +@PP +Furthermore, every option of @Code "@Pie" appears in the setup +file, and giving a value to an option there makes that value the +default value for every @Code "@Pie" in your document. For example, +if you want every slice of every pie to be light red, you can set +the @Code paint option in the setup file to {@Code lightred}, +and all your slices will be painted this colour unless you +override the setup file value by giving @Code paint options to +some pies or slices. +@PP +See Section @NumberOf setup to find out how to make your own copy +of the setup file, perhaps calling it {@Code mypie}, and change +some options within it. Your document would then typically +start like this: +@ID -1px @Break @OneRow @Code { +"@Include { mypie }" +"@SysInclude { doc }" +"@Doc @Text @Begin" +"..." +"@End @Text" +} +and by changing options within file @Code "mypie" you can +affect every pie graph in your document. +@End @Section |