From 038f3d26e9b2f40210a14133c33f1d2dfb5261bf Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Thu, 31 Oct 2019 03:00:53 +0000
Subject: CTAN sync 201910310300

---
 macros/latex/contrib/iftex/ifvtex.sty | 45 +++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 macros/latex/contrib/iftex/ifvtex.sty

(limited to 'macros/latex/contrib/iftex/ifvtex.sty')

diff --git a/macros/latex/contrib/iftex/ifvtex.sty b/macros/latex/contrib/iftex/ifvtex.sty
new file mode 100644
index 0000000000..109cf1cc09
--- /dev/null
+++ b/macros/latex/contrib/iftex/ifvtex.sty
@@ -0,0 +1,45 @@
+% Compatibility stub package for ifvtex
+
+%% LaTeX3 Project
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version.
+
+% The original ifvtex package was written by Heiko Oberdiek
+
+\ifx\RequirePackage\undefined
+  \input iftex.sty
+\else
+  \ProvidesPackage{ifvtex}[2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.]
+  \RequirePackage{iftex}
+\fi
+
+
+\IFTEX@let{vtexdvi}{false}
+\IFTEX@let{vtexpdf}{false}
+\IFTEX@let{vtexps}{false}
+\IFTEX@let{vtexhtml}{false}
+\IFTEX@let{vtexgex}{false}
+
+\ifvtex
+  \ifcase\OpMode\relax
+    \IFTEX@let{vtexdvi}{true}
+  \or % 1
+    \IFTEX@let{vtexpdf}{true}
+  \or % 2
+    \IFTEX@let{vtexps}{true}
+  \or % 3
+    \IFTEX@let{vtexps}{true}
+  \or\or\or\or\or\or\or % 10
+    \IFTEX@let{vtexhtml}{true}
+  \fi
+  \begingroup\expandafter\expandafter\expandafter\endgroup
+  \expandafter\ifx\csname gexmode\endcsname\relax
+  \else
+    \ifnum\gexmode>0 %
+      \IFTEX@let{vtexgex}{true}
+    \fi
+  \fi
+\fi
-- 
cgit v1.2.3

