summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/ifetex/ifetex.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-11-06 23:23:54 +0000
committerKarl Berry <karl@freefriends.org>2011-11-06 23:23:54 +0000
commit91348b19948d3b43f8e39cdd834970482dd5f062 (patch)
treeaba85760af0ca0c3db6c538cdf1af8f1f32fa82b /Master/texmf-dist/source/latex/ifetex/ifetex.dtx
parent570faa64575114a193a756a944ac1300c0523288 (diff)
ifetex 1.1 (6nov11)
git-svn-id: svn://tug.org/texlive/trunk@24524 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/ifetex/ifetex.dtx')
-rw-r--r--Master/texmf-dist/source/latex/ifetex/ifetex.dtx20
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