-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathifvtex.sty
45 lines (39 loc) · 1.03 KB
/
ifvtex.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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