From ff5fa22dcc2877285b993e4ba367f98ef6c10af9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 5 Oct 2020 20:51:16 +0000 Subject: jsclasses (5oct20) git-svn-id: svn://tug.org/texlive/trunk@56551 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/platex/jsclasses/kiyou.cls | 40 +++++++++++++----------- 1 file changed, 22 insertions(+), 18 deletions(-) (limited to 'Master/texmf-dist/tex/platex/jsclasses/kiyou.cls') diff --git a/Master/texmf-dist/tex/platex/jsclasses/kiyou.cls b/Master/texmf-dist/tex/platex/jsclasses/kiyou.cls index ccdca01dcda..d56aaab4a93 100644 --- a/Master/texmf-dist/tex/platex/jsclasses/kiyou.cls +++ b/Master/texmf-dist/tex/platex/jsclasses/kiyou.cls @@ -4,28 +4,16 @@ %% %% The original source files were: %% -%% jsclasses.dtx (with options: `kiyou') +%% jsclasses.dtx (with options: `class,kiyou') %% -%% 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 kiyou.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.) \ifx\epTeXinputencoding\undefined\else \epTeXinputencoding utf8 % ^^A added (2017-10-04) \fi \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{kiyou} - [2020/02/02 jsclasses (okumura, texjporg)] + [2020/10/05 jsclasses (okumura, texjporg)] \def\jsc@clsname{kiyou} \newif\ifjsc@needsp@tch \jsc@needsp@tchfalse @@ -255,10 +243,11 @@ \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 \def\n@baseline{14.897} \newdimen\jsc@mpt @@ -470,6 +459,10 @@ \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 @@ -499,6 +492,14 @@ \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}} @@ -707,6 +708,7 @@ \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% @@ -724,7 +726,8 @@ \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 @@ -755,6 +758,7 @@ \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} -- cgit v1.2.3