Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/macros/latex/contrib/lapdf

Lapdf
-----
This is a short introduction for the Lapdf style. It has many instructive example
files to show the usage of this macro package. I hope, this style helps you to
produce nice graphics with the pdfTeX engine.

This package is distributed under the GNU general pupblic licence (GPL) and it's
free to use by everyone.


What is it?
-----------
Lapdf  needs pdfTeX and the calc style, which is included in the LaTeX tools
folder as standard package. Lapdf is a drawing environment like the standard
LaTeX picture environment. So you can design you graphic from within the LaTeX
document. Lapdf uses pdfTeX to calculate everything and native PDF commands for
drawing everything. It lets you also put typesetted text into the graphic, which
is sometimes rather complicated in other packages.

Additionally to all the PDF drawing commands, Lapdf has a unique set of it's own
drawing primitives and other macros. Here is a list:

Math functions: These macros are used internally, but they can be also used in
                your own drawings.
                Sin, Cos, Tan, Asin, Acos, Atan, Sinh, Cosh, Tanh, Asinh,
                Acosh, Atanh, Exp, Pow, Ln, Log, Pot, Root, Sqrt, Abs, Sig,
                Mod, Len, Hypot, Direc, Rotpoint

Loop macros:    There are two looping macros for repeating tasks:
                - Whilenum{condition}{commands}
                - Whiledim{condition}{commands}

PDF commands:  These are the available PDF drawing primitives. I used my own
               names, which differ only a bit from the original names:
                - Gsave
                - Grestore
                - Setclip
                - Stroke
                - Closepath
                - Setwidth
                - Setcap
                - Setjoin
                - Setflat
                - Setmiter
                - Setdash
                - Bezier
                - Concat
                - Translate
                - Scale
                - Rotate
                - Rect

Typesetting:    You can typeset text at position with direction with:
                - Text

Drawing macros: Lapdf fully supports color without the need of any style file. Color
                usage is specified as an option [black | color] in the preamble:
                - Setcol
                - Setgray
                For repreated color changes (especially in loops) there are 96
                rainbow colors defined, wich can be used with these macros:
                - Stepcol
                - Nextcol
                - Resetcol
                Here are the standard drawing primitives:
                - Moveto
                - Lineto
                - Line
                - Polygon
                - Vecto
                - Vect
                - Vpolygon
                - Rectangle
                - Triangle
                - Epolygon
                - Circle
                - Point
                - Ellipse
                - Arc
                - Sector
                - Arcto
                - Fill
                - Gfill
                - Sfill
                These are special Bezier curve additions, which are unique. Lapdf
                lets you draw  integral and also rational Bezier curves up to a
                degree of seven.
                - Curveto
                - Curve
                - Rmoveto
                - Rcurveto
                - Rcurve
                - Quadratic
                - Cubic
                There are 5 kinds of grids availabe:
                - Lingrid
                - Logxgrid
                - Logygrid
                - Logxygrid
                - Polgrid
                You can plot functions in three different ways: normal functions,
                parameter functions, polar functions with these commands:
                - Fplot
                - Tplot
                - Pplot
                Additionally you can plot polynoms (degree <= 3) directly and also
                Tangents:
                - Polynom
                - Tangent
                For special tasks you can also compute polynom values, derivatives,
                partial and total derivatives:
                - Fpoly
                - Dpoly
                - Df
                - Dtx
                - Dty
                - Dtt
                - Dpx
                - Dpy
                - Dpt
                Some macros are useful shortcuts, like these:
                - Thick
                - Thin
                - Dash
				- Black
				- Dred
				- Dgreen
				- Dblue
				- Dcyan
				- Dmagenta
				- Dyellow
				- Dgray
				- Gray
				- Red
				- Green
				- Blue
				- Cyan
				- Magenta
				- Yellow
				- White
                
Documentation:
--------------
There are several additional info files, which help you to use this package. I'm
still working on the documentation, but the intro chapter completed. This Lapdf
docs will be completed as soon as possible. The package itself will also be
updated regularly. If you find errors or have any suggestions for improvements,
please let me know.

I wish you happy Texing with Lapdf!
              
Detlef Reimers

---------------------------------------------------------------------------------
(Email: detlefreimers@gmx.de; Web: http://detlefreimers.de)

Files

Name Size Date Notes
README 5276 2011-09-01 11:45
arcs.pdf 49090 2011-09-01 09:39
arcs.tex 3216 2011-08-28 08:22
bezier.pdf 29686 2011-09-01 09:39
bezier.tex 710 2011-08-30 02:34
bezinfo.pdf 183380 2011-09-01 09:44
bezinfo.tex 17213 2011-09-01 09:45
buttrfly.pdf 63591 2011-09-01 09:46
buttrfly.tex 904 2011-08-30 02:56
cfamily.pdf 133879 2011-09-01 09:47
cfamily.tex 2832 2011-08-30 11:15
chrysant.pdf 64067 2011-09-01 09:50
chrysant.tex 1012 2011-08-30 02:58
circle.pdf 110915 2011-09-01 09:52
circle.tex 698 2011-08-30 03:25
colors.pdf 46716 2011-09-01 09:53
colors.tex 1470 2011-08-31 05:25
conic.pdf 72567 2011-09-01 09:53
conic.tex 1966 2011-08-31 05:26
curve.pdf 41571 2011-09-01 09:54
curve.tex 1505 2011-09-01 09:54
curveto.pdf 41648 2011-09-01 09:55
curveto.tex 1661 2011-09-01 09:55
cycloid.pdf 99390 2011-09-01 09:56
cycloid.tex 1933 2011-08-29 01:33
drawing.pdf 26583 2011-09-01 09:57
drawing.tex 1216 2011-08-31 05:27
ellipse.pdf 47804 2011-09-01 09:57
ellipse.tex 644 2011-08-28 06:08
fplot.pdf 227620 2011-09-01 11:30
fplot.tex 6525 2011-09-01 11:30
geometry.pdf 63809 2011-09-01 09:58
geometry.tex 1047 2011-08-31 05:27
grids.pdf 229252 2011-09-01 09:58
grids.tex 1114 2011-08-27 01:19
hippo.pdf 105081 2011-09-01 09:59
hippo.tex 555 2011-08-27 01:14
lapdf.pdf 182669 2011-09-01 10:01
lapdf.sty 64602 2011-09-01 11:51
lapdf.tex 12730 2011-09-01 10:01
licence.txt 31881 2011-09-01 11:43
line.pdf 19730 2011-09-01 10:02
line.tex 802 2011-08-31 05:28
polygon.pdf 16663 2011-09-01 10:02
polygon.tex 789 2011-08-27 01:20
polynom.pdf 71016 2011-09-01 10:02
polynom.tex 1156 2011-08-31 05:29
pplot.pdf 121582 2011-09-01 10:03
pplot.tex 2069 2011-08-27 01:25
preamble.tex 258 2011-08-25 02:52
pythagor.pdf 39381 2011-09-01 10:04
pythagor.tex 1886 2011-08-31 05:30
qcircle.pdf 72118 2011-09-01 10:04
qcircle.tex 1619 2011-08-30 01:47
quartic.pdf 47720 2011-09-01 10:04
quartic.tex 1496 2011-08-30 03:24
rational.pdf 43159 2011-09-01 10:05
rational.tex 1724 2011-08-29 02:19
rcircle.pdf 192395 2011-09-01 10:05
rcircle.tex 9427 2011-08-31 05:31
rcurve.pdf 65806 2011-09-01 11:27
rcurve.tex 2697 2011-08-27 01:44
recttria.pdf 19394 2011-09-01 10:06
recttria.tex 578 2011-08-27 01:45
roundtri.pdf 90600 2011-09-01 10:07
roundtri.tex 938 2011-08-30 04:26
rparams.pdf 120228 2011-09-01 10:07
rparams.tex 1918 2011-08-27 01:47
superell.pdf 92445 2011-09-01 09:36
superell.tex 1707 2011-09-01 09:06
tplot.pdf 71803 2011-09-01 10:08
tplot.tex 3411 2011-08-31 05:32
trochoid.pdf 91080 2011-09-01 10:10
trochoid.tex 2543 2011-08-27 06:43
turtle.pdf 27780 2011-09-01 10:11
turtle.tex 2849 2011-08-27 02:01
vector.pdf 23475 2011-09-01 10:12
vector.tex 815 2011-08-27 02:02

Down­load the con­tents of this pack­age in one zip archive (2.7M).

lapdf – PDF draw­ing di­rectly in TeX doc­u­ments

The pack­age pro­vides the means to use PDF draw­ing prim­i­tives to pro­duce high qual­ity, col­ored graph­ics. It

  • uses B├ęzier curves (in­te­gral and ra­tio­nal) from de­gree one to seven,
  • al­lows TeX type­set­ting in the graphic,
  • of­fers most of the stan­dard math func­tions,
  • al­lows plot­ting nor­mal, para­met­ric and po­lar func­tions.
The pack­age has lin­ear, logx, logy, logxy and po­lar grids with many specs;
  • it can ro­tate, clip and do many nice things eas­ily
  • it has two loop­ing com­mands for pro­gram­ming and many in­struc­tive ex­am­ple files.
The pack­age re­quires pdfTeX but oth­er­wise only de­pends on the calc pack­age.

Pack­age De­tailslapdf
Ver­sion1.1
Li­censeGNU Gen­eral Public Li­cense
Copy­right2006-2011 Detlef Reimers
Main­tainerDetlef Reimers
Con­tained inTeXlive as lapdf
MikTeX as lapdf
Topics graph­ics pro­duced by one of the *TeX en­gines
Guest Book Sitemap Contact