summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/iftex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-11-06 03:00:54 +0000
committerNorbert Preining <norbert@preining.info>2019-11-06 03:00:54 +0000
commit590fd8b560523cdaea19c59aea61e781138e87f8 (patch)
tree0da2c5c68b4f6860feef746ecf9e8b76157c80bb /macros/latex/contrib/iftex
parenta78951f836b9edaab2dd593f38e33732f0d03cbd (diff)
CTAN sync 201911060300
Diffstat (limited to 'macros/latex/contrib/iftex')
-rw-r--r--macros/latex/contrib/iftex/ann.txt52
-rw-r--r--macros/latex/contrib/iftex/iftex.pdfbin201646 -> 201807 bytes
-rw-r--r--macros/latex/contrib/iftex/iftex.sty15
3 files changed, 13 insertions, 54 deletions
diff --git a/macros/latex/contrib/iftex/ann.txt b/macros/latex/contrib/iftex/ann.txt
deleted file mode 100644
index 9e153b59ab..0000000000
--- a/macros/latex/contrib/iftex/ann.txt
+++ /dev/null
@@ -1,52 +0,0 @@
-** UPLOAD: iftex
-https://ctan.org/pkg/iftex
-
-New README will be uploaded, please change catalogue to say
-maintained by LaTeX Team
-Licence LPPL 1.3
-Bug Tracker: https://github.com/latex3/iftex/issues/
-Repository: https://github.com/latex3/iftex/
-
-** UPLOAD: oberdiek
-https://ctan.org/pkg/oberdiek
-This release will not distribute ifpdf.sty ifluatex.sty ifvtex.sty
-
-
-** DELETE ifxetex
-https://ctan.org/pkg/ifxetex
-Please change the catalogue to point to the iftex distribution (which will contain ifxetex.sty)
-and change maintainer and github links as for iftex above.
-
-Will Robertson is on LaTeX Team so aware of this.
-
-** DELETE ifetex
-https://ctan.org/pkg/ifetex
-Please change the catalogue to point to the iftex distribution (which will contain ifetex.sty)
-and change maintainer and github links as for iftex above.
-
-Martin Scharrer <martin.scharrer@web.de> has agreed to his version of ifetex being deleted
-
-> Hi David,
->
-> I always hated the fact that there where so many if..tex packages and I
-> am glad that you people rationalise them now.
->
-> Feel free to withdraw my package ifetex from CTAN.
->
-> Best Regards,
->
-> Martin
-
-** CATALOGUE Change ifpdf, ifluatex, ifvtex
-https://ctan.org/pkg/ifpdf
-https://ctan.org/pkg/ifluatex
-https://ctan.org/pkg/ifvtex
-Please change the catalog entries for these three so they point to iftex as above,
-not to the oberdiek bundle.
-
-
-** NO CHANGE
-Just to confirm ifptex and ifxptex packages are _not_ affected by this re-arrangement.
-
-
-
diff --git a/macros/latex/contrib/iftex/iftex.pdf b/macros/latex/contrib/iftex/iftex.pdf
index 426b5c4622..c46ce713ae 100644
--- a/macros/latex/contrib/iftex/iftex.pdf
+++ b/macros/latex/contrib/iftex/iftex.pdf
Binary files differ
diff --git a/macros/latex/contrib/iftex/iftex.sty b/macros/latex/contrib/iftex/iftex.sty
index feb5a75f8d..4c1923c2c1 100644
--- a/macros/latex/contrib/iftex/iftex.sty
+++ b/macros/latex/contrib/iftex/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.
@@ -108,6 +107,7 @@
\IFTEX@let{eTeX}{etex}
% pdftex (including in dvi mode)
+\IFTEX@let{IFTEX@savedpdftex}{pdftex}
\ifx\pdftexversion\@undefined
\IFTEX@let{pdftex}{false}
\else
@@ -173,6 +173,7 @@
\IFTEX@let{pTeXng}{ptexng}
% vtex
+\IFTEX@let{IFTEX@savedVTeX}{VTeX}
\ifx\VTeXversion\@undefined
\IFTEX@let{vtex}{false}
\else
@@ -227,5 +228,15 @@ end
}}
\fi
+
+% special compat for scrbase
+\ifx\scr@ifpdftex\@undefined\else\ifx\ifIFTEX@savedpdftex\relax\else
+ \IFTEX@let{pdftex}{IFTEX@savedpdftex}
+ \IFTEX@protected\def\RequirePDFTeX{\IFTEX@Require\ifPDFTeX{pdfTeX}\fi}
+\fi\fi
+\ifx\scr@ifVTeX\@undefined\else\ifx\ifIFTEX@savedVTeX\relax\else
+ \IFTEX@let{VTeX}{IFTEX@savedVTeX}
+\fi\fi
+
% restore things
\catcode64 \IFTEX@atcatcode