summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/ifetex/ifetex.sty25
-rw-r--r--Master/texmf-dist/tex/plain/ifetex/ifetex.tex33
2 files changed, 58 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ifetex/ifetex.sty b/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
new file mode 100644
index 00000000000..67a87dff626
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ifetex/ifetex.sty
@@ -0,0 +1,25 @@
+%% Copyright (C) 2011 by Martin Scharrer <martin@scharrer.me>
+%% ---------------------------------------------------------------------------
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ifetex.dtx and ifetex.ins
+%% and the derived filebase ifetex.sty.
+%%
+\ProvidesPackage{ifetex}[%
+ 2011/10/31
+ v1.0
+ ifetex]
+\@@input ifetex
+\endinput
+%%
+%% End of file `ifetex.sty'.
diff --git a/Master/texmf-dist/tex/plain/ifetex/ifetex.tex b/Master/texmf-dist/tex/plain/ifetex/ifetex.tex
new file mode 100644
index 00000000000..0e671054763
--- /dev/null
+++ b/Master/texmf-dist/tex/plain/ifetex/ifetex.tex
@@ -0,0 +1,33 @@
+%% Copyright (C) 2011 by Martin Scharrer <martin@scharrer.me>
+%% ---------------------------------------------------------------------------
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Martin Scharrer.
+%%
+%% This work consists of the files ifetex.dtx and ifetex.ins
+%% and the derived filebase ifetex.sty.
+%%
+\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
+\else
+ \global\etexfalse
+\fi
+\endgroup
+\endinput
+%%
+%% End of file `ifetex.tex'.