summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-05-04 22:14:01 +0000
committerKarl Berry <karl@freefriends.org>2017-05-04 22:14:01 +0000
commit673a8d0f7aca9c451d1a2e325e8479824b1a0df2 (patch)
treec7c963103e3a24f5b336a5cea25b9e80ea436ebb /Master/texmf-dist/tex/generic/ifptex/ifuptex.sty
parent7026f62c118b13c173024f7a2748d1088fd48779 (diff)
ifptex (4may17)
git-svn-id: svn://tug.org/texlive/trunk@44194 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/ifptex/ifuptex.sty')
-rw-r--r--Master/texmf-dist/tex/generic/ifptex/ifuptex.sty54
1 files changed, 54 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty b/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty
new file mode 100644
index 00000000000..8742a0a2cac
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty
@@ -0,0 +1,54 @@
+%%
+%% This is file 'ifuptex.sty'.
+%%
+%% Copyright (c) 2017 Takayuki YATO (aka. "ZR")
+%% GitHub: https://github.com/zr-tex8r
+%% Twitter: @zr_tex8r
+%%
+%% This package is distributed under the MIT License.
+%%
+%
+% NOTE: Now ifuptex is merely an alias to ifptex.
+%
+%% avoid multiple loading
+\csname\if11bxipIfuptexLoaded\fi\endcsname
+%% code guards
+\edef\x{%
+\catcode32=\the\catcode32%
+\catcode45=\the\catcode45%
+\catcode46=\the\catcode46%
+\catcode47=\the\catcode47%
+\catcode58=\the\catcode58%
+\catcode64=\the\catcode64%
+\relax}
+\catcode32=10\relax
+\catcode45=12 % <->
+\catcode46=12 % <.>
+\catcode47=12 % </>
+\catcode58=12 % <:>
+\catcode64=11 % <@>
+\edef\bxip@up@restore@codes{\x
+ \noexpand\let\noexpand\bxip@up@restore@codes\relax}
+\def\bxipIfuptexLoaded{\endinput}
+
+%% check for LaTeX
+\ifx\RequirePackage\@undefined % non-LaTeX
+ \long\def\x#1\ProvidesPackage#2[#3]{%
+ \def\x\RequirePackage##1[##2]{\input ##1.sty\relax}%
+ \immediate\write-1{Package: #2 #3}}
+ \expandafter\x
+\else % LaTeX
+ \let\x\relax
+\fi
+
+%% package declaration
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ifuptex}[2017/05/04 v1.1-pre upTeX checker]
+
+%% load ifptex
+\x\RequirePackage{ifptex}[2017/05/04]
+
+%% all done
+\bxip@up@restore@codes
+\endinput
+%% EOF