help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: bad interaction: beamer, amsmath, preview-latex


From: Giacomo Boffi
Subject: Re: bad interaction: beamer, amsmath, preview-latex
Date: Wed, 08 Dec 2010 15:08:03 -0000
User-agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.5-b29 (linux)

David Kastrup <dak@gnu.org> writes:

> Giacomo Boffi <giacomo.boffi@polimi.it> writes:
>
>> _[xposted, followup set to gnu.emacs.help]_
>>
>> i have two files, one (yb.tex) that uses the beamer class and another
>> (nb.tex)  that uses the article class
>>
>> when i use preview-latex to generate inline pictures of my equation,
>> in the first case it does not work, while in the second case it works
>> as usual
>
> You'll need some decisions about what kind of previews you want --
> whole slides, just equations or something.  And then you need to
> configure preview.sty to deal with what you want.  Should be
> described in the manual.

but it's not easy to be spotted...

i used 
...
\usepackage[displaymath,textmath,sections]{preview}
\begin{document}
...

but math in ams environments was not rendered in emacs

then i added a preview environment to an AMS display

\begin{preview}
  \begin{align*}
    \mat{U}\,\vet{x}_{n+1}&=\vet{z}_{n+1}\\
    \mat{L}\,\vet{z}_{n+1}&=\vet{w}_{n}
  \end{align*}
\end{preview}

i got what i wanted, yes, but i felt that going back to every AMS
environment i used was a little too much, but finally i used

...
\usepackage[displaymath,textmath,sections]{preview}
\PreviewEnvironment{align*} % etc
\begin{document}
...
and now i'm happy

now, if someone (David?) could explain a better solution or, maybe,
give the "preview whole slides" howto...

thank you,
                                                                g
-- 
per crimini come l'umanita'.                     MMAX, in IPI+IHC


reply via email to

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