summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/platex/base/platexrelease.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-03-09 22:46:10 +0000
committerKarl Berry <karl@freefriends.org>2018-03-09 22:46:10 +0000
commit1363382ab40cad5afc0990b51f99f03141b6d4f3 (patch)
treee5e1f8190eeb888f8f7247f1e1516443ff3ca978 /Master/texmf-dist/tex/platex/base/platexrelease.sty
parent8f6a85906eed05ad9e0bf213a1232b24ab5f5d71 (diff)
platex (9mar18)
git-svn-id: svn://tug.org/texlive/trunk@46902 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/platex/base/platexrelease.sty')
-rw-r--r--Master/texmf-dist/tex/platex/base/platexrelease.sty141
1 files changed, 135 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/platex/base/platexrelease.sty b/Master/texmf-dist/tex/platex/base/platexrelease.sty
index 7f81f324a97..9ff963103b1 100644
--- a/Master/texmf-dist/tex/platex/base/platexrelease.sty
+++ b/Master/texmf-dist/tex/platex/base/platexrelease.sty
@@ -9,7 +9,7 @@
%% plfonts.dtx (with options: `platexrelease')
%% plcore.dtx (with options: `platexrelease')
%%
-%% Copyright (c) 2016 Japanese TeX Development Community
+%% Copyright (c) 2016-2018 Japanese TeX Development Community
%%
%% This file is part of the pLaTeX2e system (community edition).
%% -------------------------------------------------------------
@@ -18,8 +18,16 @@
\edef\p@known@latexreleaseversion
{2017/04/15}
\edef\platexreleaseversion
- {2017/10/28}
-\def\plIncludeInRelease#1{\kernel@ifnextchar[%
+ {2018/03/09}
+\newif\if@plincludeinrelease
+\@plincludeinreleasefalse
+\def\plIncludeInRelease#1{%
+ \if@plincludeinrelease
+ \PackageError{platexrelease}
+ {mis-matched \string\plIncludeInRelease}{}%
+ \@plincludeinreleasefalse
+ \fi
+ \kernel@ifnextchar[%
{\@plIncludeInRelease{#1}}
{\@plIncludeInRelease{#1}[#1]}}
\def\@plIncludeInRelease#1[#2]{\@plIncludeInRele@se{#2}}
@@ -32,6 +40,7 @@
\expandafter\expandafter\expandafter\@gobble@plIncludeInRelease
\else
\GenericInfo{}{Applying: \the\toks@}%
+ \@plincludeinreleasetrue
\expandafter\let\csname\string#2+\@currname+plIIR\endcsname\@empty
\fi
\else
@@ -39,12 +48,28 @@
\expandafter\@gobble@plIncludeInRelease
\fi
}
-\long\def\@gobble@plIncludeInRelease#1\plEndIncludeInRelease{}
-\let\plEndIncludeInRelease\relax
+\def\plEndIncludeInRelease{%
+ \if@plincludeinrelease
+ \@plincludeinreleasefalse
+ \else
+ \PackageError{platexrelease}
+ {mis-matched \string\plEndIncludeInRelease}{}%
+ \fi}
+\long\def\@gobble@plIncludeInRelease#1\plEndIncludeInRelease{%
+ \@plincludeinreleasefalse
+ \@check@plIncludeInRelease#1\plIncludeInRelease
+ \@check@plIncludeInRelease\@end@check@plIncludeInRelease}
+\long\def\@check@plIncludeInRelease#1\plIncludeInRelease
+ #2#3\@end@check@plIncludeInRelease{%
+ \ifx\@check@plIncludeInRelease#2\else
+ \PackageError{platexrelease}
+ {skipped \string\plIncludeInRelease}{}%
+ \fi}
%% File: platexrelease.dtx
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{platexrelease}
- [2018/01/27 v1.0j latexrelease support for pLaTeX Kernel]
+ [2018/01/27 v1.0k latexrelease support for pLaTeX Kernel
+ (including releases up to \platexreleaseversion)]
\RequirePackageWithOptions{latexrelease}
\ifnum\expandafter\@parse@version\latexreleaseversion//00\@nil
>\expandafter\@parse@version\p@known@latexreleaseversion//00\@nil
@@ -522,6 +547,25 @@ of this package available from CTAN}
\def\<{\inhibitglue}
\plEndIncludeInRelease
%% File: plcore.dtx
+\plIncludeInRelease{2018/03/09}%
+ {\removejfmglue}{Macro added}%
+\ifx\lastnodesubtype\@undefined
+ \let\removejfmglue\@undefined
+\else
+ \def\pltx@gluetype{11}
+ \def\pltx@jfmgluesubtype{21}
+ \protected\def\removejfmglue{%
+ \ifnum\lastnodetype=\pltx@gluetype\relax
+ \ifnum\lastnodesubtype=\pltx@jfmgluesubtype\relax
+ \unskip
+ \fi
+ \fi}
+\fi
+\plEndIncludeInRelease
+\plIncludeInRelease{0000/00/00}%
+ {\removejfmglue}{Macro added}%
+\let\removejfmglue\@undefined
+\plEndIncludeInRelease
\plIncludeInRelease{2017/10/28}{\@no@lnbk}
{Break before prebreakpenalty}%
\def\@no@lnbk #1[#2]{%
@@ -1126,6 +1170,58 @@ of this package available from CTAN}
\@startfield
\strut}
\plEndIncludeInRelease
+\plIncludeInRelease{2018/03/09}{\@tabclassz}
+ {Inhibit JFM glue in tabular cells}%
+\ifx\removejfmglue\@undefined
+\def\@tabclassz{%
+ \ifcase\@lastchclass
+ \@acolampacol
+ \or
+ \@ampacol
+ \or
+ \or
+ \or
+ \@addamp
+ \or
+ \@acolampacol
+ \or
+ \@firstampfalse\@acol
+ \fi
+ \edef\@preamble{%
+ \@preamble{%
+ \ifcase\@chnum
+ \hfil\mbox{\inhibitglue\ignorespaces\@sharp\unskip}\hfil % c
+ \or
+ \hskip1sp\mbox{\inhibitglue\ignorespaces\@sharp\unskip}\hfil % l
+ \or
+ \hfil\hskip1sp\mbox{\inhibitglue\ignorespaces\@sharp\unskip}% % r
+ \fi}}}
+\else
+\def\@tabclassz{%
+ \ifcase\@lastchclass
+ \@acolampacol
+ \or
+ \@ampacol
+ \or
+ \or
+ \or
+ \@addamp
+ \or
+ \@acolampacol
+ \or
+ \@firstampfalse\@acol
+ \fi
+ \edef\@preamble{%
+ \@preamble{%
+ \ifcase\@chnum
+ \hfil\inhibitglue\ignorespaces\@sharp\unskip\removejfmglue\hfil % c
+ \or
+ \hskip1sp\inhibitglue\ignorespaces\@sharp\unskip\removejfmglue\hfil % l
+ \or
+ \hfil\hskip1sp\inhibitglue\ignorespaces\@sharp\unskip\removejfmglue % r
+ \fi}}}
+\fi
+\plEndIncludeInRelease
\plIncludeInRelease{2017/09/26}{\@tabclassz}
{Inhibit JFM glue in tabular cells}%
\def\@tabclassz{%
@@ -1204,6 +1300,11 @@ of this package available from CTAN}
\hfil\hskip1sp\ignorespaces\@sharp\unskip
\fi}}}
\plEndIncludeInRelease
+\plIncludeInRelease{2018/03/09}{\@classv}
+ {Inhibit JFM glue in tabular cells}%
+\def\@classv{\@addtopreamble{\@startpbox{\@nextchar}\pltx@next@inhibitglue\ignorespaces
+\@sharp\unskip\@endpbox}}
+\plEndIncludeInRelease
\plIncludeInRelease{2017/07/29}{\@classv}
{Inhibit JFM glue in tabular cells}%
\def\@classv{\@addtopreamble{\@startpbox{\@nextchar}\mbox{}\inhibitglue\ignorespaces
@@ -1214,6 +1315,19 @@ of this package available from CTAN}
\def\@classv{\@addtopreamble{\@startpbox{\@nextchar}\ignorespaces
\@sharp\@endpbox}}
\plEndIncludeInRelease
+\plIncludeInRelease{2018/03/09}{\pltx@next@inhibitglue}
+ {Add \pltx@next@inhibitglue}%
+\protected\def\pltx@next@inhibitglue{%
+ \ifhmode\inhibitglue\else
+ \edef\@tempa{\everypar{\inhibitglue
+ \everypar{\unexpanded\expandafter{\the\everypar}}%
+ \unexpanded\expandafter{\the\everypar}}}%
+ \@tempa\fi}
+\plEndIncludeInRelease
+\plIncludeInRelease{0000/00/00}{\pltx@next@inhibitglue}
+ {Add \pltx@next@inhibitglue}%
+\let\pltx@next@inhibitglue\@undefined
+\plEndIncludeInRelease
\plIncludeInRelease{2016/04/17}{\@tabular}
{Remove extra \xkanjiskip}%
\def\@tabular{\leavevmode \null\hbox \bgroup $\let\@acol\@tabacol
@@ -1294,6 +1408,21 @@ of this package available from CTAN}
\ifmmode\@@underline{#1}%
\else $\@@underline{\hbox{#1}}\m@th$\relax\fi}
\plEndIncludeInRelease
+\plIncludeInRelease{2018/03/09}%
+ {\e@alloc@chardef}{Extended Allocation (FAM256)}%
+\ifx\omathchar\@undefined
+ \ifx\widowpenalties\@undefined
+ \mathchardef\e@alloc@top=255
+ \let\e@alloc@chardef\chardef
+ \else
+ \mathchardef\e@alloc@top=32767
+ \let\e@alloc@chardef\mathchardef
+ \fi
+\else
+ \omathchardef\e@alloc@top=65535
+ \let\e@alloc@chardef\omathchardef
+\fi
+\plEndIncludeInRelease
\plIncludeInRelease{2016/11/29}%
{\e@alloc@chardef}{Extended Allocation (FAM256)}%
\ifx\omathchar\@undefined