diff options
author | Karl Berry <karl@freefriends.org> | 2014-02-27 00:01:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-02-27 00:01:50 +0000 |
commit | 90ae413a94da014dbf7a6a8ab584f7c668483a5a (patch) | |
tree | 4e0528a2b2fb2004988e7fc804ea2f1354f1f5d5 /Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-plain.def | |
parent | 800cc56380d1edfe567a6a66bef13e8950eb2b0c (diff) |
pgf 3.0.0
git-svn-id: svn://tug.org/texlive/trunk@33057 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-plain.def')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-plain.def | 88 |
1 files changed, 46 insertions, 42 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-plain.def b/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-plain.def index c09cf21fe0f..31d0d21d10c 100644 --- a/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-plain.def +++ b/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-plain.def @@ -9,6 +9,7 @@ +\pgfutil@format@is@plaintrue % The aux files, needed for reading back coordinates @@ -17,7 +18,7 @@ \csname newwrite\endcsname\pgfutil@auxout \csname openout\endcsname\pgfutil@auxout\jobname.pgf } - +\def\pgfutil@writetoaux#1{\write\pgfutil@auxout{#1}} % XColor-like support for plain TeX @@ -147,7 +148,7 @@ \def\pgfutil@minipage[#1]#2{% \hbox to#2\bgroup% \hsize=#2\relax% - \vbox\bgroup\leavevmode% + \vbox\bgroup\noindent% } \def\pgfutil@endminipage{\egroup\egroup} @@ -159,14 +160,18 @@ \ifx\pdfoutput\relax\alloc@0\count\countdef\insc@unt\pdfoutput\fi \def\pgfutil@guessdriver{ - \ifcase\pdfoutput% - \ifx\XeTeXversion\@undefined - \def\pgfsysdriver{pgfsys-dvips.def}% hopefully - \else - \def\pgfsysdriver{pgfsys-xetex.def}% should be right - \fi + \ifx\HCode\@undefined% + \ifcase\pdfoutput% + \ifx\XeTeXversion\@undefined + \def\pgfsysdriver{pgfsys-dvips.def}% hopefully + \else + \def\pgfsysdriver{pgfsys-xetex.def}% should be right + \fi + \else% + \def\pgfsysdriver{pgfsys-pdftex.def}% should be right + \fi% \else% - \def\pgfsysdriver{pgfsys-pdftex.def}% should be right + \def\pgfsysdriver{pgfsys-tex4ht.def}% should be right \fi% } @@ -206,9 +211,14 @@ \newbox\pgfutil@tempboxa -\newdimen\pgfutil@tempdima -\newdimen\pgfutil@tempdimb +\let\pgfmath@tempdima\pgfutil@tempdima +\let\pgfmath@tempdima\pgfutil@tempdima +\let\pgfmath@tempcnta\pgfutil@tempcnta +\let\pgfmath@tempcntb\pgfutil@tempcntb +% From LaTeX +\newskip\pgfutil@flushglue +\pgfutil@flushglue=0pt plus 1fil % Module stuff @@ -228,8 +238,7 @@ -% Hack shipout. Should perhaps use atbegshi? Not in standard distribution, currently... -% Code inspired (but patched...) from everyshi.sty: +% Hack shipout. Now use atbegshi \def\pgfutil@insertatbegincurrentpagefrombox#1{% \global\setbox\pgfutil@abb\hbox{\unhbox\pgfutil@abb#1}% @@ -244,39 +253,34 @@ } \let\pgfutil@abe\pgfutil@empty% -\def\pgfutil@@EveryShipout@Shipout{% - \afterassignment\pgfutil@@EveryShipout@Test - \setbox255= % -} -\def\pgfutil@@EveryShipout@Test{% - \ifvoid\@cclv\relax - \aftergroup\pgfutil@EveryShipout@Output - \else - \pgfutil@EveryShipout@Output - \fi% -} -\def\pgfutil@EveryShipout@Output{% - \setbox255=\vbox{% - \setbox0=\hbox{\pgfutil@abe\unhbox\pgfutil@abb\pgfutil@abc\global\let\pgfutil@abc\pgfutil@empty}% - \wd0=0pt% - \ht0=0pt% - \dp0=0pt% - \box0% - \unvbox255% - }% - \pgfutil@@EveryShipout@Org@Shipout\box\@cclv% -} -\let\pgfutil@@EveryShipout@Org@Shipout\shipout -\let\shipout\pgfutil@@EveryShipout@Shipout - - +% Code by Heiko Oberdiek on ctt +\input atbegshi.sty\relax +\AtBeginShipout{% + \setbox\AtBeginShipoutBox=\vbox{% + \setbox0=\hbox{% + \begingroup + \pgfutil@abe + \unhbox\pgfutil@abb + \pgfutil@abc + \global\let\pgfutil@abc\pgfutil@empty + \endgroup + }% + \wd0=0pt\relax + \ht0=0pt\relax + \dp0=0pt\relax + \box0 % + \nointerlineskip + \box\AtBeginShipoutBox + }% +}% +% End of HO code % The following is still messy and needs to be cleanup up (everything % prefixed by pgfutil@): -\def\PackageInfo#1#2{} -\def\PackageWarning#1#2{\immediate\write17{Package #1: Warning! #2.}}% -\def\PackageError#1#2#3{\immediate\write17{Package #1: Error! #2.}}% +%\def\PackageInfo#1#2{} +%\def\PackageWarning#1#2{\immediate\write17{Package #1: Warning! #2.}}% +%\def\PackageError#1#2#3{\immediate\write17{Package #1: Error! #2.}}% \long\def\AtBeginDocument#1{#1}% \endinput |