diff options
Diffstat (limited to 'Master/texmf-dist/source/uplatex/base')
-rw-r--r-- | Master/texmf-dist/source/uplatex/base/ujclasses.dtx | 33 | ||||
-rw-r--r-- | Master/texmf-dist/source/uplatex/base/uplfonts.dtx | 101 | ||||
-rw-r--r-- | Master/texmf-dist/source/uplatex/base/uplvers.dtx | 22 |
3 files changed, 48 insertions, 108 deletions
diff --git a/Master/texmf-dist/source/uplatex/base/ujclasses.dtx b/Master/texmf-dist/source/uplatex/base/ujclasses.dtx index 98581b7f8b9..1cc6c91c991 100644 --- a/Master/texmf-dist/source/uplatex/base/ujclasses.dtx +++ b/Master/texmf-dist/source/uplatex/base/ujclasses.dtx @@ -7,7 +7,7 @@ % % Copyright (c) 2010 ASCII MEDIA WORKS % Copyright (c) 2016 Takuji Tanaka -% Copyright (c) 2016-2019 Japanese TeX Development Community +% Copyright (c) 2016-2020 Japanese TeX Development Community % % This file is part of the upLaTeX2e system (community edition). % -------------------------------------------------------------- @@ -115,6 +115,13 @@ % \changes{v1.8c}{2019/10/17}{フォントサイズ変更命令をrobustに % (sync with classes.dtx 2019/08/27 v1.4j)} % \changes{v1.8c-u00}{2019/10/17}{p\LaTeX{}用に追随} +% \changes{v1.8d}{2019/10/25}{Don't use \cs{MakeRobust} if +% in rollback prior to 2015 +% (sync with classes.dtx 2019/10/25 v1.4k)} +% \changes{v1.8d-u00}{2019/10/25}{p\LaTeX{}用に追随} +% \changes{v1.8e}{2020/01/03}{Normalize label fonts +% (sync with classes.dtx 2019/12/20 v1.4l)} +% \changes{v1.8e-u00}{2020/01/03}{p\LaTeX{}用に追随} % \fi % % \iffalse @@ -144,7 +151,7 @@ %<11pt&bk>\ProvidesFile{utbk11.clo} %<12pt&bk>\ProvidesFile{utbk12.clo} %</tate> - [2019/10/17 v1.8c-u00 + [2020/01/03 v1.8e-u00 %<article|report|book> Standard upLaTeX class] %<10pt|11pt|12pt> Standard upLaTeX file (size option)] %<*driver> @@ -633,10 +640,17 @@ % カーネルの定義を|\renewcommand|した後に|\MakeRobust|を使っている理由は、 % ログに |LaTeX Info: Redefining \normalsize on input line ...| という % メッセージを出したくないからです。 +% ただし、\textsf{latexrelease}パッケージで2015/01/01より +% 昔の日付に巻き戻っている場合は|\MakeRobust|が定義されていません。 % \changes{v1.8c}{2019/10/17}{フォントサイズ変更命令をrobustに % (sync with classes.dtx 2019/08/27 v1.4j)} +% \changes{v1.8d}{2019/10/25}{Don't use \cs{MakeRobust} if +% in rollback prior to 2015 +% (sync with classes.dtx 2019/10/25 v1.4k)} % \begin{macrocode} -\MakeRobust\normalsize +\ifx\MakeRobust\@undefined \else + \MakeRobust\normalsize +\fi % \end{macrocode} % \end{macro} % \end{macro} @@ -3363,17 +3377,20 @@ % itemize環境のそれぞれの項目のラベルは、 % |\labelenumi| \ldots\ |\labelenumiv|で生成されます。 % \changes{v1.1a}{1997/01/28}{Bug fix: \cs{labelitemii}.} +% \changes{v1.8e}{2020/01/03}{Normalize label fonts +% (sync with classes.dtx 2019/12/20 v1.4l)} % \begin{macrocode} -\newcommand{\labelitemi}{\textbullet} +\newcommand{\labelitemi}{\labelitemfont \textbullet} \newcommand{\labelitemii}{% \iftdir - {\textcircled{~}} + {\labelitemfont \textcircled{~}} \else - {\normalfont\bfseries\textendash} + {\labelitemfont \bfseries\textendash} \fi } -\newcommand{\labelitemiii}{\textasteriskcentered} -\newcommand{\labelitemiv}{\textperiodcentered} +\newcommand{\labelitemiii}{\labelitemfont \textasteriskcentered} +\newcommand{\labelitemiv}{\labelitemfont \textperiodcentered} +\newcommand\labelitemfont{\normalfont} % \end{macrocode} % \end{macro} % \end{macro} diff --git a/Master/texmf-dist/source/uplatex/base/uplfonts.dtx b/Master/texmf-dist/source/uplatex/base/uplfonts.dtx index d6824c94d4f..0ce9aa830f9 100644 --- a/Master/texmf-dist/source/uplatex/base/uplfonts.dtx +++ b/Master/texmf-dist/source/uplatex/base/uplfonts.dtx @@ -7,7 +7,7 @@ % % Copyright (c) 2010 ASCII MEDIA WORKS % Copyright (c) 2016 Takuji Tanaka -% Copyright (c) 2016-2019 Japanese TeX Development Community +% Copyright (c) 2016-2020 Japanese TeX Development Community % % This file is part of the upLaTeX2e system (community edition). % -------------------------------------------------------------- @@ -72,13 +72,15 @@ % (based on plfonts.dtx 2018/07/03 v1.6q)} % \changes{v1.6t-u02}{2019/09/22}{p\LaTeX{}の変更に追随。 % (based on plfonts.dtx 2019/09/16 v1.6t)} +% \changes{v1.6v-u02}{2020/02/01}{p\LaTeX{}の変更に追随。 +% (based on plfonts.dtx 2020/02/01 v1.6v)} % \fi % % \iffalse %<*driver> \NeedsTeXFormat{pLaTeX2e} % \fi -\ProvidesFile{uplfonts.dtx}[2019/09/22 v1.6t-u02 upLaTeX New Font Selection Scheme] +\ProvidesFile{uplfonts.dtx}[2020/02/01 v1.6v-u02 upLaTeX New Font Selection Scheme] % \iffalse \documentclass{jltxdoc} \GetFileInfo{uplfonts.dtx} @@ -169,8 +171,6 @@ % (based on plfonts.dtx 2017/12/05 v1.6k)} % % -% -% % \section{デフォルト設定ファイル}\label{plfonts:pldefs} % ここでは、フォーマットファイルに読み込まれるデフォルト値を設定しています。 % この節での内容は\file{upldefs.ltx}に出力されます。 @@ -184,7 +184,7 @@ % \begin{macrocode} %<*pldefs> \ProvidesFile{upldefs.ltx} - [2019/09/22 v1.6t-u02 upLaTeX Kernel (Default settings)] + [2020/02/01 v1.6v-u02 upLaTeX Kernel (Default settings)] %</pldefs> % \end{macrocode} % @@ -224,13 +224,18 @@ \KanjiEncodingPair{JY2}{JT2} % \end{macrocode} % フォント属性のデフォルト値: +% \LaTeXe~2019-10-01までは|\shapedefault|は|\updefault|でしたが、 +% \LaTeXe~2020-02-02で|\updefault|が``n''から``up''へと修正されたことに +% 伴い、|\shapedefault|は明示的に``n''に設定されました。 +% \changes{v1.6v}{2020/02/01}{Set \cs{kanjishapedefault} explicitly to ``n'' +% (sync with fontdef.dtx 2019/12/17 v3.0e)} % \begin{macrocode} \newcommand\mcdefault{mc} \newcommand\gtdefault{gt} \newcommand\kanjiencodingdefault{JY2} \newcommand\kanjifamilydefault{\mcdefault} \newcommand\kanjiseriesdefault{\mddefault} -\newcommand\kanjishapedefault{\updefault} +\newcommand\kanjishapedefault{n}% formerly \updefault % \end{macrocode} % 和文エンコードの指定: % \begin{macrocode} @@ -251,57 +256,6 @@ \fontencoding{JY2}\selectfont % \end{macrocode} % -% \begin{macro}{\textmc} -% \begin{macro}{\textgt} -% \changes{v1.3b}{1997/01/28}{\cs{textmc}, \cs{textgt}の動作修正} -% テキストファミリを切り替えるためのコマンドです。 -% \file{ltfntcmd.dtx}で定義されている|\textrm|などに対応します。 -% \begin{macrocode} -\DeclareTextFontCommand{\textmc}{\mcfamily} -\DeclareTextFontCommand{\textgt}{\gtfamily} -% \end{macrocode} -% \end{macro} -% \end{macro} -% -% \begin{macro}{\em} -% \begin{macro}{\emph} -% \begin{macro}{\eminnershape} -% \changes{v1.3d}{1997/06/25}{\cs{em},\cs{emph}で和文を強調書体に} -% \changes{v1.6}{2016/02/01}{\LaTeX\ \texttt{!<2015/01/01!>}での\cs{em}の -% 定義変更に対応。\cs{eminnershape}を追加。} -% 従来は|\em|, |\emph|で和文フォントの切り替えは行っていませんでしたが、 -% 和文フォントも|\gtfamily|に切り替えるようにしました。 -% \LaTeX\ \texttt{<2015/01/01>}で追加された|\eminnershape|も取り入れ、 -% 強調コマンドを入れ子にする場合の書体を自由に再定義できるようになりました。 -% \begin{macrocode} -%</pldefs> -%<platexrelease>\plIncludeInRelease{2016/04/17}{\eminnershape}{\eminnershape}% -%<*pldefs|platexrelease> -\DeclareRobustCommand\em - {\@nomath\em \ifdim \fontdimen\@ne\font >\z@ - \eminnershape \else \gtfamily \itshape \fi}% -\def\eminnershape{\mcfamily \upshape}% -%</pldefs|platexrelease> -%<platexrelease>\plEndIncludeInRelease -%<platexrelease>\plIncludeInRelease{2015/01/01}{\eminnershape}{\eminnershape}% -%<platexrelease>\DeclareRobustCommand\em -%<platexrelease> {\@nomath\em \ifdim \fontdimen\@ne\font >\z@ -%<platexrelease> \mcfamily \upshape \else \gtfamily \itshape \fi} -%<platexrelease>\def\eminnershape{\upshape}% defined by LaTeX, but not used by pLaTeX -%<platexrelease>\plEndIncludeInRelease -%<platexrelease>\plIncludeInRelease{0000/00/00}{\eminnershape}{\eminnershape}% -%<platexrelease>\DeclareRobustCommand\em -%<platexrelease> {\@nomath\em \ifdim \fontdimen\@ne\font >\z@ -%<platexrelease> \mcfamily \upshape \else \gtfamily \itshape \fi} -%<platexrelease>\let\eminnershape\@undefined -%<platexrelease>\plEndIncludeInRelease -%<*pldefs> -% \end{macrocode} -% \end{macro} -% \end{macro} -% \end{macro} -% -% % \changes{v1.3b}{1997/01/30}{数式用フォントの宣言をクラスファイルに移動した} % % @@ -379,39 +333,6 @@ \jcharwidowpenalty=500 % \end{macrocode} % -% \begin{macro}{\<} -% 最後に、|\inhibitglue|の簡略形を定義します。 -% このコマンドは、和文フォントのメトリック情報から、自動的に挿入される -% グルーの挿入を禁止します。 -% -% 2014年のp\TeX{}の|\inhibitglue|のバグ修正に伴い、 -% |\inhibitglue|が垂直モードでは効かなくなりました。 -% \LaTeX{}では垂直モードと水平モードの区別が隠されていますので、 -% p\LaTeX{}の追加命令である|\<|は段落頭でも効くように修正します。 -% -% |\DeclareRobustCommand|を使うと|\protect|の影響で前方の文字に対する -% |\inhibitglue|が効かなくなるので、e-\TeX{}の|\protected|が必要です。 -% \changes{v1.6i}{2017/09/24}{\cs{<}が段落頭でも効くようにした} -% \begin{macrocode} -%</pldefs> -%<platexrelease>\plIncludeInRelease{2017/10/28}{\<} -%<platexrelease> {\inhibitglue in vertical mode}% -%<*pldefs|platexrelease> -\ifx\protected\@undefined -\def\<{\inhibitglue} -\else -\protected\def\<{\ifvmode\leavevmode\fi\inhibitglue} -\fi -%</pldefs|platexrelease> -%<platexrelease>\plEndIncludeInRelease -%<platexrelease>\plIncludeInRelease{0000/00/00}{\<} -%<platexrelease> {ASCII Corporation original}% -%<platexrelease>\def\<{\inhibitglue} -%<platexrelease>\plEndIncludeInRelease -%<*pldefs> -% \end{macrocode} -% \end{macro} -% % ここまでが、\file{pldefs.ltx}の内容です。 % \begin{macrocode} %</pldefs> diff --git a/Master/texmf-dist/source/uplatex/base/uplvers.dtx b/Master/texmf-dist/source/uplatex/base/uplvers.dtx index f6f8869e840..09078835be6 100644 --- a/Master/texmf-dist/source/uplatex/base/uplvers.dtx +++ b/Master/texmf-dist/source/uplatex/base/uplvers.dtx @@ -7,7 +7,7 @@ % % Copyright (c) 2010 ASCII MEDIA WORKS % Copyright (c) 2016 Takuji Tanaka -% Copyright (c) 2016-2019 Japanese TeX Development Community +% Copyright (c) 2016-2020 Japanese TeX Development Community % % This file is part of the upLaTeX2e system (community edition). % -------------------------------------------------------------- @@ -65,12 +65,13 @@ % \changes{v1.1h-u02}{2018/02/18}{p\LaTeX{}の変更に追随。 % (based on plvers.dtx 2018/01/10 v1.1h)} % \changes{v1.1i-u02}{2018/03/31}{p\LaTeXe\ 2018/03/09以降必須} +% \changes{v1.1r-u03}{2020/02/01}{p\LaTeXe\ 2020/02/02以降必須} % \fi % % \iffalse %<*driver> % \fi -\ProvidesFile{uplvers.dtx}[2018/03/31 v1.1i-u02 upLaTeX Kernel (Version Info)] +\ProvidesFile{uplvers.dtx}[2020/02/01 v1.1r-u03 upLaTeX Kernel (Version Info)] % \iffalse \documentclass{jltxdoc} \GetFileInfo{uplvers.dtx} @@ -87,17 +88,18 @@ % \section{up\LaTeXe{}のバージョンの設定} % まず、このディストリビューションでのup\LaTeXe{}の日付とバージョン番号 % を定義します。 -% このバージョンのup\LaTeXe{}のフォーマット作成では、 +% 2018/03/09以降、up\LaTeXe{}のフォーマット作成では % p\LaTeXe{}が提供する\file{plcore.ltx}の後から % \file{uplcore.ltx}が読まれなければなりません。 -% +% また、2020/02/02以降は|\textmc|や|\em|の定義も +% \file{upldefs.ltx}ではなく共通の\file{plcore.ltx}に依存します。 +% そのため、p\LaTeX{}のバージョンを確認します。 % \changes{v1.0q-u00}{2011/05/07}{p\LaTeX{}用からup\LaTeX{}用に修正。 % (based on plvers.dtx 2006/11/10 v1.0q)} % \changes{v1.1g-u02}{2017/12/10}{p\LaTeX{}との統合のため、 % up\LaTeX{}のバージョンと最小限の変更だけを定義するようにした} -% -% まず、次のバージョンのp\LaTeX{}が利用可能なことを確認します。 % \changes{v1.1i-u02}{2018/03/31}{p\LaTeXe\ 2018/03/09以降必須} +% \changes{v1.1r-u03}{2020/02/01}{p\LaTeXe\ 2020/02/02以降必須} % \begin{macrocode} %<*plcore> \ifx\pfmtversion\@undefined @@ -110,12 +112,12 @@ removing old `uplatex.ltx' and install the latest one}\@@end \else - \ifnum\expandafter\@parse@version\pfmtversion//00\@nil<20180309 + \ifnum\expandafter\@parse@version\pfmtversion//00\@nil<20200202 \errhelp{Please update your TeX installation; if not available, obtain it^^Jmanually from CTAN (https://ctan.org/pkg/platex) or from^^JGitHub (https://github.com/texjporg/platex).}% - \errmessage{This version of upLaTeX2e requires pLaTeX2e 2018/03/09 + \errmessage{This version of upLaTeX2e requires pLaTeX2e 2020/02/02 or newer!^^JObtain a newer version of `platex', otherwise upLaTeX2e setup will^^Jnever succeed}\@@end \fi @@ -128,11 +130,11 @@ % \begin{macro}{\ppatch@level} % up\LaTeXe{}のフォーマットファイル名とバージョンです。 % フォーマット名はp\LaTeXe{}のもの (\pfmtname) をそのまま引き継ぎ、 -% バージョンはp\LaTeXe{}のものの末尾に``u02''のようにサフィックスを付けます。 +% バージョンはp\LaTeXe{}のものの末尾に``u03''のようにサフィックスを付けます。 % \begin{macrocode} %<*plcore> %\def\pfmtname{pLaTeX2e} -\def\uppatch@level{u02} +\def\uppatch@level{u03} \edef\pfmtversion{\pfmtversion\uppatch@level} %</plcore> % \end{macrocode} |