From a6de106d00a9c912d72f71034006bb3c0c1f4939 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 21 Oct 2019 20:59:52 +0000 Subject: platex (21oct19) git-svn-id: svn://tug.org/texlive/trunk@52476 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/platex/base/jclasses.dtx | 73 +++++++++++++++-------- Master/texmf-dist/source/platex/base/platex.dtx | 11 ++-- Master/texmf-dist/source/platex/base/plcore.dtx | 44 +++++++++++--- Master/texmf-dist/source/platex/base/plvers.dtx | 2 +- 4 files changed, 91 insertions(+), 39 deletions(-) (limited to 'Master/texmf-dist/source/platex') diff --git a/Master/texmf-dist/source/platex/base/jclasses.dtx b/Master/texmf-dist/source/platex/base/jclasses.dtx index 04c939bacb8..cf77787d310 100644 --- a/Master/texmf-dist/source/platex/base/jclasses.dtx +++ b/Master/texmf-dist/source/platex/base/jclasses.dtx @@ -98,6 +98,8 @@ % \changes{v1.8a}{2018/10/25}{ファイル書き出し時の行末文字対策 % (sync with ltsect.dtx 2018/09/26 v1.1c)} % \changes{v1.8b}{2019/04/02}{新元号対応} +% \changes{v1.8c}{2019/10/17}{フォントサイズ変更命令をrobustに +% (sync with classes.dtx 2019/08/27 v1.4j)} % \fi % % \iffalse @@ -127,7 +129,7 @@ %<11pt&bk>\ProvidesFile{tbk11.clo} %<12pt&bk>\ProvidesFile{tbk12.clo} % - [2019/04/02 v1.8b + [2019/10/17 v1.8c % Standard pLaTeX class] %<10pt|11pt|12pt> Standard pLaTeX file (size option)] %<*driver> @@ -609,6 +611,17 @@ %\kanjiencoding{\kanjiencodingdefault}% \normalsize % \end{macrocode} +% +% |\normalsize|をrobustにします。 +% すぐ上で|\DeclareRobustCommand|とせずに、 +% カーネルの定義を|\renewcommand|した後に|\MakeRobust|を使っている理由は、 +% ログに |LaTeX Info: Redefining \normalsize on input line ...| という +% メッセージを出したくないからです。 +% \changes{v1.8c}{2019/10/17}{フォントサイズ変更命令をrobustに +% (sync with classes.dtx 2019/08/27 v1.4j)} +% \begin{macrocode} +\MakeRobust\normalsize +% \end{macrocode} % \end{macro} % \end{macro} % @@ -639,8 +652,11 @@ % % \begin{macro}{\small} % |\small|コマンドの定義は、|\normalsize|に似ています。 +% こちらはカーネルで未定義なので、直接|\DeclareRobustCommand|で定義します。 +% \changes{v1.8c}{2019/10/17}{フォントサイズ変更命令をrobustに +% (sync with classes.dtx 2019/08/27 v1.4j)} % \begin{macrocode} -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% %<*10pt> \@setfontsize\small\@ixpt{11}% \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ @@ -677,8 +693,11 @@ % % \begin{macro}{\footnotesize} % |\footnotesize|コマンドの定義は、|\normalsize|に似ています。 +% こちらも直接|\DeclareRobustCommand|で定義します。 +% \changes{v1.8c}{2019/10/17}{フォントサイズ変更命令をrobustに +% (sync with classes.dtx 2019/08/27 v1.4j)} % \begin{macrocode} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% %<*10pt> \@setfontsize\footnotesize\@viiipt{9.5}% \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@ @@ -722,32 +741,34 @@ % \begin{macro}{\Huge} % これらは先ほどのマクロよりも簡単です。これらはフォントサイズを変更する % だけで、リスト環境とディスプレイ数式のパラメータは変更しません。 +% \changes{v1.8c}{2019/10/17}{フォントサイズ変更命令をrobustに +% (sync with classes.dtx 2019/08/27 v1.4j)} % \begin{macrocode} %<*10pt> -\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt} -\newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt} -\newcommand{\large}{\@setfontsize\large\@xiipt{17}} -\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}} -\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}} -\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}} -\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}} +\DeclareRobustCommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt} +\DeclareRobustCommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt} +\DeclareRobustCommand{\large}{\@setfontsize\large\@xiipt{17}} +\DeclareRobustCommand{\Large}{\@setfontsize\Large\@xivpt{21}} +\DeclareRobustCommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}} +\DeclareRobustCommand{\huge}{\@setfontsize\huge\@xxpt{28}} +\DeclareRobustCommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}} % %<*11pt> -\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}} -\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt} -\newcommand{\large}{\@setfontsize\large\@xiipt{17}} -\newcommand{\Large}{\@setfontsize\Large\@xivpt{21}} -\newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}} -\newcommand{\huge}{\@setfontsize\huge\@xxpt{28}} -\newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}} +\DeclareRobustCommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}} +\DeclareRobustCommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt} +\DeclareRobustCommand{\large}{\@setfontsize\large\@xiipt{17}} +\DeclareRobustCommand{\Large}{\@setfontsize\Large\@xivpt{21}} +\DeclareRobustCommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}} +\DeclareRobustCommand{\huge}{\@setfontsize\huge\@xxpt{28}} +\DeclareRobustCommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}} % %<*12pt> -\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}} -\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt} -\newcommand{\large}{\@setfontsize\large\@xivpt{21}} -\newcommand{\Large}{\@setfontsize\Large\@xviipt{25}} -\newcommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}} -\newcommand{\huge}{\@setfontsize\huge\@xxvpt{33}} +\DeclareRobustCommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}} +\DeclareRobustCommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt} +\DeclareRobustCommand{\large}{\@setfontsize\large\@xivpt{21}} +\DeclareRobustCommand{\Large}{\@setfontsize\Large\@xviipt{25}} +\DeclareRobustCommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}} +\DeclareRobustCommand{\huge}{\@setfontsize\huge\@xxvpt{33}} \let\Huge=\huge % % @@ -2079,9 +2100,9 @@ % これらの3つのコマンドは\file{ltsect.dtx}で提供されています。 % これらのコマンドは次のように定義されています。 % \begin{macrocode} -%\newcommand*{\title}[1]{\gdef\@title{#1}} -%\newcommand*{\author}[1]{\gdef\@author{#1}} -%\newcommand*{\date}[1]{\gdef\@date{#1}} +%\DeclareRobustCommand*{\title}[1]{\gdef\@title{#1}} +%\DeclareRobustCommand*{\author}[1]{\gdef\@author{#1}} +%\DeclareRobustCommand*{\date}[1]{\gdef\@date{#1}} % \end{macrocode} % |\date|マクロのデフォルトは、今日の日付です。 % \begin{macrocode} diff --git a/Master/texmf-dist/source/platex/base/platex.dtx b/Master/texmf-dist/source/platex/base/platex.dtx index dabac8c871b..a7147374c5e 100644 --- a/Master/texmf-dist/source/platex/base/platex.dtx +++ b/Master/texmf-dist/source/platex/base/platex.dtx @@ -256,11 +256,12 @@ % a \TeX\ engine with extensions for Japanese typesetting, % which is designed for high-quality % Japanese book ``p''ublishing.\footnote{There is another -% old implementation of Japanese \LaTeX, called -% \JLaTeX\ (not available in \TeX\ Live). -% Also, MiK\TeX\ has another program \texttt{platex}, but +% old implementation of Japanese \LaTeX\ by +% NTT Electrical Communications Laboratories, named +% \JLaTeX\ (unavailable in \TeX\ Live). +% Also, MiK\TeX\ has another program \texttt{platex} for Polish, but % it has nothing to do with our Japanese \pLaTeX!} -% Both \pTeX\ and \pLaTeX\ were developed by ASCII Corporation +% Both of them were developed by ASCII Corporation % (and its successor ASCII Media Works), % so they are often referred to as ``ASCII \pTeX'' and ``ASCII \pLaTeX'' % respectively. @@ -289,7 +290,7 @@ % document now, since \pLaTeXe\ came into existence in 1995 % (although the English translation has been done by % Japanese \TeX\ Development Community since 2017). -% The detail of source codes are described separately in pldoc-en.pdf. +% ^^A The detail of source codes are described separately in pldoc-en.pdf. %\fi % % diff --git a/Master/texmf-dist/source/platex/base/plcore.dtx b/Master/texmf-dist/source/platex/base/plcore.dtx index 8f38335c096..f625ad2f1da 100644 --- a/Master/texmf-dist/source/platex/base/plcore.dtx +++ b/Master/texmf-dist/source/platex/base/plcore.dtx @@ -120,13 +120,16 @@ % (sync with ltoutput.dtx 2019/08/27 v1.4e)} % \changes{v1.3c}{2019/09/16}{Make \cs{underline} robust % (sync with ltboxes.dtx 2019/08/27 v1.3b)} +% \changes{v1.3d}{2019/10/19}{判定順序を修正;extended modeかつ +% FAM256拡張ありの場合に限りレジスタ数が65536個のため。} +% \changes{v1.3d}{2019/10/19}{コピー忘れ} % \fi % % \iffalse %<*driver> \NeedsTeXFormat{pLaTeX2e} % \fi -\ProvidesFile{plcore.dtx}[2019/09/16 v1.3c pLaTeX core file] +\ProvidesFile{plcore.dtx}[2019/10/19 v1.3d pLaTeX core file] % \iffalse \documentclass{jltxdoc} \GetFileInfo{plcore.dtx} @@ -2329,20 +2332,22 @@ % \LaTeXe\ 2015/01/01以降、拡張レジスタがあれば利用するようになっています % ので、e-p\TeX{}の拡張レジスタを利用できるように設定します。 % \changes{v1.2j}{2016/11/09}{FAM256パッチ適用e-p\TeX{}に対応} +% \changes{v1.3d}{2019/10/19}{判定順序を修正;extended modeかつ +% FAM256拡張ありの場合に限りレジスタ数が65536個のため。} % \begin{macrocode} -%\plIncludeInRelease{2018/03/09}% +%\plIncludeInRelease{2019/10/01}% % {\e@alloc@chardef}{Extended Allocation (FAM256)}% %<*plcore|platexrelease> % \end{macrocode} % \begin{macrocode} -\ifx\omathchar\@undefined - \ifx\widowpenalties\@undefined +\ifx\widowpenalties\@undefined % \end{macrocode} % オリジナルの\TeX{}の場合(拡張なしのアスキーp\TeX{}の場合)。 % \begin{macrocode} \mathchardef\e@alloc@top=255 \let\e@alloc@chardef\chardef - \else +\else + \ifx\omathchar\@undefined % \end{macrocode} % e-\TeX{}拡張で$2^{15}$個のレジスタが利用できます。 % ^^A 備忘録:「FAM256なしのe-(u)p\TeX{}」は事実上存在しないはず。 @@ -2359,8 +2364,7 @@ % \begin{macrocode} \mathchardef\e@alloc@top=32767 \let\e@alloc@chardef\mathchardef - \fi -\else + \else % \end{macrocode} % FAM256パッチが適用されたe-p\TeX{}の場合は、$2^{16}$個のレジスタが利用できます。 % \changes{v1.2w}{2018/02/24}{e-up\TeX{}でも\cs{omathchardef}を使用} @@ -2371,11 +2375,27 @@ % \begin{macrocode} \omathchardef\e@alloc@top=65535 \let\e@alloc@chardef\omathchardef + \fi \fi % \end{macrocode} % \begin{macrocode} % %\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 @@ -2415,6 +2435,16 @@ % \end{macro} % \end{macro} % +% \begin{macro}{\float@count} +% |\newcount|や|\newdimen|で使われます。 +% \changes{v1.3d}{2019/10/19}{コピー忘れ} +% \begin{macrocode} +%<*plcore|platexrelease> +\let\float@count\e@alloc@top +% +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\e@mathgroup@top} % 2015/01/01以降の\LaTeXe{}カーネルは、Xe\TeX{}とLua\TeX{}に対して数式famの % 上限を16から256に増やしています(|\Umathcode| で判定)。 diff --git a/Master/texmf-dist/source/platex/base/plvers.dtx b/Master/texmf-dist/source/platex/base/plvers.dtx index e465f2dab7d..0087b31ef4d 100644 --- a/Master/texmf-dist/source/platex/base/plvers.dtx +++ b/Master/texmf-dist/source/platex/base/plvers.dtx @@ -193,7 +193,7 @@ {2019-10-01} % %<*plcore> -\def\ppatch@level{0} +\def\ppatch@level{1} % % \end{macrocode} % \end{macro} -- cgit v1.2.3