[texhax] compile to a small PDF
Martin Heller
mr_heller at yahoo.dk
Mon Sep 8 18:05:43 CEST 2008
ap skrev:
> I wanted to know if there's a method to compile a small piece of LaTeX
> code to a standalone PDF output containing only that part. I might not
> be very clear, but I basically want to convert for example a formula
> to a PDF output displaying that formula as interpreted by LaTeX (for
> example as latex2html does, or even as MediaWiki does with texvc and
> the <math>...</math> construct - except I am looking for PDF output
> and not PNG).
with preview.sty
\usepackage[active,tightpage]{preview}
or use pgf/TikZ and
\beginpgfgraphicnamed{...
<stuff>
\endpgfgraphicnamed
> -create a tex file that will contain nothing more than the formula to
> be displayed (i.e. use \pagestyle{empty}).
you can use the same procedure with pdflatex and then crop the
resulting pdf with pdfcrop.
More information about the texhax
mailing list