Debian Codegraph @

texmf-dist/doc/latex/lapdf/README

raw
1 Lapdf
2 -----
3 This is a short introduction for the Lapdf style. It has many instructive example
4 files to show the usage of this macro package. I hope, this style helps you to
5 produce nice graphics with the pdfTeX engine.
6
7 This package is distributed under the GNU general pupblic licence (GPL) and it's
8 free to use by everyone.
9
10
11 What is it?
12 -----------
13 Lapdf needs pdfTeX and the calc style, which is included in the LaTeX tools
14 folder as standard package. Lapdf is a drawing environment like the standard
15 LaTeX picture environment. So you can design you graphic from within the LaTeX
16 document. Lapdf uses pdfTeX to calculate everything and native PDF commands for
17 drawing everything. It lets you also put typesetted text into the graphic, which
18 is sometimes rather complicated in other packages.
19
20 Additionally to all the PDF drawing commands, Lapdf has a unique set of it's own
21 drawing primitives and other macros. Here is a list:
22
23 Math functions: These macros are used internally, but they can be also used in
24 your own drawings.
25 Sin, Cos, Tan, Asin, Acos, Atan, Sinh, Cosh, Tanh, Asinh,
26 Acosh, Atanh, Exp, Pow, Ln, Log, Pot, Root, Sqrt, Abs, Sig,
27 Mod, Len, Hypot, Direc, Rotpoint
28
29 Loop macros: There are two looping macros for repeating tasks:
30 - Whilenum{condition}{commands}
31 - Whiledim{condition}{commands}
32
33 PDF commands: These are the available PDF drawing primitives. I used my own
34 names, which differ only a bit from the original names:
35 - Gsave
36 - Grestore
37 - Setclip
38 - Stroke
39 - Closepath
40 - Setwidth
41 - Setcap
42 - Setjoin
43 - Setflat
44 - Setmiter
45 - Setdash
46 - Bezier
47 - Concat
48 - Translate
49 - Scale
50 - Rotate
51 - Rect
52
53 Typesetting: You can typeset text at position with direction with:
54 - Text
55
56 Drawing macros: Lapdf fully supports color without the need of any style file. Color
57 usage is specified as an option [black | color] in the preamble:
58 - Setcol
59 - Setgray
60 For repreated color changes (especially in loops) there are 96
61 rainbow colors defined, wich can be used with these macros:
62 - Stepcol
63 - Nextcol
64 - Resetcol
65 Here are the standard drawing primitives:
66 - Moveto
67 - Lineto
68 - Line
69 - Polygon
70 - Vecto
71 - Vect
72 - Vpolygon
73 - Rectangle
74 - Triangle
75 - Epolygon
76 - Circle
77 - Point
78 - Ellipse
79 - Arc
80 - Sector
81 - Arcto
82 - Fill
83 - Gfill
84 - Sfill
85 These are special Bezier curve additions, which are unique. Lapdf
86 lets you draw integral and also rational Bezier curves up to a
87 degree of seven.
88 - Curveto
89 - Curve
90 - Rmoveto
91 - Rcurveto
92 - Rcurve
93 - Quadratic
94 - Cubic
95 There are 5 kinds of grids availabe:
96 - Lingrid
97 - Logxgrid
98 - Logygrid
99 - Logxygrid
100 - Polgrid
101 You can plot functions in three different ways: normal functions,
102 parameter functions, polar functions with these commands:
103 - Fplot
104 - Tplot
105 - Pplot
106 Additionally you can plot polynoms (degree <= 3) directly and also
107 Tangents:
108 - Polynom
109 - Tangent
110 For special tasks you can also compute polynom values, derivatives,
111 partial and total derivatives:
112 - Fpoly
113 - Dpoly
114 - Df
115 - Dtx
116 - Dty
117 - Dtt
118 - Dpx
119 - Dpy
120 - Dpt
121 Some macros are useful shortcuts, like these:
122 - Thick
123 - Thin
124 - Dash
125 - Black
126 - Dred
127 - Dgreen
128 - Dblue
129 - Dcyan
130 - Dmagenta
131 - Dyellow
132 - Dgray
133 - Gray
134 - Red
135 - Green
136 - Blue
137 - Cyan
138 - Magenta
139 - Yellow
140 - White
141
142 Documentation:
143 --------------
144 There are several additional info files, which help you to use this package. I'm
145 still working on the documentation, but the intro chapter completed. This Lapdf
146 docs will be completed as soon as possible. The package itself will also be
147 updated regularly. If you find errors or have any suggestions for improvements,
148 please let me know.
149
150 I wish you happy Texing with Lapdf!
151
152 Detlef Reimers
153
154 ---------------------------------------------------------------------------------
155 (Email: [email protected]; Web: http://detlefreimers.de)
156