summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ifetex
diff options
context:
space:
mode:
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'.