1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
<head>
<title>UK TeX FAQ -- question label drawing</title>
</head><body>
<h3>Drawing with TeX</h3>
<p/>There are many packages to do pictures in (La)TeX itself (rather than
importing graphics created externally), ranging from simple use of
LaTeX <code>picture</code> environment, through enhancements like
<i>epic</i>, to
sophisticated (but slow) drawing with PicTeX. Depending on your type
of drawing, and setup, here are a few systems you may consider:
<ul>
<li> <i>pict2e</i>; this was advertised in
<a href="FAQ-books.html">the LaTeX manual</a>, but didn’t appear for nearly
ten years after publication of the book! It removes all the petty
niggles that surround the use of the <code>picture</code>
environment. It therefore suffers <em>only</em> from the rather
eccentric drawing language of the environment, and is a far more
useful tool than the original environment has ever been. (Note that
<i>pict2e</i> supersedes David Carlisle’s stop-gap
<i>pspicture</i>.)
<li> <i>PSTricks</i>; this gives you access to all the power of
PostScript from TeX itself, by sophisticated use of
<a href="FAQ-specials.html"><code>\</code><code>special</code> commands</a>. Since PostScript is itself a
pretty powerful programming language, many astounding things can in
principle be achieved using <i>PSTricks</i>.
<i>pstricks</i>’ <code>\</code><code>special</code>s are
by default specific to <i>dvips</i>, but VTeX (both in its
commercial and in its free versions) understands them. PDFTeX
users may use <i>pst-pdf</i>, which (like
<i>epstopdf</i> — see
<a href="FAQ-pdftexgraphics.html">PDFLaTeX graphics</a>) generates
PDF files using an auxiliary program, from <i>PSTricks</i>
commands (<i>pst-pdf</i> also requires a recent installation of
the <i>preview</i> package).
<p/> There is a <i>PSTricks</i> mailing list
(<a href="mailto:pstricks@tug.org"><i>pstricks@tug.org</i></a>) which you may
<a href="http://tug.org/mailman/listinfo/pstricks">join</a>, or you may
just browse the
<a href="http://tug.org/pipermail/pstricks/">list archives</a>.
<li> <i>pgf</i>: while <i>pstricks</i> is very powerful and
convenient, using it with PDFLaTeX is an awful fidget: if you
simply want the graphical capabilities, <i>pgf</i>, together with
its rather pleasing “user-oriented” interface <i>tikz</i>, may be a good
bet for you. While PDF has (in essence) the same graphical
capabilities as PostScript, it isn’t programmable; <i>pgf</i> provides
common LaTeX commands that will utilise the graphical
capabilities of both PostScript and PDF equally.
<li> MetaPost; you liked Metafont, but never got to grips with font files?
Try <a href="FAQ-MP.html">MetaPost</a> —
all the power of Metafont, but it generates PostScript figures; MetaPost
is nowadays part of most serious (La)TeX distributions. Knuth
uses it for all his work...
<li> <i>Mfpic</i>; you liked Metafont, but can’t understand the
language? The package makes up Metafont or MetaPost code for you
within using familiar-looking TeX macros. Not <em>quite</em> the
full power of MetaPost, but a friendlier interface; of course, with
MetaPost output, the results can be used equally well in either
LaTeX or PDFLaTeX.
<li> You liked PicTeX but don’t have enough memory or time? Look
at Eitan Gurari’s <i>dratex</i>, which is as powerful as most
other TeX drawing packages, but is an entirely new
implementation, which is not as hard on memory, is much more
readable (and is fully documented).
</ul>
<dl>
<dt><tt><i>dratex.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/graphics/dratex.zip">graphics/dratex</a> (<a href="ftp://cam.ctan.org/tex-archive/graphics/dratex.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/graphics/dratex/">browse</a>)
<dt><tt><i>mfpic</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/graphics/mfpic.zip">graphics/mfpic</a> (<a href="ftp://cam.ctan.org/tex-archive/graphics/mfpic.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/graphics/mfpic/">browse</a>)
<dt><tt><i>preview.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/preview.zip">macros/latex/contrib/preview</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/preview.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/preview/">browse</a>)
<dt><tt><i>pspicture.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/pspicture.zip">macros/latex/contrib/pspicture</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/pspicture.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/pspicture/">browse</a>)
<dt><tt><i>pst-pdf.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/pst-pdf.zip">macros/latex/contrib/pst-pdf</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/pst-pdf.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/pst-pdf/">browse</a>)
<dt><tt><i>pgf.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/graphics/pgf.zip">graphics/pgf</a> (<a href="ftp://cam.ctan.org/tex-archive/graphics/pgf.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/graphics/pgf/">browse</a>)
<dt><tt><i>pict2e.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/pict2e.zip">macros/latex/contrib/pict2e</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/pict2e.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/pict2e/">browse</a>)
<dt><tt><i>pstricks</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/graphics/pstricks.zip">graphics/pstricks</a> (<a href="ftp://cam.ctan.org/tex-archive/graphics/pstricks.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/graphics/pstricks/">browse</a>)
<dt><tt><i>tikz.sty</i></tt><dd>Distributed with <a href="ftp://cam.ctan.org/tex-archive/graphics/pgf.zip">graphics/pgf</a> (<a href="ftp://cam.ctan.org/tex-archive/graphics/pgf.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/graphics/pgf/">browse</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=drawing">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=drawing</a>
</body>
|