summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/ifpdf.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/ifpdf.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/ifpdf.dtx38
1 files changed, 29 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/ifpdf.dtx b/Master/texmf-dist/source/latex/oberdiek/ifpdf.dtx
index 702ee8971df..e6dcf239ddd 100644
--- a/Master/texmf-dist/source/latex/oberdiek/ifpdf.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/ifpdf.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2001, 2005-2009 by
+% Copyright (C) 2001, 2005-2010 by
% Heiko Oberdiek <oberdiek@uni-freiburg.de>
%
% This work may be distributed and/or modified under the
@@ -73,7 +73,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: ifpdf 2009/04/10 v2.0 Provides the ifpdf switch (HO)}
+\Msg{* Package: ifpdf 2010/01/28 v2.1 Provides the ifpdf switch (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -84,7 +84,7 @@
This is a generated file.
-Copyright (C) 2001, 2005-2009 by
+Copyright (C) 2001, 2005-2010 by
Heiko Oberdiek <oberdiek@uni-freiburg.de>
This work may be distributed and/or modified under the
@@ -147,7 +147,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{ifpdf.drv}%
- [2009/04/10 v2.0 Provides the ifpdf switch (HO)]%
+ [2010/01/28 v2.1 Provides the ifpdf switch (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2008/08/11]
\begin{document}
@@ -156,7 +156,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{473}
+% \CheckSum{511}
%
% \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 +177,7 @@ and the derived files
% \GetFileInfo{ifpdf.drv}
%
% \title{The \xpackage{ifpdf} package}
-% \date{2009/04/10 v2.0}
+% \date{2010/01/28 v2.1}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -389,7 +389,7 @@ and the derived files
\fi
\expandafter\x\csname ver@ifpdf.sty\endcsname
\ProvidesPackage{ifpdf}%
- [2009/04/10 v2.0 Provides the ifpdf switch (HO)]
+ [2010/01/28 v2.1 Provides the ifpdf switch (HO)]
% \end{macrocode}
%
% \subsection{Catcodes}
@@ -514,9 +514,25 @@ and the derived files
%
% \begin{macro}{\ifpdf}
% Create and set the switch. \cs{newif} initializes the
-% switch with \cs{iffalse}.
+% switch with \cs{iffalse}. \cs{newif} is \cs{outer}
+% in \plainTeX.
% \begin{macrocode}
-\newif\ifpdf
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname newif\endcsname\relax
+ \edef\pdffalse{%
+ \let
+ \expandafter\noexpand\csname ifpdf\endcsname
+ \expandafter\noexpand\csname iffalse\endcsname
+ }%
+ \edef\pdftrue{%
+ \let
+ \expandafter\noexpand\csname ifpdf\endcsname
+ \expandafter\noexpand\csname iftrue\endcsname
+ }%
+ \pdffalse
+\else
+ \csname newif\expandafter\endcsname\csname ifpdf\endcsname
+\fi
% \end{macrocode}
% Test \cs{pdfoutput}. Is it defined and different from
% \cs{relax}? Someone could have used \LaTeX\ internal
@@ -917,6 +933,10 @@ and the derived files
% \item
% Checks, whether \cs{pdfoutput} was changed.
% \end{Version}
+% \begin{Version}{2010/01/28 v2.1}
+% \item
+% Compatibility to ini\TeX\ added.
+% \end{Version}
% \end{History}
%
% \PrintIndex