diff options
author | Karl Berry <karl@freefriends.org> | 2017-09-09 22:34:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-09-09 22:34:52 +0000 |
commit | c42e54b3509277ed969d390623d69d15e4e557ce (patch) | |
tree | d37e67969f6a3b4800710c2a0b8ee00710e62719 /Master | |
parent | b2e300e48927b11a837f7f49663f5da307bdaac3 (diff) |
ifptex (9sep17)
git-svn-id: svn://tug.org/texlive/trunk@45254 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/generic/ifptex/README-ja.md | 24 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/ifptex/README.md | 14 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/ifptex/ifptex.sty | 28 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/ifptex/ifuptex.sty | 4 |
4 files changed, 58 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/generic/ifptex/README-ja.md b/Master/texmf-dist/doc/generic/ifptex/README-ja.md index 2ed2e754b71..1ef3daa9921 100644 --- a/Master/texmf-dist/doc/generic/ifptex/README-ja.md +++ b/Master/texmf-dist/doc/generic/ifptex/README-ja.md @@ -36,24 +36,34 @@ LaTeX の場合: ### 機能 +注意:e-TeX拡張の有無は区別されない。 + * `\ifpTeX`(又は `\ifptex`)[if-トークン] - pTeX(upTeX を含む)を使っているか。 + pTeX(upTeX、pTeX-ng を含む)を使っているか。 * `\ifstrictpTeX`(又は `\ifstrictptex`)[if-トークン] - pTeX(upTeX ではなく)を使っているか。 + pTeX(upTeX、pTeX-ng ではなく)を使っているか。 * `\ifupTeX`(又は `\ifuptex`) [if-トークン] - upTeX を使っているか。 + upTeX(pTeX-ng を含む)を使っているか。 + * `\ifstrictupTeX`(又は `\ifstrictuptex`) [if-トークン] + upTeX(pTeX-ng ではなく)を使っているか。 * `\ifnativeupTeX` [if-トークン] upTeX を内部文字コードが Unicode の状態で使っているか。 * `\ifpTeXng`(又は `\ifptexng`)[if-トークン] - pTeX-ng を使っているか。 + pTeX-ng を使っているか。 + ※一応 `\ifstrictpTeXng`(`\ifstrictptexng`)もある。 * `\RequirepTeX` `\ifpTeX` 不成立の場合はエラーを出す。 + * `\RequireStirctpTeX` + `\ifstrictpTeX` 不成立の場合はエラーを出す。 * `\RequireupTeX` `\ifupTeX` 不成立の場合はエラーを出す。 + * `\RequireStrictupTeX` + `\ifstrictupTeX` 不成立の場合はエラーを出す。 * `\RequireNativeupTeX` - `\ifNativeupTeX` 不成立の場合はエラーを出す。 + `\ifnativeupTeX` 不成立の場合はエラーを出す。 * `\RequirepTeXng` - `\ifpTeXng` 不成立の場合はエラーを出す。 + `\ifpTeXng` 不成立の場合はエラーを出す。 + ※一応 `\RequireStrictpTeXng` もある。 ifuptex パッケージ ― ifptex の別名 @@ -76,6 +86,8 @@ LaTeX の場合: 更新履歴 -------- + * Version 1.2 〈2017/09/09〉 + - `\ifstrictupTeX`、`\RequireStrictupTeX` を追加。 * Version 1.1 〈2017/05/04〉 - 細かい調整。 * Version 1.0 〈2013/04/29〉 diff --git a/Master/texmf-dist/doc/generic/ifptex/README.md b/Master/texmf-dist/doc/generic/ifptex/README.md index 05591ab2fd8..89acfb031bb 100644 --- a/Master/texmf-dist/doc/generic/ifptex/README.md +++ b/Master/texmf-dist/doc/generic/ifptex/README.md @@ -40,12 +40,16 @@ In LaTeX: ### Usage +NB: Here “e-TeX-ness” is not considered. + * `\ifpTeX` (or `\ifptex`) [if-token] - Whether the engine is pTeX (or its derivative, including upTeX). + Whether the engine is pTeX (including upTeX or pTeX-ng). * `\ifstrictpTeX` (or `\ifstrictptex`) [if-token] - Whether the engine is pTeX (or its derivative) but *not* upTeX. + Whether the engine is pTeX but *not* upTeX or pTeX-ng. * `\ifupTeX` (or `\ifuptex`) [if-token] - Whether the engine is upTeX (or its derivative). + Whether the engine is upTeX (including pTeX-ng). + * `\ifstrictupTeX` (or `\ifstrictuptex`) [if-token] + Whether the engine is upTeX but *not* pTeX-ng. * `\ifnativeupTeX` [if-token] Whether the engine is upTeX and its internal encoding is Unicode. * `\ifpTeXng` (or `\ifptexng`) [if-token] @@ -56,6 +60,8 @@ In LaTeX: Issues an error if `\ifstrictpTeX` fails. * `\RequireupTeX` Issues an error if `\ifupTeX` fails. + * `\RequireStrictupTeX` + Issues an error if `\ifstrictupTeX` fails. * `\RequireNativeupTeX` Issues an error if `\ifnativeupTeX` fails. * `\RequirepTeXng` @@ -86,6 +92,8 @@ Just the same as the ifptex package. Revision History ---------------- + * Version 1.2 〈2017/09/09〉 + - Add `\ifstrictupTeX` and `RequireStrictupTeX`. * Version 1.1 〈2017/05/04〉 - Minor fix. * Version 1.0 〈2013/04/29〉 diff --git a/Master/texmf-dist/tex/generic/ifptex/ifptex.sty b/Master/texmf-dist/tex/generic/ifptex/ifptex.sty index 75273980832..de4b68fb4e2 100644 --- a/Master/texmf-dist/tex/generic/ifptex/ifptex.sty +++ b/Master/texmf-dist/tex/generic/ifptex/ifptex.sty @@ -47,7 +47,7 @@ %% package declaration \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ifptex}[2017/05/04 v1.1-pre pTeX checker] +\ProvidesPackage{ifptex}[2017/09/09 v1.2 pTeX checker] %% enter the big group \begingroup @@ -133,6 +133,13 @@ \fi %--------------------------------------- public stuffs +% Note: +% 1) Names '\ifFooTeX' are used in iftex. +% 2) Names '\iffootex' are used in ifxetex/ifluatex/.... +% My preferences are: +% - '\ifwhateverFooTeX' and '\RequireWhateverFooTeX'. +% But I also provide aliases '\iffootex' and '\ifstrictfootex' for +% compatibility with 1) and the old ifuptex. %%<+> \ifpTeX \global\bxip@false{ifpTeX} @@ -170,6 +177,19 @@ %%<+> \ifstrictptex == \ifstrictpTeX \global\bxip@csletcs{ifstrictptex}{ifstrictpTeX} +%%<+> \ifstrictupTeX +\global\bxip@false{ifstrictupTeX} +\ifupTeX \ifpTeXng\else + \global\bxip@true{ifstrictupTeX} +\fi\fi +%%<+> \ifstrictuptex == \ifstrictupTeX +\global\bxip@csletcs{ifstrictuptex}{ifstrictupTeX} + +%%<+> \ifstrictpTeXng (== \ifpTeXng, for now) +\global\bxip@csletcs{ifstrictpTeXng}{ifpTeXng} +%%<+> \ifstrictptexng == \ifstrictpTeXng +\global\bxip@csletcs{ifstrictptexng}{ifstrictpTeXng} + %%<+> \RequirepTeX \gdef\RequirepTeX{% \ifpTeX\else \bxip@err@required{(u)pTeX}\fi} @@ -179,12 +199,18 @@ %%<+> \RequireupTeX \gdef\RequireupTeX{% \ifupTeX\else \bxip@err@required{upTeX}\fi} +%%<+> \RequireStrictupTeX +\gdef\RequireStrictupTeX{% + \ifstrictupTeX\else \bxip@err@required{upTeX (not pTeX-ng)}\fi} %%<+> \RequireNativeupTeX \gdef\RequireNativeupTeX{% \ifnativeupTeX\else \bxip@err@required{upTeX in Unicode}\fi} %%<+> \RequirepTeXng \gdef\RequirepTeXng{% \ifpTeXng\else \bxip@err@required{pTeX-ng}\fi} +%%<+> \RequireStrictpTeXng +\gdef\RequireStrictpTeXng{% + \ifstrictpTeXng\else \bxip@err@required{pTeX-ng}\fi} %--------------------------------------- deprecated stuffs diff --git a/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty b/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty index 8742a0a2cac..0872dba1e80 100644 --- a/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty +++ b/Master/texmf-dist/tex/generic/ifptex/ifuptex.sty @@ -43,10 +43,10 @@ %% package declaration \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{ifuptex}[2017/05/04 v1.1-pre upTeX checker] +\ProvidesPackage{ifuptex}[2017/09/09 v1.2 upTeX checker] %% load ifptex -\x\RequirePackage{ifptex}[2017/05/04] +\x\RequirePackage{ifptex}[2017/09/09] %% all done \bxip@up@restore@codes |