diff options
author | Karl Berry <karl@freefriends.org> | 2020-10-05 21:19:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-10-05 21:19:30 +0000 |
commit | a51559088d2b3ef74c53aab3badfb39ff991fb8a (patch) | |
tree | 09d46902f7eaf5856321d8485f716633445376d0 /Master/texmf-dist/tex/latex/revtex/ltxutil.sty | |
parent | b1ae90907e77f83b07155bebd78ced57b8554ac8 (diff) |
revtex4-2, but not 4-1 (5oct20)
git-svn-id: svn://tug.org/texlive/trunk@56559 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/revtex/ltxutil.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/revtex/ltxutil.sty | 69 |
1 files changed, 55 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/revtex/ltxutil.sty b/Master/texmf-dist/tex/latex/revtex/ltxutil.sty index 6173831bfa4..7590c5de979 100644 --- a/Master/texmf-dist/tex/latex/revtex/ltxutil.sty +++ b/Master/texmf-dist/tex/latex/revtex/ltxutil.sty @@ -22,11 +22,10 @@ %% %%% @LaTeX-file{ %%% filename = "ltxutil.dtx", -%%% version = "4.2c", -%%% date = "2019/01/18", -%%% time = "14:29:48 UT-5", -%%% checksum = "4291", +%%% version = "4.2e", +%%% date = "2020/10/03", %%% author = "Arthur Ogawa (mailto:arthur_ogawa at sbcglobal.net), +%%% Phelype Oleinik (mailto:phelype.oleinik at latex-project.org), %%% commissioned by the American Physical Society. Minor changes by Mark Doyle for version 4.2a-c. %%% ", %%% copyright = "Copyright (C) 1999, 2009 Arthur Ogawa, @@ -43,14 +42,13 @@ %%% keywords = "latex, page grid, main vertical list", %%% supported = "yes", %%% abstract = "utilities package", -%%% docstring = "The checksum field above generated by ltxdoc", %%% } \NeedsTeXFormat{LaTeX2e}[1995/12/01]% \ProvidesFile{% ltxutil% .sty% }% - [2019/01/18/14:29:48 4.2c utilities package (portions licensed from W. E. Baxter web at superscript.com)]% \fileversion + [2020/10/03 4.2e utilities package (portions licensed from W. E. Baxter web at superscript.com)]% \fileversion \def\package@name{ltxutil}% \expandafter\PackageInfo\expandafter{\package@name}{% Utility macros for \protect\LaTeXe, @@ -156,6 +154,11 @@ ltxutil% \long\def\@argswap#1#2{#2#1}% \long\def\@argswap@val#1#2{#2{#1}}% \def\@ifxundefined@cs#1{\expandafter\@ifx\expandafter{\csname#1\endcsname\relax}}% +\ifx\IfFormatAtLeastTF\undefined + \def\rvtx@ifformat@geq{\@ifl@t@r\fmtversion}% +\else + \let\rvtx@ifformat@geq\IfFormatAtLeastTF +\fi \def\@boolean#1#2{% \long\def#1{% #2% \if<something> @@ -191,11 +194,16 @@ ltxutil% \@ifx{\undefined#1}{\true@sw}{\@ifx{\relax#1}{\true@sw}{\false@sw}}% {\def#1}{\def\j@nk}% }% -\prepdef\document{% - \endgroup - \document@inithook - \true@sw{}% -}% +\rvtx@ifformat@geq{2020-10-01}% + {% + \AddToHook{begindocument/before}{\document@inithook}% + }{% + \prepdef\document{% + \endgroup + \document@inithook + \true@sw{}% + }% + } \let\document@inithook\@empty \appdef\document@inithook{% \AtBeginDocument{\class@documenthook}% @@ -205,6 +213,10 @@ ltxutil% }% \let\class@documenthook\@empty \let\class@enddocumenthook\@empty +\rvtx@ifformat@geq{2020-10-01}{% + % <definitions for newer LaTeX later> +}{% + % <definitions for older LaTeX> \def\enddocument{% \let\AtEndDocument\@firstofone \@enddocumenthook @@ -238,7 +250,7 @@ ltxutil% \@if@sw\if@tempswa\fi{% \@latex@warning@no@line{% Label(s) may have changed. - Rerun to get cross-references right + Rerun to get cross-references right% }% }{}% }{% @@ -246,6 +258,30 @@ ltxutil% }% }{}% }% +} +\rvtx@ifformat@geq{2020-10-01}{% + \AddToHook{enddocument}{\rvtx@enddocument@patch{}}% +}{} +\protected\long\def\rvtx@enddocument@patch#1#2\@checkend#3{% + \begingroup + \edef\x{\detokenize{#3}}% + \edef\y{\detokenize{document}}% + \expandafter\endgroup + \ifx\x\y + \expandafter\rvtx@enddocument@patch@end + \else + \expandafter\rvtx@enddocument@patch@more + \fi + {#1#2}{#3}} +\def\rvtx@enddocument@patch@more#1#2{% + \rvtx@enddocument@patch{#1\@checkend{#2}}} +\long\def\rvtx@enddocument@patch@end#1#2\clearpage#3\endgroup{% + \def\do@check@aux{#3\endgroup}% + #1% + \@checkend{#2}% + \clear@document + \check@aux} +\def\check@aux{\do@check@aux}% \def\clear@document{% \clearpage \do@output@cclv{% @@ -2048,9 +2084,14 @@ ltxutil% \endgroup }% \@ifx{\typeout\typeout@org}{% - \class@info{Making \string\typeout\space \string\long}% \let\typeout\typeout@ltx -}{}% + \true@sw +}{% + \rvtx@ifformat@geq{2020-10-01}% + {\true@sw}{\false@sw}% +}% + {\class@info{Making \string\typeout\space \string\long}}% + {}% \endinput %% %% End of file `ltxutil.sty'. |