summaryrefslogtreecommitdiff
path: root/Master
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
parent570faa64575114a193a756a944ac1300c0523288 (diff)
ifetex 1.1 (6nov11)
git-svn-id: svn://tug.org/texlive/trunk@24524 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/ifetex/README4
-rw-r--r--Master/texmf-dist/doc/latex/ifetex/ifetex.pdfbin108678 -> 123825 bytes
-rw-r--r--Master/texmf-dist/source/latex/ifetex/ifetex.dtx20
-rw-r--r--Master/texmf-dist/tex/latex/ifetex/ifetex.sty4
-rw-r--r--Master/texmf-dist/tex/plain/ifetex/ifetex.tex8
5 files changed, 21 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/latex/ifetex/README b/Master/texmf-dist/doc/latex/ifetex/README
index 42dcf0e35c7..bff06eb1d1e 100644
--- a/Master/texmf-dist/doc/latex/ifetex/README
+++ b/Master/texmf-dist/doc/latex/ifetex/README
@@ -6,12 +6,12 @@ CTAN: http://www.ctan.org/pkg/ifetex
Code repository: https://bitbucket.org/martin_scharrer/ifetex
This small package provides the if-switch \ifetex which indicated whether
-e-TEX is available or not.
+e-TeX is available or not.
The package can be loaded as LaTeX package using `\usepackage{ifetex}` or in
plainTeX using `\input ifetex`. In both cases it aborts silently if the \ifetex macro
is already defined.
The package currently test if \eTeXversion is defined as a primitive and
-assumes e-TEX if so.
+assumes e-TeX if so.
diff --git a/Master/texmf-dist/doc/latex/ifetex/ifetex.pdf b/Master/texmf-dist/doc/latex/ifetex/ifetex.pdf
index dde87336349..ea70346e2bc 100644
--- a/Master/texmf-dist/doc/latex/ifetex/ifetex.pdf
+++ b/Master/texmf-dist/doc/latex/ifetex/ifetex.pdf
Binary files differ
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
diff --git a/Master/texmf-dist/tex/latex/ifetex/ifetex.sty b/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
index 67a87dff626..f7b5bc17cf5 100644
--- a/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
+++ b/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
@@ -16,8 +16,8 @@
%% and the derived filebase ifetex.sty.
%%
\ProvidesPackage{ifetex}[%
- 2011/10/31
- v1.0
+ 2011/11/06
+ v1.1
ifetex]
\@@input ifetex
\endinput
diff --git a/Master/texmf-dist/tex/plain/ifetex/ifetex.tex b/Master/texmf-dist/tex/plain/ifetex/ifetex.tex
index 0e671054763..bf1b3c187d2 100644
--- a/Master/texmf-dist/tex/plain/ifetex/ifetex.tex
+++ b/Master/texmf-dist/tex/plain/ifetex/ifetex.tex
@@ -18,16 +18,16 @@
\expandafter\ifx\csname ifetex\endcsname\relax\else
\expandafter\endinput
\fi
-\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
\endinput
%%
%% End of file `ifetex.tex'.