### Drawing with TeX

There are many packages to do pictures in (La)TeX itself (rather than importing graphics created externally), ranging from simple use of LaTeX `picture` environment, through enhancements like epic, to sophisticated (but slow) drawing with PiCTeX. Depending on your type of drawing, and setup, here are a few systems you may consider:

- pict2e; this was advertised in the LaTeX manual, 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 `picture` environment. It therefore suffers only 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 pict2e supersedes David Carlisle’s stop-gap pspicture.)
- pstricks; this gives you access to all the power of PostScript from TeX itself, by sophisticated use of `\``special` commands. Since PostScript is itself a pretty powerful programming language, this means there are many astounding things that can in principle be achieved. pstricks’ `\``special`s are by default specific to dvips, but VTeX (both in its commercial and in its free versions) understands them. PDFTeX users may use pdftricks, which (like epstopdf — see PDFLaTeX graphics) generates PDF files on the fly from pstricks commands. The documentation is good (you may browse it via the pstricks page on the TUG web site). There is also a mailing list (pstricks@tug.org) which you may join, or you may just browse the list archives.
- pgf: while pstricks is very powerful and convenient, using it with PDFLaTeX is an awful fidget: if you simply want the graphical capabilities, pgf, together with its rather pleasing “user-oriented” interface tikz, may be a good bet for you. While PDF has (in essence) the same graphical capabilities as PostScript, it isn’t programmable; pgf provides common LaTeX commands that will utilise the graphical capabilities of both PostScript and PDF equally.
- MetaPost; you liked Metafont, but never got to grips with font files? Try MetaPost — 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...
- Mfpic; 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 quite 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.
- You liked PiCTeX but don’t have enough memory or time? Look at Eitan Gurari’s dratex, 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).

`dratex.sty`
  graphics/dratex (gzipped tar, browse)
`mfpic`
  graphics/mfpic (gzipped tar, browse)
`pdftricks.sty`
  macros/latex/contrib/pdftricks (gzipped tar, browse)
`pspicture.sty`
  macros/latex/contrib/pspicture (gzipped tar, browse)
`pgf.sty`
  graphics/pgf (gzipped tar, browse)
`pict2e.sty`
  macros/latex/contrib/pict2e (gzipped tar, browse)
`pstricks`
  graphics/pstricks (gzipped tar, browse)
`tikz.sty`
  Distributed with graphics/pgf (gzipped tar, browse)

This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=drawing