[latex3-commits] [git/LaTeX3-latex3-iftex] master: dont assume scrbase defines \ifpdftex issue #7 (32600d0)
David Carlisle
d.p.carlisle at gmail.com
Tue Nov 5 08:41:56 CET 2019
Repository : https://github.com/latex3/iftex
On branch : master
Link : https://github.com/latex3/iftex/commit/32600d06675af65f9209c486f9c96ade901c99e4
>---------------------------------------------------------------
commit 32600d06675af65f9209c486f9c96ade901c99e4
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Tue Nov 5 07:41:56 2019 +0000
dont assume scrbase defines \ifpdftex issue #7
>---------------------------------------------------------------
32600d06675af65f9209c486f9c96ade901c99e4
iftex.sty | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/iftex.sty b/iftex.sty
index 14f22c2..51be751 100644
--- a/iftex.sty
+++ b/iftex.sty
@@ -53,6 +53,17 @@
}
+% special compat for scrbase
+\ifx\scr at ifpdftex\ifpdftex
+ \AtEndOfPackage{%
+ \expandafter\let\csname ifpdftex\endcsname\scr at ifpdftex
+ \IFTEX at protected\def\RequirePDFTeX{\IFTEX at Require\ifPDFTeX{pdfTeX}\fi}}
+\fi
+\ifx\scr at ifVTeX\ifVTeX
+ \AtEndOfPackage{%
+ \expandafter\let\csname ifVTeX\endcsname\scr at ifVTeX}
+\fi
+
% eTeX \protected if available.
\ifx\protected\@undefined
\let\IFTEX at protected\relax
@@ -227,14 +238,6 @@ end
\fi
-% special compat for scrbase
-\ifx\scr at ifpdftex\@undefined\else
- \expandafter\let\csname ifpdftex\endcsname\scr at ifpdftex
- \IFTEX at protected\def\RequirePDFTeX{\IFTEX at Require\ifPDFTeX{pdfTeX}\fi}
-\fi
-\ifx\scr at ifVTeX\@undefined\else
- \expandafter\let\csname ifVTeX\endcsname\scr at ifVTeX
-\fi
% restore things
\catcode64 \IFTEX at atcatcode
More information about the latex3-commits
mailing list