diff options
Diffstat (limited to 'Master/texmf-dist')
26 files changed, 259 insertions, 172 deletions
diff --git a/Master/texmf-dist/doc/uplatex/base/LICENSE b/Master/texmf-dist/doc/uplatex/base/LICENSE index aaca707a8ea..fa086767062 100644 --- a/Master/texmf-dist/doc/uplatex/base/LICENSE +++ b/Master/texmf-dist/doc/uplatex/base/LICENSE @@ -1,6 +1,6 @@ Copyright (c) 2010 ASCII MEDIA WORKS Copyright (c) 2016 Takuji Tanaka -Copyright (c) 2016-2018 Japanese TeX Development Community +Copyright (c) 2016-2019 Japanese TeX Development Community All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/Master/texmf-dist/doc/uplatex/base/README.md b/Master/texmf-dist/doc/uplatex/base/README.md index 72ea8417e60..235d7d4f798 100644 --- a/Master/texmf-dist/doc/uplatex/base/README.md +++ b/Master/texmf-dist/doc/uplatex/base/README.md @@ -17,6 +17,6 @@ the 3-clause BSD license (see [LICENSE](./LICENSE)). ## Release Date -2018-12-01 +2019-04-06 Japanese TeX Development Community diff --git a/Master/texmf-dist/doc/uplatex/base/upldoc.pdf b/Master/texmf-dist/doc/uplatex/base/upldoc.pdf Binary files differindex 2254b1e7bd8..5402fb291f8 100644 --- a/Master/texmf-dist/doc/uplatex/base/upldoc.pdf +++ b/Master/texmf-dist/doc/uplatex/base/upldoc.pdf diff --git a/Master/texmf-dist/source/uplatex/base/ujclasses.dtx b/Master/texmf-dist/source/uplatex/base/ujclasses.dtx index 6b6d0ef24fd..693c91f915f 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-2018 Japanese TeX Development Community +% Copyright (c) 2016-2019 Japanese TeX Development Community % % This file is part of the upLaTeX2e system (community edition). % -------------------------------------------------------------- @@ -110,6 +110,8 @@ % \changes{v1.8a}{2018/10/25}{ファイル書き出し時の行末文字対策 % (sync with ltsect.dtx 2018/09/26 v1.1c)} % \changes{v1.8a-u00}{2018/10/25}{p\LaTeX{}用に追随} +% \changes{v1.8b}{2019/04/02}{新元号対応} +% \changes{v1.8b-u00}{2019/04/02}{p\LaTeX{}用に追随} % \fi % % \iffalse @@ -139,7 +141,7 @@ %<11pt&bk>\ProvidesFile{utbk11.clo} %<12pt&bk>\ProvidesFile{utbk12.clo} %</tate> - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 %<article|report|book> Standard upLaTeX class] %<10pt|11pt|12pt> Standard upLaTeX file (size option)] %<*driver> @@ -4378,6 +4380,7 @@ % % \begin{macro}{\heisei} % \changes{v1.1m}{1998/04/07}{\cs{today}の計算手順を変更} +% \changes{v1.8b}{2019/04/02}{\cs{heisei}の値は$\mbox{西暦}-1988$で固定} % |\today|コマンドを|\rightmark|で指定したとき、|\rightmark|を出力する部分 % で和暦のための計算ができないので、クラスファイルを読み込む時点で計算して % おきます。 @@ -4387,32 +4390,46 @@ % \end{macro} % % \begin{macro}{\today} -% 縦組の場合は、漢数字で出力します。 -% \begin{macrocode} -\def\today{{% - \iftdir - \if西暦 - \kansuji\number\year 年 - \kansuji\number\month 月 - \kansuji\number\day 日 +% \begin{macro}{\pltx@today@year} +% \changes{v1.8b}{2019/04/02}{\cs{today}の計算・出力方法を変更。} +% 縦組の場合は、漢数字で出力します +% \pLaTeX\ 2018-12-01以前では縦数式ディレクション時でも漢数字で出力していましたが、 +% \pLaTeX\ 2019-04-06以降からはそうしなくなりました。 +% \begin{macrocode} +\def\pltx@today@year@#1{% + \ifnum\numexpr\year-#1=1 元\else + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\numexpr\year-#1\relax \else - 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi - \kansuji\number\month 月 - \kansuji\number\day 日 + \number\numexpr\year-#1\relax\nobreak \fi + \fi 年 +} +\def\pltx@today@year{% + \ifnum\numexpr\year*10000+\month*100+\day<19890108 + 昭和\pltx@today@year@{1925}% + \else\ifnum\numexpr\year*10000+\month*100+\day<20190501 + 平成\pltx@today@year@{1988}% \else - \if西暦 - \number\year~年 - \number\month~月 - \number\day~日 - \else - 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi - \number\month~月 - \number\day~日 - \fi + 令和\pltx@today@year@{2018}% + \fi\fi} +\def\today{{% + \if西暦 + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi\kansuji\number\year + \else\number\year\nobreak\fi 年 + \else + \pltx@today@year + \fi + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\month 月 + \kansuji\number\day 日 + \else + \number\month\nobreak 月 + \number\day\nobreak 日 \fi}} % \end{macrocode} % \end{macro} +% \end{macro} % % % diff --git a/Master/texmf-dist/source/uplatex/base/ukinsoku.dtx b/Master/texmf-dist/source/uplatex/base/ukinsoku.dtx index ec9c0975598..6a7d6bab260 100644 --- a/Master/texmf-dist/source/uplatex/base/ukinsoku.dtx +++ b/Master/texmf-dist/source/uplatex/base/ukinsoku.dtx @@ -7,7 +7,7 @@ % % Copyright (c) 2010 ASCII MEDIA WORKS % Copyright (c) 2016 Takuji Tanaka -% Copyright (c) 2016-2018 Japanese TeX Development Community +% Copyright (c) 2016-2019 Japanese TeX Development Community % % This file is part of the upLaTeX2e system (community edition). % -------------------------------------------------------------- @@ -29,13 +29,14 @@ % Latin-1 Supplementのうち属性がLatinのもの % (Latin-1 letters)をコードポイントで指定} % \changes{v1.0b-u03}{2018/04/08}{\LaTeX\ 2018-04-01対策} +% \changes{v1.0b-u04}{2019/01/29}{内部Unicode化されていることを確認} % \fi % % \iffalse %<*driver> \NeedsTeXFormat{pLaTeX2e} % \fi -\ProvidesFile{ukinsoku.dtx}[2018/04/08 v1.0b-u03 upLaTeX Kernel] +\ProvidesFile{ukinsoku.dtx}[2019/01/29 v1.0b-u04 upLaTeX Kernel] % \iffalse \documentclass{jltxdoc} \GetFileInfo{ukinsoku.dtx} @@ -56,10 +57,19 @@ % なお、このファイルのコード部分は、 % p\TeX{}やp\LaTeX{}で配布されている\file{kinsoku.tex}に、 % JIS X 0213の定義文字などの設定を追加したものです。 +% このファイルは内部コードUnicode (|uptex|)なup\TeX{}エンジンで読まれる +% 必要があります。 % \changes{v1.0-u00}{2011/05/07}{p\LaTeX{}用からup\LaTeX{}用に修正。} +% \changes{v1.0b-u04}{2019/01/29}{内部コードがUnicodeであることを確認} % % \begin{macrocode} %<*plcore> +\ifnum\ucs"3000="3000 \else + \errhelp{Please try to run (e)uptex with option + `-kanji-internal=uptex'.}% + \errmessage{This file should be read with + internal Kanji encoding Unicode}\@@end +\fi % \end{macrocode} % % \section{禁則} diff --git a/Master/texmf-dist/source/uplatex/base/uplcls.ins b/Master/texmf-dist/source/uplatex/base/uplcls.ins index 1f6e9749679..7876d28c990 100644 --- a/Master/texmf-dist/source/uplatex/base/uplcls.ins +++ b/Master/texmf-dist/source/uplatex/base/uplcls.ins @@ -9,7 +9,7 @@ Copyright (c) 2010 ASCII MEDIA WORKS Copyright (c) 2016 Takuji Tanaka -Copyright (c) 2016-2018 Japanese TeX Development Community +Copyright (c) 2016-2019 Japanese TeX Development Community This file is part of the upLaTeX2e system (community edition). -------------------------------------------------------------- diff --git a/Master/texmf-dist/source/uplatex/base/uplvers.dtx b/Master/texmf-dist/source/uplatex/base/uplvers.dtx index cfe35608c41..f6f8869e840 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-2018 Japanese TeX Development Community +% Copyright (c) 2016-2019 Japanese TeX Development Community % % This file is part of the upLaTeX2e system (community edition). % -------------------------------------------------------------- diff --git a/Master/texmf-dist/tex/uplatex/base/ujarticle.cls b/Master/texmf-dist/tex/uplatex/base/ujarticle.cls index 9a663f4f5da..2b148c04038 100644 --- a/Master/texmf-dist/tex/uplatex/base/ujarticle.cls +++ b/Master/texmf-dist/tex/uplatex/base/ujarticle.cls @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{ujarticle} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX class] \newcounter{@paper} \newif\if@landscape \@landscapefalse @@ -771,27 +771,36 @@ \def\西暦{\西暦true} \def\和暦{\西暦false} \newcount\heisei \heisei\year \advance\heisei-1988\relax -\def\today{{% - \iftdir - \if西暦 - \kansuji\number\year 年 - \kansuji\number\month 月 - \kansuji\number\day 日 +\def\pltx@today@year@#1{% + \ifnum\numexpr\year-#1=1 元\else + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\numexpr\year-#1\relax \else - 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi - \kansuji\number\month 月 - \kansuji\number\day 日 + \number\numexpr\year-#1\relax\nobreak \fi + \fi 年 +} +\def\pltx@today@year{% + \ifnum\numexpr\year*10000+\month*100+\day<19890108 + 昭和\pltx@today@year@{1925}% + \else\ifnum\numexpr\year*10000+\month*100+\day<20190501 + 平成\pltx@today@year@{1988}% \else - \if西暦 - \number\year~年 - \number\month~月 - \number\day~日 - \else - 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi - \number\month~月 - \number\day~日 - \fi + 令和\pltx@today@year@{2018}% + \fi\fi} +\def\today{{% + \if西暦 + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi\kansuji\number\year + \else\number\year\nobreak\fi 年 + \else + \pltx@today@year + \fi + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\month 月 + \kansuji\number\day 日 + \else + \number\month\nobreak 月 + \number\day\nobreak 日 \fi}} \newcommand{\prepartname}{第} \newcommand{\postpartname}{部} diff --git a/Master/texmf-dist/tex/uplatex/base/ujbk10.clo b/Master/texmf-dist/tex/uplatex/base/ujbk10.clo index 7e1cb4a43b9..a0183517a84 100644 --- a/Master/texmf-dist/tex/uplatex/base/ujbk10.clo +++ b/Master/texmf-dist/tex/uplatex/base/ujbk10.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{ujbk10.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xpt{15}% diff --git a/Master/texmf-dist/tex/uplatex/base/ujbk11.clo b/Master/texmf-dist/tex/uplatex/base/ujbk11.clo index c0cf0306081..0c1e82bf19b 100644 --- a/Master/texmf-dist/tex/uplatex/base/ujbk11.clo +++ b/Master/texmf-dist/tex/uplatex/base/ujbk11.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{ujbk11.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xipt{15.5}% diff --git a/Master/texmf-dist/tex/uplatex/base/ujbk12.clo b/Master/texmf-dist/tex/uplatex/base/ujbk12.clo index d4b2c8bece4..bc657b2eedc 100644 --- a/Master/texmf-dist/tex/uplatex/base/ujbk12.clo +++ b/Master/texmf-dist/tex/uplatex/base/ujbk12.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{ujbk12.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xiipt{16.5}% diff --git a/Master/texmf-dist/tex/uplatex/base/ujbook.cls b/Master/texmf-dist/tex/uplatex/base/ujbook.cls index 54ccc887931..3410991dea6 100644 --- a/Master/texmf-dist/tex/uplatex/base/ujbook.cls +++ b/Master/texmf-dist/tex/uplatex/base/ujbook.cls @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{ujbook} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX class] \newcounter{@paper} \newif\if@landscape \@landscapefalse @@ -874,27 +874,36 @@ \def\西暦{\西暦true} \def\和暦{\西暦false} \newcount\heisei \heisei\year \advance\heisei-1988\relax -\def\today{{% - \iftdir - \if西暦 - \kansuji\number\year 年 - \kansuji\number\month 月 - \kansuji\number\day 日 +\def\pltx@today@year@#1{% + \ifnum\numexpr\year-#1=1 元\else + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\numexpr\year-#1\relax \else - 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi - \kansuji\number\month 月 - \kansuji\number\day 日 + \number\numexpr\year-#1\relax\nobreak \fi + \fi 年 +} +\def\pltx@today@year{% + \ifnum\numexpr\year*10000+\month*100+\day<19890108 + 昭和\pltx@today@year@{1925}% + \else\ifnum\numexpr\year*10000+\month*100+\day<20190501 + 平成\pltx@today@year@{1988}% \else - \if西暦 - \number\year~年 - \number\month~月 - \number\day~日 - \else - 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi - \number\month~月 - \number\day~日 - \fi + 令和\pltx@today@year@{2018}% + \fi\fi} +\def\today{{% + \if西暦 + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi\kansuji\number\year + \else\number\year\nobreak\fi 年 + \else + \pltx@today@year + \fi + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\month 月 + \kansuji\number\day 日 + \else + \number\month\nobreak 月 + \number\day\nobreak 日 \fi}} \newcommand{\prepartname}{第} \newcommand{\postpartname}{部} diff --git a/Master/texmf-dist/tex/uplatex/base/ujreport.cls b/Master/texmf-dist/tex/uplatex/base/ujreport.cls index c2241730e12..30535b6b7cd 100644 --- a/Master/texmf-dist/tex/uplatex/base/ujreport.cls +++ b/Master/texmf-dist/tex/uplatex/base/ujreport.cls @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{ujreport} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX class] \newcounter{@paper} \newif\if@landscape \@landscapefalse @@ -870,27 +870,36 @@ \def\西暦{\西暦true} \def\和暦{\西暦false} \newcount\heisei \heisei\year \advance\heisei-1988\relax -\def\today{{% - \iftdir - \if西暦 - \kansuji\number\year 年 - \kansuji\number\month 月 - \kansuji\number\day 日 +\def\pltx@today@year@#1{% + \ifnum\numexpr\year-#1=1 元\else + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\numexpr\year-#1\relax \else - 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi - \kansuji\number\month 月 - \kansuji\number\day 日 + \number\numexpr\year-#1\relax\nobreak \fi + \fi 年 +} +\def\pltx@today@year{% + \ifnum\numexpr\year*10000+\month*100+\day<19890108 + 昭和\pltx@today@year@{1925}% + \else\ifnum\numexpr\year*10000+\month*100+\day<20190501 + 平成\pltx@today@year@{1988}% \else - \if西暦 - \number\year~年 - \number\month~月 - \number\day~日 - \else - 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi - \number\month~月 - \number\day~日 - \fi + 令和\pltx@today@year@{2018}% + \fi\fi} +\def\today{{% + \if西暦 + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi\kansuji\number\year + \else\number\year\nobreak\fi 年 + \else + \pltx@today@year + \fi + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\month 月 + \kansuji\number\day 日 + \else + \number\month\nobreak 月 + \number\day\nobreak 日 \fi}} \newcommand{\prepartname}{第} \newcommand{\postpartname}{部} diff --git a/Master/texmf-dist/tex/uplatex/base/ujsize10.clo b/Master/texmf-dist/tex/uplatex/base/ujsize10.clo index a6acc4358ff..d17ffb46f3a 100644 --- a/Master/texmf-dist/tex/uplatex/base/ujsize10.clo +++ b/Master/texmf-dist/tex/uplatex/base/ujsize10.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{ujsize10.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xpt{15}% diff --git a/Master/texmf-dist/tex/uplatex/base/ujsize11.clo b/Master/texmf-dist/tex/uplatex/base/ujsize11.clo index 31fcc8e52b0..e4b3afdf409 100644 --- a/Master/texmf-dist/tex/uplatex/base/ujsize11.clo +++ b/Master/texmf-dist/tex/uplatex/base/ujsize11.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{ujsize11.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xipt{15.5}% diff --git a/Master/texmf-dist/tex/uplatex/base/ujsize12.clo b/Master/texmf-dist/tex/uplatex/base/ujsize12.clo index 9766dd3cd95..2e42c5263a6 100644 --- a/Master/texmf-dist/tex/uplatex/base/ujsize12.clo +++ b/Master/texmf-dist/tex/uplatex/base/ujsize12.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{ujsize12.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xiipt{16.5}% diff --git a/Master/texmf-dist/tex/uplatex/base/ukinsoku.tex b/Master/texmf-dist/tex/uplatex/base/ukinsoku.tex index d16eac1743c..d09870106c3 100644 --- a/Master/texmf-dist/tex/uplatex/base/ukinsoku.tex +++ b/Master/texmf-dist/tex/uplatex/base/ukinsoku.tex @@ -14,6 +14,12 @@ %% -------------------------------------------------------------- %% %% File: ukinsoku.dtx +\ifnum\ucs"3000="3000 \else + \errhelp{Please try to run (e)uptex with option + `-kanji-internal=uptex'.}% + \errmessage{This file should be read with + internal Kanji encoding Unicode}\@@end +\fi %% %% 行頭、行末禁則パラメータ %% diff --git a/Master/texmf-dist/tex/uplatex/base/utarticle.cls b/Master/texmf-dist/tex/uplatex/base/utarticle.cls index ff677b9e080..b438886efc4 100644 --- a/Master/texmf-dist/tex/uplatex/base/utarticle.cls +++ b/Master/texmf-dist/tex/uplatex/base/utarticle.cls @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{utarticle} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX class] \newcounter{@paper} \newif\if@landscape \@landscapefalse @@ -775,27 +775,36 @@ \def\西暦{\西暦true} \def\和暦{\西暦false} \newcount\heisei \heisei\year \advance\heisei-1988\relax -\def\today{{% - \iftdir - \if西暦 - \kansuji\number\year 年 - \kansuji\number\month 月 - \kansuji\number\day 日 +\def\pltx@today@year@#1{% + \ifnum\numexpr\year-#1=1 元\else + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\numexpr\year-#1\relax \else - 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi - \kansuji\number\month 月 - \kansuji\number\day 日 + \number\numexpr\year-#1\relax\nobreak \fi + \fi 年 +} +\def\pltx@today@year{% + \ifnum\numexpr\year*10000+\month*100+\day<19890108 + 昭和\pltx@today@year@{1925}% + \else\ifnum\numexpr\year*10000+\month*100+\day<20190501 + 平成\pltx@today@year@{1988}% \else - \if西暦 - \number\year~年 - \number\month~月 - \number\day~日 - \else - 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi - \number\month~月 - \number\day~日 - \fi + 令和\pltx@today@year@{2018}% + \fi\fi} +\def\today{{% + \if西暦 + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi\kansuji\number\year + \else\number\year\nobreak\fi 年 + \else + \pltx@today@year + \fi + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\month 月 + \kansuji\number\day 日 + \else + \number\month\nobreak 月 + \number\day\nobreak 日 \fi}} \newcommand{\prepartname}{第} \newcommand{\postpartname}{部} diff --git a/Master/texmf-dist/tex/uplatex/base/utbk10.clo b/Master/texmf-dist/tex/uplatex/base/utbk10.clo index 621a9583d19..0c6fed6d330 100644 --- a/Master/texmf-dist/tex/uplatex/base/utbk10.clo +++ b/Master/texmf-dist/tex/uplatex/base/utbk10.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{utbk10.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xpt{17}% diff --git a/Master/texmf-dist/tex/uplatex/base/utbk11.clo b/Master/texmf-dist/tex/uplatex/base/utbk11.clo index 25da7215a0b..4c8998f2627 100644 --- a/Master/texmf-dist/tex/uplatex/base/utbk11.clo +++ b/Master/texmf-dist/tex/uplatex/base/utbk11.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{utbk11.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xipt{17}% diff --git a/Master/texmf-dist/tex/uplatex/base/utbk12.clo b/Master/texmf-dist/tex/uplatex/base/utbk12.clo index 265e59c7dc3..12c26ed82f6 100644 --- a/Master/texmf-dist/tex/uplatex/base/utbk12.clo +++ b/Master/texmf-dist/tex/uplatex/base/utbk12.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{utbk12.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xiipt{18}% diff --git a/Master/texmf-dist/tex/uplatex/base/utbook.cls b/Master/texmf-dist/tex/uplatex/base/utbook.cls index 85a3dc8c961..ca20440b629 100644 --- a/Master/texmf-dist/tex/uplatex/base/utbook.cls +++ b/Master/texmf-dist/tex/uplatex/base/utbook.cls @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{utbook} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX class] \newcounter{@paper} \newif\if@landscape \@landscapefalse @@ -878,27 +878,36 @@ \def\西暦{\西暦true} \def\和暦{\西暦false} \newcount\heisei \heisei\year \advance\heisei-1988\relax -\def\today{{% - \iftdir - \if西暦 - \kansuji\number\year 年 - \kansuji\number\month 月 - \kansuji\number\day 日 +\def\pltx@today@year@#1{% + \ifnum\numexpr\year-#1=1 元\else + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\numexpr\year-#1\relax \else - 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi - \kansuji\number\month 月 - \kansuji\number\day 日 + \number\numexpr\year-#1\relax\nobreak \fi + \fi 年 +} +\def\pltx@today@year{% + \ifnum\numexpr\year*10000+\month*100+\day<19890108 + 昭和\pltx@today@year@{1925}% + \else\ifnum\numexpr\year*10000+\month*100+\day<20190501 + 平成\pltx@today@year@{1988}% \else - \if西暦 - \number\year~年 - \number\month~月 - \number\day~日 - \else - 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi - \number\month~月 - \number\day~日 - \fi + 令和\pltx@today@year@{2018}% + \fi\fi} +\def\today{{% + \if西暦 + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi\kansuji\number\year + \else\number\year\nobreak\fi 年 + \else + \pltx@today@year + \fi + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\month 月 + \kansuji\number\day 日 + \else + \number\month\nobreak 月 + \number\day\nobreak 日 \fi}} \newcommand{\prepartname}{第} \newcommand{\postpartname}{部} diff --git a/Master/texmf-dist/tex/uplatex/base/utreport.cls b/Master/texmf-dist/tex/uplatex/base/utreport.cls index 2f352e20d61..dc3d8e0ee73 100644 --- a/Master/texmf-dist/tex/uplatex/base/utreport.cls +++ b/Master/texmf-dist/tex/uplatex/base/utreport.cls @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{utreport} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX class] \newcounter{@paper} \newif\if@landscape \@landscapefalse @@ -874,27 +874,36 @@ \def\西暦{\西暦true} \def\和暦{\西暦false} \newcount\heisei \heisei\year \advance\heisei-1988\relax -\def\today{{% - \iftdir - \if西暦 - \kansuji\number\year 年 - \kansuji\number\month 月 - \kansuji\number\day 日 +\def\pltx@today@year@#1{% + \ifnum\numexpr\year-#1=1 元\else + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\numexpr\year-#1\relax \else - 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi - \kansuji\number\month 月 - \kansuji\number\day 日 + \number\numexpr\year-#1\relax\nobreak \fi + \fi 年 +} +\def\pltx@today@year{% + \ifnum\numexpr\year*10000+\month*100+\day<19890108 + 昭和\pltx@today@year@{1925}% + \else\ifnum\numexpr\year*10000+\month*100+\day<20190501 + 平成\pltx@today@year@{1988}% \else - \if西暦 - \number\year~年 - \number\month~月 - \number\day~日 - \else - 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi - \number\month~月 - \number\day~日 - \fi + 令和\pltx@today@year@{2018}% + \fi\fi} +\def\today{{% + \if西暦 + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi\kansuji\number\year + \else\number\year\nobreak\fi 年 + \else + \pltx@today@year + \fi + \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi + \kansuji\number\month 月 + \kansuji\number\day 日 + \else + \number\month\nobreak 月 + \number\day\nobreak 日 \fi}} \newcommand{\prepartname}{第} \newcommand{\postpartname}{部} diff --git a/Master/texmf-dist/tex/uplatex/base/utsize10.clo b/Master/texmf-dist/tex/uplatex/base/utsize10.clo index 67eca16e0fd..4cd15d2660e 100644 --- a/Master/texmf-dist/tex/uplatex/base/utsize10.clo +++ b/Master/texmf-dist/tex/uplatex/base/utsize10.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{utsize10.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xpt{17}% diff --git a/Master/texmf-dist/tex/uplatex/base/utsize11.clo b/Master/texmf-dist/tex/uplatex/base/utsize11.clo index 8349467d5a6..1d18b441113 100644 --- a/Master/texmf-dist/tex/uplatex/base/utsize11.clo +++ b/Master/texmf-dist/tex/uplatex/base/utsize11.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{utsize11.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xipt{17}% diff --git a/Master/texmf-dist/tex/uplatex/base/utsize12.clo b/Master/texmf-dist/tex/uplatex/base/utsize12.clo index 54ac09f4b55..cde180d92a3 100644 --- a/Master/texmf-dist/tex/uplatex/base/utsize12.clo +++ b/Master/texmf-dist/tex/uplatex/base/utsize12.clo @@ -8,7 +8,7 @@ %% %% Copyright (c) 2010 ASCII MEDIA WORKS %% Copyright (c) 2016 Takuji Tanaka -%% Copyright (c) 2016-2018 Japanese TeX Development Community +%% Copyright (c) 2016-2019 Japanese TeX Development Community %% %% This file is part of the upLaTeX2e system (community edition). %% -------------------------------------------------------------- @@ -16,7 +16,7 @@ %% File: ujclasses.dtx \NeedsTeXFormat{pLaTeX2e} \ProvidesFile{utsize12.clo} - [2018/10/25 v1.8a-u00 + [2019/04/02 v1.8b-u00 Standard upLaTeX file (size option)] \renewcommand{\normalsize}{% \@setfontsize\normalsize\@xiipt{18}% |