[latex3-commits] [git/LaTeX3-latex3-iftex] master: scrbase compatibility for issue #7 (d223819)

David Carlisle d.p.carlisle at gmail.com
Tue Nov 5 00:00:37 CET 2019


Repository : https://github.com/latex3/iftex
On branch  : master
Link       : https://github.com/latex3/iftex/commit/d22381935ccab50f78d574edbdd1bad08b5afe4a

>---------------------------------------------------------------

commit d22381935ccab50f78d574edbdd1bad08b5afe4a
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Mon Nov 4 23:00:37 2019 +0000

    scrbase compatibility for issue #7


>---------------------------------------------------------------

d22381935ccab50f78d574edbdd1bad08b5afe4a
 iftex.sty | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/iftex.sty b/iftex.sty
index feb5a75..537b274 100644
--- a/iftex.sty
+++ b/iftex.sty
@@ -16,7 +16,6 @@
 %% ifptex Takayuki YATO
 %% ifpdf Heiko Oberdiek and LaTeX3 Project
 
-
 % Only load once (not needed in LaTeX, but does no harm).
 \csname IFTEX\string @loaded\endcsname
 \expandafter\let\csname IFTEX\string @loaded\endcsname\endinput
@@ -31,7 +30,7 @@
 % ProvidesPackage declaration in LaTeX
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax\else
-  \ProvidesPackage{iftex}[2019/10/24 v1.0a TeX engine tests]
+  \ProvidesPackage{iftex}[2019/11/04 v1.0b TeX engine tests]
 \fi
 
 % Save @ catcode, to restore at end, not needed in LaTeX.
@@ -227,5 +226,15 @@ end
 }}
 \fi
 
+
+% special compat for scrbase
+\ifx\scr at ifpdftex\@undefined\else
+ \let\ifpdftex\scr at ifpdftex
+ \IFTEX at protected\def\RequirePDFTeX{\IFTEX at Require\ifpdftex{pdfTeX}\fi}
+\fi
+\ifx\scr at ifVTeX\@undefined\else
+ \let\ifVTeX\scr at ifVTeX
+\fi
+
 % restore things
 \catcode64 \IFTEX at atcatcode





More information about the latex3-commits mailing list