summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/oberdiek/ifpdf.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-09-16 00:07:34 +0000
committerKarl Berry <karl@freefriends.org>2007-09-16 00:07:34 +0000
commitd85f248e3b38ea0ecda38c5340e3cadd08d65346 (patch)
tree52e17f32b395006895b3917bc7729c7ac1514ae3 /Master/texmf-dist/tex/generic/oberdiek/ifpdf.sty
parent2389552f283181e0d8c610037712ade989112da3 (diff)
oberdiek update (14sep07)
git-svn-id: svn://tug.org/texlive/trunk@4947 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/ifpdf.sty')
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/ifpdf.sty29
1 files changed, 27 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/ifpdf.sty b/Master/texmf-dist/tex/generic/oberdiek/ifpdf.sty
index 178c394a798..e8fc6a89aa6 100644
--- a/Master/texmf-dist/tex/generic/oberdiek/ifpdf.sty
+++ b/Master/texmf-dist/tex/generic/oberdiek/ifpdf.sty
@@ -25,7 +25,8 @@
%%
%% This work consists of the main source file ifpdf.dtx
%% and the derived files
-%% ifpdf.sty, ifpdf.pdf, ifpdf.ins, ifpdf.drv.
+%% ifpdf.sty, ifpdf.pdf, ifpdf.ins, ifpdf.drv,
+%% ifpdf-test1.tex.
%%
\begingroup
\catcode44 12 % ,
@@ -79,7 +80,29 @@
\fi
\expandafter\x\csname ver@ifpdf.sty\endcsname
\ProvidesPackage{ifpdf}%
- [2006/02/20 v1.4 Provides the ifpdf switch (HO)]
+ [2007/09/09 v1.5 Provides the ifpdf switch (HO)]
+\expandafter\edef\csname ifpdf@AtEnd\endcsname{%
+ \catcode64 \the\catcode64\relax
+}
+\catcode64 11 % @
+\def\TMP@EnsureCode#1#2{%
+ \edef\ifpdf@AtEnd{%
+ \ifpdf@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{94}{7}% ^
+\TMP@EnsureCode{96}{12}% `
\begingroup
\expandafter\ifx\csname ifpdf\endcsname\relax
\else
@@ -103,6 +126,7 @@
therefore package loading is aborted.%
}%
\endgroup
+ \ifpdf@AtEnd
\expandafter\endinput
\fi
\endgroup
@@ -126,6 +150,7 @@
\fi
\x{ifpdf}{pdfTeX in pdf mode \ifpdf\else not \fi detected}%
\endgroup
+\ifpdf@AtEnd
\endinput
%%
%% End of file `ifpdf.sty'.