diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls | 47 |
1 files changed, 36 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls index 3227f3b19ee..090ff05019f 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e} \ProvidesClass{bxjsslide} - [2017/10/21 v1.7 BXJS document classes] + [2017/12/09 v1.7a BXJS document classes] %% このファイルは日本語文字を含みます. \def\bxjs@clsname{bxjsslide} \newif\ifjsc@needsp@tch @@ -546,6 +546,10 @@ \let\bxjs@kv@jaspacecmd@false\bxjs@jaspace@cmdfalse \define@key{bxjs}{jaspace-cmd}[true]{\bxjs@set@keyval{jaspacecmd}{#1}{}} \define@key{bxjs}{xkanjiskip-cmd}[true]{\bxjs@set@keyval{jaspacecmd}{#1}{}} +\newif\ifbxjs@fix@at@cmd \bxjs@fix@at@cmdtrue +\let\bxjs@kv@fixatcmd@true\bxjs@fix@at@cmdtrue +\let\bxjs@kv@fixatcmd@false\bxjs@fix@at@cmdfalse +\define@key{bxjs}{fix-at-cmd}[true]{\bxjs@set@keyval{fixatcmd}{#1}{}} \newif\ifbxjs@hyperref@enc \bxjs@hyperref@enctrue \let\bxjs@kv@hyperrefenc@true\bxjs@hyperref@enctrue \let\bxjs@kv@hyperrefenc@false\bxjs@hyperref@encfalse @@ -824,8 +828,13 @@ \newskip\jsc@smallskipamount \jsc@smallskipamount=3\jsc@mpt plus 1\jsc@mpt minus 1\jsc@mpt \chardef\bxjs@periodchar=`\. -\bxjs@protected\def\bxjs@SE{\spacefactor\sfcode\bxjs@periodchar} -\def\@{\bxjs@SE{}} +\bxjs@protected\def\bxjs@SE{% + \ifnum\spacefactor<\@m \spacefactor\@m + \else \spacefactor\sfcode\bxjs@periodchar + \fi} +\ifbxjs@fix@at@cmd + \def\@{\bxjs@SE{}} +\fi \def\bxjs@tmpa{\def\set@fontsize##1##2##3} \expandafter\bxjs@tmpa\expandafter{% \set@fontsize{#1}{#2}{#3}% @@ -2184,13 +2193,32 @@ \else \expandafter\@secondoftwo \fi} } \bxjs@decl@Seireki@cmds -\let\bxjs@unxp\@firstofone -\bxjs@test@engine\unexpanded{\let\bxjs@unxp\unexpanded} +\let\bxjs@unxp\@firstofone \let\bxjs@onxp\@firstofone +\bxjs@test@engine\unexpanded{\let\bxjs@unxp\unexpanded + \def\bxjs@onxp{\unexpanded\expandafter}} \if \if p\jsEngine T\else\if n\jsEngine T\else F\fi\fi T \def\bxjs@iai{\noexpand~} \else \def\bxjs@iai{} \fi -\newcount\heisei \heisei\year \advance\heisei-1988\relax +\newcount\bxjs@jayear +\let\bxjs@gengo\@empty \bxjs@jayear\year +\@tempcnta=\the\year\two@digits\month\two@digits\day\relax +\ifnum\@tempcnta<19700101 +\else\ifnum\@tempcnta<19890108 + \def\bxjs@gengo{昭和}\advance\bxjs@jayear-1925\relax + \let\heisei\bxjs@jayear +\else\ifnum\@tempcnta<20190501 + \def\bxjs@gengo{平成}\advance\bxjs@jayear-1988\relax + \let\heisei\bxjs@jayear +\else +\fi\fi\fi +\edef\jayear{% + \ifx\bxjs@gengo\@empty \the\bxjs@jayear\bxjs@iai + \else \bxjs@onxp{\bxjs@gengo}% + \ifnum\bxjs@jayear=\@ne \bxjs@unxp{元}% + \else \bxjs@iai\the\bxjs@jayear\bxjs@iai + \fi + \fi} \edef\bxjs@today{% \if@english \ifcase\month\or @@ -2198,15 +2226,12 @@ July\or August\or September\or October\or November\or December\fi \space\number\day, \number\year \else - \ifnum\heisei>\@ne - \expandafter\noexpand\expandafter\bxjs@if@use@seireki - \else \expandafter\@firstoftwo - \fi {% + \noexpand\bxjs@if@use@seireki{% \number\year\bxjs@iai\bxjs@unxp{年}% \bxjs@iai\number\month\bxjs@iai\bxjs@unxp{月}% \bxjs@iai\number\day\bxjs@iai\bxjs@unxp{日}% }{% - \bxjs@unxp{平成}\bxjs@iai\number\heisei\bxjs@iai\bxjs@unxp{年}% + \bxjs@onxp{\jayear}\bxjs@unxp{年}% \bxjs@iai\number\month\bxjs@iai\bxjs@unxp{月}% \bxjs@iai\number\day\bxjs@iai\bxjs@unxp{日}% }% |