2

Something changed between MacTex2012 and MacTex2014 in terms of how PreviewEnvironment and beamer interact.

This MWE used to produce a single page (by pdflatex in MacTex 2012), but now it produces two pages, the second blank.

\documentclass{beamer}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{center}

\begin{document}
\begin{frame}
\begin{center}
test
\end{center}
\end{frame}
\end{document}

I'm trying to track down why, but perhaps an expert out there can leap to the answer?

MWE rendering produced by pdflatex in MacTex 2014

  • I can confirm that TexLive 2014 on Linux shows the same behaviour. – Moriarty Jun 18 '15 at 14:44
  • Thanks for double checking. (Perhaps someone has TexLive 2013?) – Daniel Roy Jun 18 '15 at 14:53
  • The behaviour is the same for TL 2013-2015 inclusive. Both the way the page is cropped and the number of pages produced differs from TL 2012. What I'm not clear about is why this needs to be in a frame environment if you are cropping to the image anyway. Is it just a question of wanting the background colour to match? – cfr Jun 18 '15 at 15:37
  • Now you've said about the change in behaviour, this is ringing bells. There's something about this somewhere but I can't remember exactly what.... Is this issue related? Does the corrected patch here help? Is standalone an option? It has specific facilities for working with beamer. – cfr Jun 18 '15 at 15:45
  • A commenter (cfr) on the original question correctly identified this as the result of a known bug in PGF, introduced in TexLive 2013, which persists in TexLive 2014. (Not sure about 2015.) The patch described here, which acts on pgfutil-latex.def, fixes the problem described above. – Daniel Roy Jun 18 '15 at 17:02
  • @DanielRoy On that basis this is a dupe – Joseph Wright Jun 18 '15 at 17:10
  • Does anyone know if TeXLive 2015 is still affected? – Daniel Roy Jun 18 '15 at 18:30

0 Answers0