Skip to content

Commit

Permalink
Only clearpage and flush \pgfutil@everybye if non-empty #724
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke committed Aug 11, 2021
1 parent da10e24 commit 85d2c38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tex/generic/pgf/utilities/pgfutil-latex.def
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@

\def\pgfutil@check@rerun#1#2{\@newl@bel{pgf@lab}{#1}{#2}}

\AtBeginDocument{\AtEndDocument{\clearpage\the\pgfutil@everybye}}
\AtBeginDocument{\AtEndDocument{%
\if\relax\detokenize\expandafter{\the\pgfutil@everybye}\relax\else
\expandafter\clearpage\expandafter\the\expandafter\pgfutil@everybye
\fi}}

% \@ifl@t@r is defined \@onlypremable so we have to save it here
\let\pgfutil@ifl@t@r=\@ifl@t@r
Expand Down

0 comments on commit 85d2c38

Please sign in to comment.