summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/platex/base/jreport.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/platex/base/jreport.cls')
-rw-r--r--Master/texmf-dist/tex/platex/base/jreport.cls49
1 files changed, 29 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/platex/base/jreport.cls b/Master/texmf-dist/tex/platex/base/jreport.cls
index a9b4a02e2cf..70776897aa7 100644
--- a/Master/texmf-dist/tex/platex/base/jreport.cls
+++ b/Master/texmf-dist/tex/platex/base/jreport.cls
@@ -7,7 +7,7 @@
%% jclasses.dtx (with options: `report,yoko')
%%
%% Copyright (c) 2010 ASCII MEDIA WORKS
-%% Copyright (c) 2016-2018 Japanese TeX Development Community
+%% Copyright (c) 2016-2019 Japanese TeX Development Community
%%
%% This file is part of the pLaTeX2e system (community edition).
%% -------------------------------------------------------------
@@ -15,7 +15,7 @@
%% File: jclasses.dtx
\NeedsTeXFormat{pLaTeX2e}
\ProvidesClass{jreport}
- [2018/10/25 v1.8a
+ [2019/04/02 v1.8b
Standard pLaTeX class]
\newcounter{@paper}
\newif\if@landscape \@landscapefalse
@@ -869,27 +869,36 @@
\def\$B@>Nq(B{\$B@>Nq(Btrue}
\def\$BOBNq(B{\$B@>Nq(Bfalse}
\newcount\heisei \heisei\year \advance\heisei-1988\relax
-\def\today{{%
- \iftdir
- \if$B@>Nq(B
- \kansuji\number\year $BG/(B
- \kansuji\number\month $B7n(B
- \kansuji\number\day $BF|(B
+\def\pltx@today@year@#1{%
+ \ifnum\numexpr\year-#1=1 $B85(B\else
+ \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi
+ \kansuji\number\numexpr\year-#1\relax
\else
- $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\kansuji\number\heisei $BG/(B\fi
- \kansuji\number\month $B7n(B
- \kansuji\number\day $BF|(B
+ \number\numexpr\year-#1\relax\nobreak
\fi
+ \fi $BG/(B
+}
+\def\pltx@today@year{%
+ \ifnum\numexpr\year*10000+\month*100+\day<19890108
+ $B><OB(B\pltx@today@year@{1925}%
+ \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
+ $BJ?@.(B\pltx@today@year@{1988}%
\else
- \if$B@>Nq(B
- \number\year~$BG/(B
- \number\month~$B7n(B
- \number\day~$BF|(B
- \else
- $BJ?@.(B\ifnum\heisei=1 $B85G/(B\else\number\heisei~$BG/(B\fi
- \number\month~$B7n(B
- \number\day~$BF|(B
- \fi
+ $BNaOB(B\pltx@today@year@{2018}%
+ \fi\fi}
+\def\today{{%
+ \if$B@>Nq(B
+ \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi\kansuji\number\year
+ \else\number\year\nobreak\fi $BG/(B
+ \else
+ \pltx@today@year
+ \fi
+ \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi
+ \kansuji\number\month $B7n(B
+ \kansuji\number\day $BF|(B
+ \else
+ \number\month\nobreak $B7n(B
+ \number\day\nobreak $BF|(B
\fi}}
\newcommand{\prepartname}{$BBh(B}
\newcommand{\postpartname}{$BIt(B}