diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/ifetex/ifetex.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/ifetex/ifetex.dtx | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/ifetex/ifetex.dtx b/Master/texmf-dist/source/latex/ifetex/ifetex.dtx index dac7c1fe434..a563833790b 100644 --- a/Master/texmf-dist/source/latex/ifetex/ifetex.dtx +++ b/Master/texmf-dist/source/latex/ifetex/ifetex.dtx @@ -24,10 +24,10 @@ %<*driver> \ProvidesFile{ifetex.dtx}[% %<=*DATE> - 2011/10/31 + 2011/11/06 %<=/DATE> %<=*VERSION> - v1.0 + v1.1 %<=/VERSION> Conditional to test for e-TeX] \documentclass{ydoc} @@ -44,7 +44,7 @@ %</driver> % \fi % -% \CheckSum{32} +% \CheckSum{41} % % \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 @@ -64,6 +64,7 @@ % % % \changes{v1.0}{2011/10/31}{First version.} +% \changes{v1.1}{2011/11/06}{Changed to manual, local declaration of \cs{ifetex}.} % % \DoNotIndex{\newcommand,\newenvironment} % @@ -88,6 +89,11 @@ % % The package currently test if \Macro\eTeXversion is defined as a primitive and assumes \eTeX\ if so. % +% Note that almost all modern \LaTeX\ distributions use \eTeX. +% The two major distributions \TeX\ Live and Mik\TeX\ support it and use it by default (except for the classic |tex|). +% The \LaTeX\ which comes with \emph{Scientific Work Place} by MacKichan seems to not support \eTeX\ yet. +% Package authors can use this package to test for missing \eTeX\ and provide fall-back code. +% % \StopEventually{} % \section{Implementation} % @@ -131,16 +137,16 @@ % \begin{macro}{ifetex} % Checks if \Macro\eTeXversion is a primitive. % \begin{macrocode} -\newif\ifetex \begingroup \edef\tempa{\meaning\eTeXversion}% \edef\tempb{\string\eTeXversion}% \ifx\tempa\tempb - \global\etextrue + \endgroup + \expandafter\let\csname ifetex\expandafter\endcsname\csname iftrue\endcsname \else - \global\etexfalse + \endgroup + \expandafter\let\csname ifetex\expandafter\endcsname\csname iffalse\endcsname \fi -\endgroup % \end{macrocode} % \end{macro} % \iffalse |