[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: preview-latex with preamble in input file

From: David Kastrup
Subject: [AUCTeX] Re: preview-latex with preamble in input file
Date: Tue, 24 Jun 2008 16:06:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Erik Granstedt" <address@hidden> writes:

> I recently started using AUCTeX to write LaTeX documents inside Emacs,
> and I'm hooked.  The preview-latex package is a quite helpful
> component, in particular, the ability to run latex on individual
> equations in my document.  I have run into an issue, however, when I
> use \input{file} statements at the beginning and end of the document.
> I find it convenient to put preamble and epilogue(?) information in
> these separate files, so that I can focus on the particular document
> that I'm writing.  This also makes it easy to process the document for
> different standard formats.
> The preview package works fine as long as I only generate previews for
> the entire document.  If I try to regenerate a particular environment
> or section, I receive a latex error:
> (./_region_.tex  !name(test.tex)  !name(test.tex) !offset(6)
> ! LaTeX Error: Missing \begin{document}.
> I have tried both caching and not caching the preamble, with the same
> result. If I then remove all the previews from the document and
> regenerate all the previews, it works again.  Is there a way to get
> the preview-latex package to work fully using the preamble in an input
> file?

As long as you keep \begin{document} and \end{document} in the master
file, there should be no problem.

David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]