From 3d4ec1129a9ea9a6c2d6d173e2d358f3a3945e55 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 17 Dec 2011 00:59:43 +0000 Subject: ifetex 1.2 (15dec11) git-svn-id: svn://tug.org/texlive/trunk@24853 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/ifetex/ifetex.sty | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex') 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'. -- cgit v1.2.3