Angus Leeming <[EMAIL PROTECTED]> writes:

> David,
> 
> I've beem trying to use preview.sty on the attached latex file. (This is 
> using the preview.sty that comes with preview-latex-0.7.2b rather than CVS.)

> Any clues about what I'm doing wrong?
> Angus

You need to specify the dvips option to preview as well if you are
using the tightpage option.  That is, use

\usepackage[active,displaymath,textmath,dvips,tightpage]{preview}

This will put everything into preview that is delimited by $...$ or
\(...\) or by display math mode (in order to achieve this, the catcode
of $ gets changed: LaTeX uses math mode internally very often, and it
would not do to preview every instance of it).

Load the preview package preferably as last package, or specify the
"delayed" option to it (which moves most activation to
\AtBeginDocument).  That way you are more or less sure that the
commands it attaches itself to and the catcode stuff it does are all
in the final state.

If you don't want preview.sty to automatically extract those
environments in case you already know what you want previewed
yourself and don't want to guess whether your choice and that of
preview.sty will be the same, leave off the selection options like
"textmath" and "displaymath" and instead place everything you want
previewed into a separate "preview" environment.

Hope this helps.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: [EMAIL PROTECTED]


Reply via email to