I have the following file, in which I use the preview package and the beamer class
\documentclass[]{beamer}
\usepackage{preview}
\PreviewEnvironment{align*}
\PreviewEnvironment*{frame}
\begin{document}
\begin{frame}
Some text and
\begin{align*}
x &= y\\
\beta &= \gamma
\end{align*}
a displayed equation.
\end{frame}
\end{document}
If I ask for generation of previews inside XEmacs all is well,

but when it comes to generating the PDF...
$ pdflatex beamer+previev.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.15 ...
LaTeX2e <2014/05/01> ...
Document Class: beamer 2013/12/02 3.33 ...
(./beamer+previev.aux) ...
(/usr/local/share/texmf/tex/latex/preview/preview.sty) ...
...
! Undefined control sequence.
\@EveryShipout@Output ...EveryShipout@Org@Shipout
\box \@cclv
l.16 \end{frame}
Overfull \vbox (200.87663pt too high) has occurred while \output is active
! Undefined control sequence.
\@EveryShipout@Output ...EveryShipout@Org@Shipout
\box \@cclv
l.17 \end{document}
Overfull \vbox (200.87663pt too high) has occurred while \output is active
! Undefined control sequence.
\@EveryShipout@Output ...EveryShipout@Org@Shipout
\box \@cclv
l.17 \end{document}
! Undefined control sequence.
\@EveryShipout@Output ...EveryShipout@Org@Shipout
\box \@cclv
l.17 \end{document}
Overfull \vbox (200.87663pt too high) has occurred while \output is active
LaTeX Font Warning: Size substitutions with differences
(Font) up to 1.0pt have occurred.
)
(see the transcript file for additional information)
...
$
By the way, if I remove the lines
\usepackage{preview}
\PreviewEnvironment{align*}
\PreviewEnvironment*{frame}
I can compile the PDF without any problem, but when I ask for the generation of the inline preview in the XEmacs buffer I get only the warning
LaTeX found no preview images
in the minibuffer and no image is inserted.
Is there any incantation that I can use to reconcile beamer and preview ways of life?
As a matter of fact, I've just installed preview.sty and all the stuff auctex related this morning, the version is auctex-11.88, while beamer is a bit oldish, but
I experienced the same misbehaviour with 11.87 while two (or three?) years ago everything was fine, so this can be a regression I don't know on which side of the barricade...
preview? Do you use it just to produce preview snipetts in AUCTeX? It's useless in that case to load the package. – giordano Mar 13 '15 at 12:00previewif I want a preview in the editor, I need to load notpreviewif I want to produce the slides... Anyway I found a solution in a thread I started on the auctex mailing list and was revived like 7 months later, when I was no more following the list! I'm going to write an answer to myself – gboffi Mar 13 '15 at 13:47