diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-21 20:58:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-21 20:58:16 +0000 |
commit | ec0d811f8907a93ccc956cc61e3e87e7b4b8cf3c (patch) | |
tree | ddcfef5e81b71f8ad18c4a13c1e5501a148b1ec2 /Master/texmf-dist/tex | |
parent | 3e34887b92bc2cfd1e43815528508408a0b12110 (diff) |
preview (21feb22)
git-svn-id: svn://tug.org/texlive/trunk@62130 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/preview/preview.sty | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/preview/preview.sty b/Master/texmf-dist/tex/latex/preview/preview.sty index 13c026fd40c..11f59909845 100644 --- a/Master/texmf-dist/tex/latex/preview/preview.sty +++ b/Master/texmf-dist/tex/latex/preview/preview.sty @@ -26,7 +26,7 @@ \NeedsTeXFormat{LaTeX2e} \def\reserved@a #1#2$#3: #4${\xdef#1{\reserved@c #2#4 $}} \def\reserved@c #1 #2${#1} \begingroup \catcode`\_=12 -\reserved@a\pr@version $Name: release_12_3 $ \ifx\pr@version\@empty +\reserved@a\pr@version $Name: release_13_1 $ \ifx\pr@version\@empty \reserved@a\pr@version CVS-$Revision: 1.126 $ \endgroup \else \def\next release_{} \lccode`\_=`. \edef\next{\lowercase{\endgroup @@ -291,10 +291,27 @@ Please complain to your document class author}% \global\advance\pr@snippet\@ne \pr@cleanup } -\let\pr@shipout=\shipout -\def\shipout{\deadcycles\z@\bgroup\setbox\z@\box\voidb@x +\def\pr@@shipout{\deadcycles\z@\bgroup\setbox\z@\box\voidb@x \afterassignment\pr@shipoutegroup\setbox\z@} \def\pr@shipoutegroup{\ifvoid\z@ \expandafter\aftergroup\fi \egroup} +\ifx\shipout\@undefined + \begingroup + \catcode`\:=10 + \catcode`\_=10 + \ifx\tex_shipout:D\@undefined + \PackageError{preview}{Cannot find \protect\shipout\space primitive}% + {preview needs to replace the \protect\shipout\space primitive with + its own routine to do its work. Due to packages or formats + interfering, it cannot be identified. Please report this.} + \else + \global\let\pr@shipout=\tex_shipout:D + \global\let\tex_shipout:D=\pr@@shipout + \fi + \endgroup +\else + \let\pr@shipout=\shipout + \let\shipout=\pr@@shipout +\fi \def\pr@parseit#1{\csname pr@parse#1\endcsname} \let\pr@endparse=\@percentchar \def\next#1{% |