% 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
