summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx78
1 files changed, 64 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx b/Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx
index 5d60e4d0cd0..a0b63af589b 100644
--- a/Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2001, 2006-2008 by
+% Copyright (C) 2001, 2006-2008, 2010 by
% Heiko Oberdiek <heiko.oberdiek at googlemail.com>
%
% This work may be distributed and/or modified under the
@@ -62,6 +62,8 @@
%
%<*ignore>
\begingroup
+ \catcode123=1 %
+ \catcode125=2 %
\def\x{LaTeX2e}%
\expandafter\endgroup
\ifcase 0\ifx\install y1\fi\expandafter
@@ -73,7 +75,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: ifvtex 2008/11/04 v1.4 Switches for detecting VTeX and its modes (HO)}
+\Msg{* Package: ifvtex 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -84,7 +86,7 @@
This is a generated file.
-Copyright (C) 2001, 2006-2008 by
+Copyright (C) 2001, 2006-2008, 2010 by
Heiko Oberdiek <heiko.oberdiek at googlemail.com>
This work may be distributed and/or modified under the
@@ -120,7 +122,8 @@ and the derived files
\file{ifvtex-test1.tex}{\from{ifvtex.dtx}{test1}}%
}
-\obeyspaces
+\catcode32=13\relax% active space
+\let =\space%
\Msg{************************************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
@@ -147,7 +150,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{ifvtex.drv}%
- [2008/11/04 v1.4 Switches for detecting VTeX and its modes (HO)]%
+ [2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2008/08/11]
\begin{document}
@@ -156,7 +159,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{444}
+% \CheckSum{503}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -177,7 +180,7 @@ and the derived files
% \GetFileInfo{ifvtex.drv}
%
% \title{The \xpackage{ifvtex} package}
-% \date{2008/11/04 v1.4}
+% \date{2010/03/01 v1.5}
% \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}}
%
% \maketitle
@@ -304,7 +307,7 @@ and the derived files
\fi
\expandafter\x\csname ver@ifvtex.sty\endcsname
\ProvidesPackage{ifvtex}%
- [2008/11/04 v1.4 Switches for detecting VTeX and its modes (HO)]
+ [2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)]
% \end{macrocode}
%
% \subsection{Catcodes}
@@ -379,13 +382,56 @@ and the derived files
\endgroup
% \end{macrocode}
%
+% \subsection{Provide \cs{newif}}
+%
+% \begin{macrocode}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname newif\endcsname\relax
+% \end{macrocode}
+% \begin{macro}{\ifvtex@newif}
+% \begin{macrocode}
+ \def\ifvtex@newif#1{%
+ \begingroup
+ \escapechar=-1 %
+ \expandafter\endgroup
+ \expandafter\ifvtex@@newif\string#1\@nil
+ }%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\ifvtex@@newif}
+% \begin{macrocode}
+ \def\ifvtex@@newif#1#2#3\@nil{%
+ \expandafter\edef\csname#3true\endcsname{%
+ \let
+ \expandafter\noexpand\csname if#3\endcsname
+ \expandafter\noexpand\csname iftrue\endcsname
+ }%
+ \expandafter\edef\csname#3false\endcsname{%
+ \let
+ \expandafter\noexpand\csname if#3\endcsname
+ \expandafter\noexpand\csname iffalse\endcsname
+ }%
+ \csname#3false\endcsname
+ }%
+% \end{macrocode}
+% \end{macro}
+% \begin{macrocode}
+\else
+% \end{macrocode}
+% \begin{macro}{\ifvtex@newif}
+% \begin{macrocode}
+ \expandafter\let\expandafter\ifvtex@newif\csname newif\endcsname
+\fi
+% \end{macrocode}
+% \end{macro}
+%
% \subsection{\cs{ifvtex}}
%
% \begin{macro}{\ifvtex}
% Create and set the switch. \cs{newif} initializes the
% switch with \cs{iffalse}.
% \begin{macrocode}
-\newif\ifvtex
+\ifvtex@newif\ifvtex
% \end{macrocode}
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
@@ -403,11 +449,11 @@ and the derived files
% \subsection{Mode and GeX switches}
%
% \begin{macrocode}
-\newif\ifvtexdvi
-\newif\ifvtexpdf
-\newif\ifvtexps
-\newif\ifvtexhtml
-\newif\ifvtexgex
+\ifvtex@newif\ifvtexdvi
+\ifvtex@newif\ifvtexpdf
+\ifvtex@newif\ifvtexps
+\ifvtex@newif\ifvtexhtml
+\ifvtex@newif\ifvtexgex
\ifvtex
\ifcase\OpMode\relax
\vtexdvitrue
@@ -759,6 +805,10 @@ and the derived files
% \item
% Bug fix: Mispelled \cs{OpMode} (found by Hideo Umeki).
% \end{Version}
+% \begin{Version}{2010/03/01 v1.5}
+% \item
+% Compatibility with ini\TeX.
+% \end{Version}
% \end{History}
%
% \PrintIndex