bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.82; extra commented \begin{document} suppresses prev


From: Patrick Drechsler
Subject: Re: [Bug-AUCTeX] 11.82; extra commented \begin{document} suppresses preview-latex
Date: Tue, 10 Jan 2006 19:44:04 +0000
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Ralf Angeli wrote on 10 Jan 2006 13:26:23 MET:

> * Patrick Drechsler (2006-01-10) writes:
>
>> after deleting the last 2 lines everything is fine:
> [...]
>> % \begin{document}
>> % \end{document}
>> --8<------------------------schnapp------------------------->8---
>>
>> Otherwise the following error occurs:
> [...]
>> | LaTeX: LaTeX found no preview images
>> `----
>
> You can work around this by using `preview-document' instead of
> `preview-buffer' or by setting `LaTeX-header-end' and
> `LaTeX-trailer-start' like this
>
> (setq LaTeX-header-end "^[ \t]*\\\\begin *{document}"
>       LaTeX-trailer-start "^[ \t]*\\\\end *{document}")
>
> before latex.el is loaded.
>
> I'll have to check if using these values as default has any negative
> side effects.

Using `preview-document' instead of `preview-buffer' seems to be
the easiest solution. Thanks for the quick solution(s) Ralf!

Regards

Patrick
-- 
For animals, the entire universe has been neatly divided into things
to (a) mate with, (b) eat, (c) run away from, and (d) rocks.
        -- (Terry Pratchett, Equal Rites)





reply via email to

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