summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/platex-tools/pxeverysel.sty18
1 files changed, 10 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/platex-tools/pxeverysel.sty b/Master/texmf-dist/tex/latex/platex-tools/pxeverysel.sty
index 447f42876f2..5c00f1830f2 100644
--- a/Master/texmf-dist/tex/latex/platex-tools/pxeverysel.sty
+++ b/Master/texmf-dist/tex/latex/platex-tools/pxeverysel.sty
@@ -12,7 +12,7 @@
%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pxeverysel}
- [2018/10/27 v0.8 Patch to everysel for (u)pLaTeX]
+ [2018/10/28 v0.9 Patch to everysel for (u)pLaTeX]
%% previous code for ctex support has been removed in v0.5,
%% as ctex has depended on pxeverysel since 2016/12/27 v2.4.7
@@ -24,20 +24,18 @@
\PackageError{pxeverysel}{%
Patch too late!\MessageBreak
Load pxeverysel earlier}\@ehc
+ \expandafter\endinput
+ \fi
}{}
-%% preparations
-\def\pxys@pkgname{pxeverysel}
-\def\pxys@warn{\PackageWarningNoLine\pxys@pkgname}
-
%% load it, but ensure that \@EverySelectfont@Init is not executed
% [Note] everysel.sty contains
% \AtBeginDocument{\@EverySelectfont@Init}
% at the end. In most cases, the execution is actually delayed;
% however,
-% \AtBeginDocument{everysel} (e.g. found in sidecap.sty)
-% can execute it immediately. In this case, delay it until the
-% end of pxeverysel.sty.
+% \AtBeginDocument{\RequirePackage{everysel}}
+% can execute it immediately (e.g. found in sidecap.sty).
+% In this case, delay it until the end of pxeverysel.sty.
\ifx\AtBeginDocument\@firstofone
\def\pxys@begindocumenthook{\let\AtBeginDocument\@firstofone}
\def\AtBeginDocument{\g@addto@macro\pxys@begindocumenthook}
@@ -52,6 +50,10 @@
%--------------------------------------- helpers
+%% preparations
+\def\pxys@pkgname{pxeverysel}
+\def\pxys@warn{\PackageWarningNoLine\pxys@pkgname}
+
%% unique tokens
\def\pxys@mark{\pxys@mark@}
\def\pxys@fin{\pxys@fin@}