Thursday, January 20, 2011

Latex: Cropped PDFs from TikZ

Using the preview package. The package provides several ways of previewing parts of your document. For example, adding this to your document preamble:
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
will extract every tikzpicture environment. If you use pdflatex, every tikzpicture will be put on a separate page in the resulting pdf document. See the documentation for more details. To add a margin around the figure add:

No comments:

Post a Comment