From cc17d729651abcf80c9e726b564fd725cb2c2230 Mon Sep 17 00:00:00 2001 From: Hironori Kitagawa Date: Thu, 17 Oct 2019 22:17:34 +0900 Subject: [PATCH] sync with pLaTeX's jclasses.dtx --- src/ltjarticle.cls | 3 +-- src/ltjbk10.clo | 22 ++++++++-------- src/ltjbk11.clo | 22 ++++++++-------- src/ltjbk12.clo | 20 +++++++-------- src/ltjbook.cls | 3 +-- src/ltjclasses.dtx | 74 ++++++++++++++++++++++++++++++++++------------------- src/ltjreport.cls | 3 +-- src/ltjsize10.clo | 22 ++++++++-------- src/ltjsize11.clo | 22 ++++++++-------- src/ltjsize12.clo | 20 +++++++-------- src/ltjtarticle.cls | 3 +-- src/ltjtbk10.clo | 22 ++++++++-------- src/ltjtbk11.clo | 22 ++++++++-------- src/ltjtbk12.clo | 20 +++++++-------- src/ltjtbook.cls | 3 +-- src/ltjtreport.cls | 3 +-- src/ltjtsize10.clo | 22 ++++++++-------- src/ltjtsize11.clo | 22 ++++++++-------- src/ltjtsize12.clo | 20 +++++++-------- 19 files changed, 181 insertions(+), 167 deletions(-) diff --git a/src/ltjarticle.cls b/src/ltjarticle.cls index 98945f4..5315ef9 100644 --- a/src/ltjarticle.cls +++ b/src/ltjarticle.cls @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ltjarticle} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja class] \RequirePackage{luatexja} \newcounter{@paper} diff --git a/src/ltjbk10.clo b/src/ltjbk10.clo index ab67293..615066a 100644 --- a/src/ltjbk10.clo +++ b/src/ltjbk10.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjbk10.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xpt{15}% @@ -34,6 +33,7 @@ \belowdisplayskip \abovedisplayskip \let\@listi\@listI} \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -41,7 +41,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@ixpt{11}% \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus2\p@ @@ -51,7 +51,7 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@viiipt{9.5}% \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ @@ -61,13 +61,13 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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}} \setlength\headheight{12\p@} \setlength\headsep{.25in} \setlength\topskip{1\Cht} diff --git a/src/ltjbk11.clo b/src/ltjbk11.clo index 86ddc44..1735984 100644 --- a/src/ltjbk11.clo +++ b/src/ltjbk11.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjbk11.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xipt{15.5}% @@ -34,6 +33,7 @@ \belowdisplayskip \abovedisplayskip \let\@listi\@listI} \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -41,7 +41,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -51,7 +51,7 @@ \parsep 3\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@ixpt{11}% \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ @@ -61,13 +61,13 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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}} \setlength\headheight{12\p@} \setlength\headsep{.275in} \setlength\topskip{1\Cht} diff --git a/src/ltjbk12.clo b/src/ltjbk12.clo index df2a6c9..2515d98 100644 --- a/src/ltjbk12.clo +++ b/src/ltjbk12.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjbk12.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xiipt{16.5}% @@ -34,6 +33,7 @@ \belowdisplayskip \abovedisplayskip \let\@listi\@listI} \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -41,7 +41,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@xipt{13.6}% \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -51,7 +51,7 @@ \parsep 4.5\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -61,12 +61,12 @@ \parsep 3\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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 \setlength\headheight{12\p@} \setlength\headsep{.275in} diff --git a/src/ltjbook.cls b/src/ltjbook.cls index 280da3a..25248a4 100644 --- a/src/ltjbook.cls +++ b/src/ltjbook.cls @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ltjbook} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja class] \RequirePackage{luatexja} \newcounter{@paper} diff --git a/src/ltjclasses.dtx b/src/ltjclasses.dtx index 3112fd1..590ff59 100644 --- a/src/ltjclasses.dtx +++ b/src/ltjclasses.dtx @@ -121,7 +121,8 @@ % (sync with ltsect.dtx 2018/09/26 v1.1c)} % \changes{v1.8b}{2019/04/02}{新元号対応} % \changes{v1.8b-ltj-17}{2019/08/12}{disablejfamの``Unused global option(s)''警告を出さないようにした} - +% \changes{v1.8c}{2019/10/17}{フォントサイズ変更命令をrobustに +% (sync with classes.dtx 2019/08/27 v1.4j)} % \fi % % \iffalse @@ -151,7 +152,7 @@ %<11pt&bk>\ProvidesFile{ltjtbk11.clo} %<12pt&bk>\ProvidesFile{ltjtbk12.clo} % - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 % Standard LuaLaTeX-ja class] %<10pt|11pt|12pt> Standard LuaLaTeX-ja file (size option)] %<*driver> @@ -718,6 +719,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} % @@ -748,8 +760,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@ @@ -786,8 +801,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@ @@ -831,32 +849,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 % % @@ -2218,9 +2238,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/src/ltjreport.cls b/src/ltjreport.cls index 4b46fb5..25aca81 100644 --- a/src/ltjreport.cls +++ b/src/ltjreport.cls @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ltjreport} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja class] \RequirePackage{luatexja} \newcounter{@paper} diff --git a/src/ltjsize10.clo b/src/ltjsize10.clo index 601be87..dabde72 100644 --- a/src/ltjsize10.clo +++ b/src/ltjsize10.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjsize10.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xpt{15}% @@ -34,6 +33,7 @@ \belowdisplayskip \abovedisplayskip \let\@listi\@listI} \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -41,7 +41,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@ixpt{11}% \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus2\p@ @@ -51,7 +51,7 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@viiipt{9.5}% \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ @@ -61,13 +61,13 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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}} \setlength\headheight{12\p@} \setlength\headsep{25\p@} \setlength\topskip{1\Cht} diff --git a/src/ltjsize11.clo b/src/ltjsize11.clo index fcc0f72..85abf6f 100644 --- a/src/ltjsize11.clo +++ b/src/ltjsize11.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjsize11.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xipt{15.5}% @@ -34,6 +33,7 @@ \belowdisplayskip \abovedisplayskip \let\@listi\@listI} \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -41,7 +41,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -51,7 +51,7 @@ \parsep 3\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@ixpt{11}% \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ @@ -61,13 +61,13 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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}} \setlength\headheight{12\p@} \setlength\headsep{25\p@} \setlength\topskip{1\Cht} diff --git a/src/ltjsize12.clo b/src/ltjsize12.clo index 4e1ad87..ada3335 100644 --- a/src/ltjsize12.clo +++ b/src/ltjsize12.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjsize12.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xiipt{16.5}% @@ -34,6 +33,7 @@ \belowdisplayskip \abovedisplayskip \let\@listi\@listI} \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -41,7 +41,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@xipt{13.6}% \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -51,7 +51,7 @@ \parsep 4.5\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -61,12 +61,12 @@ \parsep 3\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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 \setlength\headheight{12\p@} \setlength\headsep{25\p@} diff --git a/src/ltjtarticle.cls b/src/ltjtarticle.cls index 4f54235..7cebfa2 100644 --- a/src/ltjtarticle.cls +++ b/src/ltjtarticle.cls @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ltjtarticle} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja class] \RequirePackage{luatexja} \newcounter{@paper} diff --git a/src/ltjtbk10.clo b/src/ltjtbk10.clo index 60ee4fa..48aebd8 100644 --- a/src/ltjtbk10.clo +++ b/src/ltjtbk10.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjtbk10.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xpt{17}% @@ -36,6 +35,7 @@ \def\kanjiencodingdefault{JT3}% \kanjiencoding{\kanjiencodingdefault}% \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -43,7 +43,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@ixpt{11}% \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus2\p@ @@ -53,7 +53,7 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@viiipt{9.5}% \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ @@ -63,13 +63,13 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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}} \setlength\headheight{12\p@} \if@stysize \ifnum\c@@paper=2 % A5 diff --git a/src/ltjtbk11.clo b/src/ltjtbk11.clo index 9b4067c..902ed5d 100644 --- a/src/ltjtbk11.clo +++ b/src/ltjtbk11.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjtbk11.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xipt{17}% @@ -36,6 +35,7 @@ \def\kanjiencodingdefault{JT3}% \kanjiencoding{\kanjiencodingdefault}% \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -43,7 +43,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -53,7 +53,7 @@ \parsep 3\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@ixpt{11}% \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ @@ -63,13 +63,13 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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}} \setlength\headheight{12\p@} \if@stysize \ifnum\c@@paper=2 % A5 diff --git a/src/ltjtbk12.clo b/src/ltjtbk12.clo index 1b3f553..7546847 100644 --- a/src/ltjtbk12.clo +++ b/src/ltjtbk12.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjtbk12.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xiipt{18}% @@ -36,6 +35,7 @@ \def\kanjiencodingdefault{JT3}% \kanjiencoding{\kanjiencodingdefault}% \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -43,7 +43,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@xipt{13.6}% \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -53,7 +53,7 @@ \parsep 4.5\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -63,12 +63,12 @@ \parsep 3\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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 \setlength\headheight{12\p@} \if@stysize diff --git a/src/ltjtbook.cls b/src/ltjtbook.cls index 328fd0f..3042792 100644 --- a/src/ltjtbook.cls +++ b/src/ltjtbook.cls @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ltjtbook} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja class] \RequirePackage{luatexja} \newcounter{@paper} diff --git a/src/ltjtreport.cls b/src/ltjtreport.cls index 041e935..f95d459 100644 --- a/src/ltjtreport.cls +++ b/src/ltjtreport.cls @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ltjtreport} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja class] \RequirePackage{luatexja} \newcounter{@paper} diff --git a/src/ltjtsize10.clo b/src/ltjtsize10.clo index 1bb6c8b..4e1e4de 100644 --- a/src/ltjtsize10.clo +++ b/src/ltjtsize10.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjtsize10.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xpt{17}% @@ -36,6 +35,7 @@ \def\kanjiencodingdefault{JT3}% \kanjiencoding{\kanjiencodingdefault}% \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -43,7 +43,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@ixpt{11}% \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus2\p@ @@ -53,7 +53,7 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@viiipt{9.5}% \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ @@ -63,13 +63,13 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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}} \setlength\headheight{12\p@} \if@stysize \ifnum\c@@paper=2 % A5 diff --git a/src/ltjtsize11.clo b/src/ltjtsize11.clo index 2258dbc..7e86a5a 100644 --- a/src/ltjtsize11.clo +++ b/src/ltjtsize11.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjtsize11.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xipt{17}% @@ -36,6 +35,7 @@ \def\kanjiencodingdefault{JT3}% \kanjiencoding{\kanjiencodingdefault}% \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -43,7 +43,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -53,7 +53,7 @@ \parsep 3\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@ixpt{11}% \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@ \abovedisplayshortskip \z@ \@plus\p@ @@ -63,13 +63,13 @@ \parsep 2\p@ \@plus\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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}} \setlength\headheight{12\p@} \if@stysize \ifnum\c@@paper=2 % A5 diff --git a/src/ltjtsize12.clo b/src/ltjtsize12.clo index 645f6ce..03fa123 100644 --- a/src/ltjtsize12.clo +++ b/src/ltjtsize12.clo @@ -21,10 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% File: ltjclasses.dtx - \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ltjtsize12.clo} - [2019/08/12 v1.8b-ltj-17 + [2019/10/17 v1.8c-ltj-17 Standard LuaLaTeX-ja file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xiipt{18}% @@ -36,6 +35,7 @@ \def\kanjiencodingdefault{JT3}% \kanjiencoding{\kanjiencodingdefault}% \normalsize +\MakeRobust\normalsize \setbox0\hbox{漢} \setlength\Cht{\ht0} \setlength\Cdp{\dp0} @@ -43,7 +43,7 @@ \setlength\Cvs{\baselineskip} \setlength\Chs{\wd0} \setbox0=\box\voidb@x -\newcommand{\small}{% +\DeclareRobustCommand{\small}{% \@setfontsize\small\@xipt{13.6}% \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -53,7 +53,7 @@ \parsep 4.5\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\newcommand{\footnotesize}{% +\DeclareRobustCommand{\footnotesize}{% \@setfontsize\footnotesize\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ \abovedisplayshortskip \z@ \@plus3\p@ @@ -63,12 +63,12 @@ \parsep 3\p@ \@plus2\p@ \@minus\p@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip} -\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 \setlength\headheight{12\p@} \if@stysize -- 2.11.0