vendor/jsclasses/jis/jsreport.cls in review-4.2.0 vs vendor/jsclasses/jis/jsreport.cls in review-5.0.0
- old
+ new
@@ -2,29 +2,17 @@
%% This is file `jsreport.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
-%% jsclasses.dtx (with options: `report')
+%% jsclasses.dtx (with options: `class,report')
%%
-%% IMPORTANT NOTICE:
+%% Maintained on GitHub: https://github.com/texjporg/jsclasses
%%
-%% For the copyright see the source file.
-%%
-%% Any modified versions of this file must be renamed
-%% with new filenames distinct from jsreport.cls.
-%%
-%% For distribution of the original source see the terms
-%% for copying and modification in the file jsclasses.dtx.
-%%
-%% This generated file may be distributed as long as the
-%% original source files, as listed above, are part of the
-%% same distribution. (The sources need not necessarily be
-%% in the same archive or directory.)
\NeedsTeXFormat{pLaTeX2e}
\ProvidesClass{jsreport}
- [2020/02/02 jsclasses (okumura, texjporg)]
+ [2020/10/09 jsclasses (okumura, texjporg)]
\def\jsc@clsname{jsreport}
\newif\ifjsc@needsp@tch
\jsc@needsp@tchfalse
\newif\if@restonecol
\newif\if@titlepage
@@ -255,14 +243,15 @@
\advance \stockwidth 2in
\advance \stockheight 2in
\fi
\ifpapersize
\iftombow
- \AtBeginDvi{\special{papersize=\the\stockwidth,\the\stockheight}}
+ \edef\jsc@papersize@special{papersize=\the\stockwidth,\the\stockheight}
\else
- \AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}
+ \edef\jsc@papersize@special{papersize=\the\paperwidth,\the\paperheight}
\fi
+ \AtBeginDvi{\special{\jsc@papersize@special}}
\fi
\if@slide\def\n@baseline{13}\else\def\n@baseline{16}\fi
\newdimen\jsc@mpt
\newdimen\jsc@mmm
\def\inv@mag{1}
@@ -459,10 +448,14 @@
\DeclareFontShape{\jsc@JTn}{mc}{m}{sc}{<->ssub*mc/m/n}{}
\DeclareFontShape{\jsc@JTn}{gt}{m}{it}{<->ssub*gt/m/n}{}
\DeclareFontShape{\jsc@JTn}{gt}{m}{sl}{<->ssub*gt/m/n}{}
\DeclareFontShape{\jsc@JTn}{mc}{bx}{it}{<->ssub*gt/m/n}{}
\DeclareFontShape{\jsc@JTn}{mc}{bx}{sl}{<->ssub*gt/m/n}{}
+%% ad-hoc "relation font"
+\@ifl@t@r\fmtversion{2020/10/01}
+ {\jsc@needsp@tchfalse}{\jsc@needsp@tchtrue}
+\ifjsc@needsp@tch % --- for 2020-02-02 or older BEGIN
\ifx\@rmfamilyhook\@undefined % old
\DeclareRobustCommand\rmfamily
{\not@math@alphabet\rmfamily\mathrm
\romanfamily\rmdefault\kanjifamily\mcdefault\selectfont}
\DeclareRobustCommand\sffamily
@@ -488,10 +481,18 @@
\g@addto@macro\@sffamilyhook
{\prepare@family@series@update@kanji{gt}\gtdefault}
\g@addto@macro\@ttfamilyhook
{\prepare@family@series@update@kanji{gt}\gtdefault}
\fi
+\else % --- for 2020-02-02 or older END & for 2020-10-01 BEGIN
+\AddToHook{rmfamily}%
+ {\prepare@family@series@update@kanji{mc}\mcdefault}
+\AddToHook{sffamily}%
+ {\prepare@family@series@update@kanji{gt}\gtdefault}
+\AddToHook{ttfamily}%
+ {\prepare@family@series@update@kanji{gt}\gtdefault}
+\fi % --- for 2020-10-01 END
\ifx\DeclareFixJFMCJKTextFontCommand\@undefined
\DeclareRobustCommand\textmc[1]{%
\relax\ifmmode \expandafter\nfss@text \fi{\mcfamily #1}}
\DeclareRobustCommand\textgt[1]{%
\relax\ifmmode \expandafter\nfss@text \fi{\gtfamily #1}}
@@ -696,10 +697,11 @@
\xspcode`^^fc=3
\xspcode`^^fd=3
\xspcode`^^fe=3
\xspcode`^^ff=3
\def\@{\spacefactor3000{}}
+%% \@setfontsize with \parindent and \(x)kanjiskip settings
\def\@setfontsize#1#2#3{%
\ifx\protect\@typeset@protect
\let\@currsize#1%
\fi
\fontsize{#2}{#3}\selectfont
@@ -713,11 +715,12 @@
\kanjiskip=0zw plus .1zw minus .01zw
\ifdim\xkanjiskip>\z@
\if@slide \xkanjiskip=0.1em \else
\xkanjiskip=0.25em plus 0.15em minus 0.06em
\fi
- \fi}
+ \fi
+}
\def\jsc@setfontsize#1#2#3{%
\@setfontsize#1{#2\jsc@mpt}{#3\jsc@mpt}}
\emergencystretch 3zw
\newif\ifnarrowbaselines
\if@english
@@ -744,9 +747,10 @@
\abovedisplayskip 11\jsc@mpt \@plus3\jsc@mpt \@minus4\jsc@mpt
\abovedisplayshortskip \z@ \@plus3\jsc@mpt
\belowdisplayskip 9\jsc@mpt \@plus3\jsc@mpt \@minus4\jsc@mpt
\belowdisplayshortskip \belowdisplayskip
\let\@listi\@listI}
+%% initialize
\normalsize
\setbox0\hbox{\char\jis"3441}%
\setlength\Cht{\ht0}
\setlength\Cdp{\dp0}
\setlength\Cwd{\wd0}