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: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.82; extra commented \begin{document} suppresses preview-latex
Date: Sat, 14 Jan 2006 15:48:53 +0100

* Patrick Drechsler (2006-01-10) writes:

>>> % \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!

I've now changed `LaTeX-header-end' and `LaTeX-trailer-start' in CVS.
People using commented \begin{document} or \end{document} statements
intentionally might have to set those variables to their former
values.  In case we get problem reports about that I would not mind
changing them back because obviously there is no clear right or wrong
here.  It's mainly about which type of usage is more common.

-- 
Ralf




reply via email to

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