Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgfpagesuselayout breaks beamer class #228

Closed
pgf-tikz-bot opened this issue Dec 13, 2012 · 6 comments
Closed

pgfpagesuselayout breaks beamer class #228

pgf-tikz-bot opened this issue Dec 13, 2012 · 6 comments

Comments

@pgf-tikz-bot
Copy link

Migrated from SourceForge
Author: *anonymous
Timestamp: 2012-12-13 00:26:14

The following minimal example, which is similar to an example in your documentation

\documentclass{beamer}
\usepackage{pgfpages}
\pgfpagesuselayout{4 on 1}[letterpaper,landscape,border shrink=5mm]

\begin{document}
\begin{frame}
This text is shown on the upper left.
\end{frame}
\begin{frame}
This text is shown on the upper right.
\end{frame}
\begin{frame}
This text is shown on the lower left.
\end{frame}
\begin{frame}
This text is shown on the lower right.
\end{frame}
\end{document}

is broken when either of the latex->dvips->ps2pdf or latex->dvipdf compile routes is used. By broken I mean the {4 on 1} pagelayout feature does not work and here the pdf-file only contains the first frame. Using pdflatex does give a pdf-file with the {4 on 1} feature. Commenting out the "\pgfpagesuselayout" line does generate an appropriate beamer document regardless of the path to generate the pdf-file. It thus appears that pgfpagesuselayout breaks something in the beamer class when anything but pdflatex is used. This has been broken for sometime, although the documentation has not changed. At one time the non-pdflatex routes did generate appropriate {4 on 1} pdf-files.

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: tantau
Timestamp: 2013-07-16 16:03:53.724000

  • status: open --> closed-fixed
  • Group: --> v1.0 (example)

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: tantau
Timestamp: 2013-07-16 16:03:54.926000

Fixed in CVS. Hopefully, my rather fundamental changes did not break anything else in turn...

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: cfeuersaenger
Timestamp: 2014-07-09 08:39:39.605000

Unfortunately, it did: image externalization is broken if used with latex/dvips (broken bounding box).

Minimal example:

\documentclass{article}

\usepackage{tikz}

\usetikzlibrary{external}
\pgfkeyssetvalue{/tikz/external/system call}{%
latex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource" %
&& dvips -o "\image".ps "\image".dvi %
}%

\tikzexternalize[force remake]

\begin{document}

\begin{tikzpicture}
\draw (0,0) grid (10,10);
\end{tikzpicture}
\end{document}

It works if I undo

\def\pgfsys@papersize#1#2{%
\special{papersize=#1,#2}%
}% \expandafter\gdef\expandafter\pgfsys@atbegindocument\expandafter{\pgfsys@atbegindocument\special{papersize=#1,#2}}}

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: cfeuersaenger
Timestamp: 2014-07-09 08:51:08.988000

It also works if pgfsys@papersize does BOTH: the \special and \atbegindocument.

It also works if I modify \def\pgf@externalend such that it calls \pgfsys@papersize twice, once at its old place (needed for pdftex and xelatex) and once where it invokes atbegindocument.

But it seems as if the resulting pictures differ between pdftex and dvips.

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: cfeuersaenger
Timestamp: 2014-07-09 09:00:54.177000

Ok, the differences in appearance seem to be independent of the externalization.

Brief experiments with pgfsys@papersize did not indicate causes...

Minimal example would be

\documentclass{article}

\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\draw (0,0) grid (10,10);
\end{tikzpicture}
\end{document}

; the images appear to have different sizes when compiled with

latex P && dvips -o P.ps P.dvi && ps2pdf14 P.ps P.pdf

or

pdflatex P

I will file a bug report next week.

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: cfeuersaenger
Timestamp: 2014-07-09 14:06:11.411000

I have fixed the regression in PGF CVS.

My previous comment regarding different page sizes was a test issue: added 'a4paper' solved it (apparently, lua and dvips have different default page sizes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant