bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] preview-1.287; Preview (of equations) doesn't work with


From: David Kastrup
Subject: Re: [Bug-AUCTeX] preview-1.287; Preview (of equations) doesn't work with beamer
Date: Tue, 17 Dec 2013 10:00:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Tassilo Horn <address@hidden> writes:

> Jisang Yoo <address@hidden> writes:
>
>> When I press C-c C-p C-p to generate preview images of equations in a
>> beamer document, the preview images get placed in wrong places in the
>> buffer. The images are all bunched up at the end of "\end{frame}".
>
> Indeed, I can reproduce that.  The problem is that the TeX part of
> preview already provide the wrong information in that case, e.g., in
>
> #+BEGIN_SRC tex
>   \documentclass{beamer}
>   \begin{document}
>   \begin{frame}
>     The $a^2$ and $b^2$ and the end.
>   \end{frame}
>   \end{document}
> #+END_SRC
>
> it should report that the snippet $a^2$ starts and ends in line 4, but
> it somehow reports \end{frame} in line 5 as the snippet...
>
> Sadly, my knowledge of TeX is too weak to fix that problem in
> preview.dtx.  Hopefully David will have a look.

It's in the manual.

<URL:http://preview-latex.sourceforge.net/manual/Misplaced-previews.html#Misplaced-previews>

and from

<URL:http://preview-latex.sourceforge.net/manual/Customization.html#Customization>
B.4.5 Does preview-latex work with presentation classes?

preview-latex should work with most presentation classes. However, since
those classes often have macros or pseudo environments encompassing a
complete slide, you will need to use the customization facilities of
preview.sty to tell it how to resolve this, whether you want no
previews, previews of whole slides or previews of inner material. 




-- 
David Kastrup



reply via email to

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