summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ifetex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-12-17 00:59:43 +0000
committerKarl Berry <karl@freefriends.org>2011-12-17 00:59:43 +0000
commit3d4ec1129a9ea9a6c2d6d173e2d358f3a3945e55 (patch)
tree23f5ae90080a56317f023875bd7134bed2852cf0 /Master/texmf-dist/tex/latex/ifetex
parentbb697854fb4e6eca8595e8c660b3a8aaffa47b06 (diff)
ifetex 1.2 (15dec11)
git-svn-id: svn://tug.org/texlive/trunk@24853 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ifetex')
-rw-r--r--Master/texmf-dist/tex/latex/ifetex/ifetex.sty25
1 files changed, 23 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/ifetex/ifetex.sty b/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
index f7b5bc17cf5..b2bc998238a 100644
--- a/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
+++ b/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
@@ -16,10 +16,31 @@
%% and the derived filebase ifetex.sty.
%%
\ProvidesPackage{ifetex}[%
- 2011/11/06
- v1.1
+ 2011/12/15
+ v1.2
ifetex]
\@@input ifetex
+\newcommand*\NeedsETeX[1][]{%
+ \ifetex
+ \ifx\@nnil#1\@nnil\else
+ \ifdim\the\eTeXversion\eTeXrevision\p@<#1\p@\relax
+ \@latex@error{This file needs e-TeX with version #1%
+ \MessageBreak but only version \the\eTeXversion\eTeXrevision is available}{%
+ The current input file will not be processed
+ further,\MessageBreak
+ because it was written for a newer version of e-TeX.
+ \MessageBreak\@ehd}%
+ \endinput
+ \fi\fi
+ \else
+ \@latex@error{This file needs e-TeX}{%
+ The current input file will not be processed
+ further,\MessageBreak
+ because it was written for e-TeX which is not available.
+ \MessageBreak\@ehd}%
+ \endinput
+ \fi
+}
\endinput
%%
%% End of file `ifetex.sty'.