summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/oberdiek/ifvtex.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/ifvtex.sty')
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/ifvtex.sty30
1 files changed, 28 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/ifvtex.sty b/Master/texmf-dist/tex/generic/oberdiek/ifvtex.sty
index 0ef75ba37ea..08cfc14c54a 100644
--- a/Master/texmf-dist/tex/generic/oberdiek/ifvtex.sty
+++ b/Master/texmf-dist/tex/generic/oberdiek/ifvtex.sty
@@ -25,7 +25,8 @@
%%
%% This work consists of the main source file ifvtex.dtx
%% and the derived files
-%% ifvtex.sty, ifvtex.pdf, ifvtex.ins, ifvtex.drv.
+%% ifvtex.sty, ifvtex.pdf, ifvtex.ins, ifvtex.drv,
+%% ifvtex-test1.tex.
%%
\begingroup
\catcode44 12 % ,
@@ -79,7 +80,30 @@
\fi
\expandafter\x\csname ver@ifvtex.sty\endcsname
\ProvidesPackage{ifvtex}%
- [2007/01/10 v1.2 Switches for detecting VTeX and its modes (HO)]
+ [2007/09/09 v1.3 Switches for detecting VTeX and its modes (HO)]
+\expandafter\edef\csname ifvtex@AtEnd\endcsname{%
+ \catcode64 \the\catcode64\relax
+}
+\catcode64 11 % @
+\def\TMP@EnsureCode#1#2{%
+ \edef\ifvtex@AtEnd{%
+ \ifvtex@AtEnd
+ \catcode#1 \the\catcode#1\relax
+ }%
+ \catcode#1 #2\relax
+}
+\TMP@EnsureCode{10}{12}% ^^J
+\TMP@EnsureCode{39}{12}% '
+\TMP@EnsureCode{44}{12}% ,
+\TMP@EnsureCode{45}{12}% -
+\TMP@EnsureCode{46}{12}% .
+\TMP@EnsureCode{47}{12}% /
+\TMP@EnsureCode{58}{12}% :
+\TMP@EnsureCode{60}{12}% <
+\TMP@EnsureCode{61}{12}% =
+\TMP@EnsureCode{62}{12}% >
+\TMP@EnsureCode{94}{7}% ^
+\TMP@EnsureCode{96}{12}% `
\begingroup
\expandafter\ifx\csname ifvtex\endcsname\relax
\else
@@ -103,6 +127,7 @@
therefore package loading is aborted.%
}%
\endgroup
+ \ifvtex@AtEnd
\expandafter\endinput
\fi
\endgroup
@@ -165,6 +190,7 @@
detected%
}%
\endgroup
+\ifvtex@AtEnd
\endinput
%%
%% End of file `ifvtex.sty'.