diff options
author | Karl Berry <karl@freefriends.org> | 2016-12-01 22:43:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-12-01 22:43:34 +0000 |
commit | aaba88fcc03c4182dbe29324e1c8207c2e245394 (patch) | |
tree | d9b5d2fd9f3c993adfe07d5c9461b282a9688880 /Master/texmf-dist | |
parent | e8c4b27b58307596f267f227da50ebaa443d7d42 (diff) |
jsclasses (1dec16)
git-svn-id: svn://tug.org/texlive/trunk@42616 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/platex/jsclasses/README.md | 13 | ||||
-rw-r--r-- | Master/texmf-dist/doc/platex/jsclasses/jsclasses.pdf | bin | 433005 -> 439565 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/platex/jsclasses/jsclasses.dtx | 178 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/jsclasses/jsarticle.cls | 57 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/jsclasses/jsbook.cls | 57 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/jsclasses/jspf.cls | 37 | ||||
-rw-r--r-- | Master/texmf-dist/tex/platex/jsclasses/kiyou.cls | 46 |
7 files changed, 275 insertions, 113 deletions
diff --git a/Master/texmf-dist/doc/platex/jsclasses/README.md b/Master/texmf-dist/doc/platex/jsclasses/README.md index fee6df2f708..9e2cd8dadae 100644 --- a/Master/texmf-dist/doc/platex/jsclasses/README.md +++ b/Master/texmf-dist/doc/platex/jsclasses/README.md @@ -10,14 +10,17 @@ so that it can handle Japanese. WWW: https://github.com/texjporg/jsclasses -We include the pre-generated cls/sty files in this package to ensure -proper encoding. The files have to be in ISO-2022-JP encoding to work -properly on Windows. These files can be generated in a Japanese locale -by running platex on the .dtx files. +In the above repository, we include the pre-generated cls/sty files to +ensure proper encoding. The files have to be in ISO-2022-JP encoding to +work properly on Windows. These files can be generated in a Japanese +locale by running platex on the .ins files, for example +~~~~ +platex -kanji=jis jsclasses.ins +~~~~ ## Release Date -2016-10-08 +2016-12-01 Haruhiko Okumura, Japanese TeX Development Community diff --git a/Master/texmf-dist/doc/platex/jsclasses/jsclasses.pdf b/Master/texmf-dist/doc/platex/jsclasses/jsclasses.pdf Binary files differindex 1cac40d4bb3..d7dd8642931 100644 --- a/Master/texmf-dist/doc/platex/jsclasses/jsclasses.pdf +++ b/Master/texmf-dist/doc/platex/jsclasses/jsclasses.pdf diff --git a/Master/texmf-dist/source/platex/jsclasses/jsclasses.dtx b/Master/texmf-dist/source/platex/jsclasses/jsclasses.dtx index af441d0b001..a307d630a9b 100644 --- a/Master/texmf-dist/source/platex/jsclasses/jsclasses.dtx +++ b/Master/texmf-dist/source/platex/jsclasses/jsclasses.dtx @@ -38,7 +38,7 @@ %<*driver> \ProvidesFile{jsclasses.dtx} %</driver> - [2016/10/08 okumura, texjporg] + [2016/12/01 okumura, texjporg] %<*driver> \documentclass{jsarticle} \usepackage{doc} @@ -288,6 +288,9 @@ % % $B%*%W%7%g%s(B \texttt{slide} $B$r?7@_$7$^$7$?!#(B % +% [2016-10-08] \texttt{slide} $B%*%W%7%g%s$O(B article $B0J30$G$O;H$$J*$K$J$i$J$+$C$?$N$G!$(B +% $B4JC1$N$?$a(B article $B$N$_$G;H$($k%*%W%7%g%s$H$7$^$7$?!#(B +% % \begin{macrocode} \newif\if@slide \@slidefalse @@ -309,9 +312,6 @@ % % [2016-07-24] $B%*%W%F%#%+%k%5%$%:$rD4@0$9$k$?$a$K(BNFSS$B$X%Q%C%A$rEv$F$k%*%W%7%g%s(B \texttt{nomag*} $B$r?7@_$7$^$7$?!#(B % -% [2016-10-08] \texttt{slide} $B%*%W%7%g%s$O(B article $B0J30$G$O;H$$J*$K$J$i$J$+$C$?$N$G!$(B -% $B4JC1$N$?$a(B article $B$N$_$G;H$($k%*%W%7%g%s$H$7$^$7$?!#(B -% % \begin{macrocode} \newcommand{\@ptsize}{0} \newif\ifjsc@mag\jsc@magtrue @@ -549,10 +549,13 @@ \jisfontfalse \newif\if@jsc@uplatex \@jsc@uplatexfalse +\newif\if@jsc@autodetect +\@jsc@autodetectfalse \DeclareOption{mingoth}{\mingothtrue} \DeclareOption{winjis}{\winjistrue} \DeclareOption{jis}{\jisfonttrue} \DeclareOption{uplatex}{\@jsc@uplatextrue\winjisfalse} +\DeclareOption{autodetect-engine}{\@jsc@autodetecttrue} \def\jsc@JYn{\if@jsc@uplatex JY2\else JY1\fi} \def\jsc@JTn{\if@jsc@uplatex JT2\else JT1\fi} \def\jsc@pfx@{\if@jsc@uplatex u\else \fi} @@ -630,14 +633,23 @@ \fi % \end{macrocode} % -% \paragraph{$B;HMQ%(%s%8%s$N8!::(B} +% \paragraph{$B;HMQ%(%s%8%s$N8!::!&<+F0H=Dj(B} % % $B%f!<%6$,(B |uplatex| $B%*%W%7%g%s$NM-L5$K$h$j;XDj$7$?%(%s%8%s$,!$<B:]$K(B % $B;H$o$l$F$$$k$b$N$H0lCW$7$F$$$k$+$r8!::$7!$0lCW$7$J$$>l9g$O%(%i!<(B % $B%a%C%;!<%8$rI=<($7$^$9!#(B % +% [2016-11-09] p\LaTeX / up\LaTeX $B$r<+F0H=JL$9$k%*%W%7%g%s(B |autodetect-engine| $B$r?7@_$7$^$7$?!#(B +% up\LaTeX $B$N>l9g$O!$%0%m!<%P%k%*%W%7%g%s$K(B |uplatex| $B$rDI2C$9$k$3$H$G!$(B +% $B<+F0H=Dj$K1~$8$F(B |otf| $B%Q%C%1!<%8$K$b(B |uplatex| $B%*%W%7%g%s$,EO$k$h$&$K$7$^$9!#(B +% % \begin{macrocode} \ifnum \ifx\ucs\@undefined\z@\else\ucs"3000 \fi ="3000 + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: upLaTeX} + \@jsc@uplatextrue + \g@addto@macro\@classoptionslist{,uplatex} + \fi \if@jsc@uplatex\else \ClassError\jsc@clsname {You are running upLaTeX.\MessageBreak @@ -646,6 +658,13 @@ {\@ehc} \@jsc@uplatextrue \fi +% \end{macrocode} +% +% [2016-11-11] p\LaTeX $B$N>l9g$O!$%*%W%7%g%s(B |uplatex| $B$,;XDj$5$l$F$$$l$PI,$:%(%i!<$r=P$7$^$9!#(B +% |autodetect-engine| $B$,M-8z$K$J$C$F$$$F$b%(%i!<$r=P$7$^$9$,!$$3$l$O(B |otf| $B%Q%C%1!<%8$K(B +% |uplatex| $B%*%W%7%g%s$,EO$C$F$7$^$&$N$rKI$0$?$a$G$9!#(B +% +% \begin{macrocode} \else \if@jsc@uplatex \ClassError\jsc@clsname @@ -655,6 +674,10 @@ {\@ehc} \@jsc@uplatexfalse \fi + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: pLaTeX} + \@jsc@uplatexfalse + \fi \fi % \end{macrocode} % @@ -886,6 +909,38 @@ \fi % \end{macrocode} % +% [2016-11-16] latex.ltx (ltspace.dtx)$B$GDj5A$5$l$F$$$k(B |\smallskip| $B$N!$(B +% $BC10L(B |pt| $B$r(B |\jsc@mpt| $B$KCV$-49$($?(B |\jsc@smallskip| $B$rDj5A$7$^$9!#(B +% $B$3$l$O(B |\maketitle| $B$GMQ$$$i$l$^$9!#(B +% |\jsc@medskip| $B$H(B |\jsc@bigskip| $B$OI,MW$J$$$N$G%3%a%s%H%"%&%H$7$F$$$^$9!#(B +% +% \begin{macro}{\jsc@smallskip} +% \begin{macro}{\jsc@medskip} +% \begin{macro}{\jsc@bigskip} +% \begin{macrocode} +\def\jsc@smallskip{\vspace\jsc@smallskipamount} +%\def\jsc@medskip{\vspace\jsc@medskipamount} +%\def\jsc@bigskip{\vspace\jsc@bigskipamount} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\jsc@smallskipamount} +% \begin{macro}{\jsc@medskipamount} +% \begin{macro}{\jsc@bigskipamount} +% \begin{macrocode} +\newskip\jsc@smallskipamount +\jsc@smallskipamount=3\jsc@mpt plus 1\jsc@mpt minus 1\jsc@mpt +%\newskip\jsc@medskipamount +%\jsc@medskipamount =6\jsc@mpt plus 2\jsc@mpt minus 2\jsc@mpt +%\newskip\jsc@bigskipamount +%\jsc@bigskipamoun =12\jsc@mpt plus 4\jsc@mpt minus 4\jsc@mpt +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% % [2016-07-11] $B?7$7$/DI2C$7$?(B|\stockwidth|$B!$(B|\stockheight|$B$b(B|\mag|$B$K$"$o$;$F(B % $B%9%1!<%k$7$^$9!#(B % @@ -2661,6 +2716,11 @@ % $BOBJ8$N$b$N$G$O(B |\Large| $B$K$J$C$F$$$^$7$?$,!$$3$3$G$O(B |\large| % $B$K$7$^$7$?!#(B % +% [2016-11-16] $B?7@_$5$l$?(B \texttt{nomag} $B$*$h$S(B \texttt{nomag*} $B%*%W%7%g%s(B +% $B$N>l9g$r%G%U%)%k%H!J(B\texttt{usemag} $BAjEv!K$K9g$o$;$k$?$a!$(B|\smallskip| $B$r(B +% |\jsc@smallskip| $B$KCV$-49$($^$7$?!#(B|\smallskip| $B$N$^$^$G$O(B +% \texttt{nomag(*)} $B$N>l9g$K%9%1!<%k$7$J$/$J$j!$%l%$%"%&%H$,JQ$o$C$F$7$^$$$^$9!#(B +% % \begin{macrocode} %<*article|book|kiyou> \if@titlepage @@ -2676,9 +2736,9 @@ \mbox{} \\[1zw] \large {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par - \smallskip + \jsc@smallskip \@title - \smallskip + \jsc@smallskip {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par \vfill {\small \@author}% @@ -3552,18 +3612,28 @@ % % $B8+=P$7$N8e$m$G2~9T$5$l$^$;$s!#(B % +% [2016-11-16] $B=>Mh$O(B |\paragraph| $B$N:G=i$K=P$k%^!<%/$r!V"#!W$K8GDj$7$F(B +% $B$$$^$7$?$,!$$3$N%^!<%/$rJQ992DG=$K$9$k$?$a(B |\jsParagraphMark| $B$H$$$&%^%/%m(B +% $B$K@Z$j=P$7$^$7$?!#$3$l$G!$$?$H$($P(B +%\begin{verbatim} +% \renewcommand{\jsParagraphMark}{$B!z(B} +%\end{verbatim} +% $B$H$9$l$P!V!z!W$KJQ99$G$-$^$9$7!$%^!<%/$r6u$K$9$k$3$H$bMF0W$G$9!#(B +% $B$J$*!$K?3X2q%/%i%9$G$O=>Mh$I$*$j%^!<%/$OIU$-$^$;$s!#(B +% % \begin{macrocode} +%<!jspf>\newcommand{\jsParagraphMark}{$B"#(B} \if@twocolumn \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {\z@}{\if@slide .4\Cvs \else -1zw\fi}% $B2~9T$;$:(B 1zw $B$N%"%-(B %<jspf> {\normalfont\normalsize\headfont}} -%<!jspf> {\normalfont\normalsize\headfont $B"#(B}} +%<!jspf> {\normalfont\normalsize\headfont\jsParagraphMark}} \else \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {0.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}% {\if@slide .5\Cvs \@plus.3\Cdp \else -1zw\fi}% $B2~9T$;$:(B 1zw $B$N%"%-(B %<jspf> {\normalfont\normalsize\headfont}} -%<!jspf> {\normalfont\normalsize\headfont $B"#(B}} +%<!jspf> {\normalfont\normalsize\headfont\jsParagraphMark}} \fi % \end{macrocode} % \end{macro} @@ -4971,17 +5041,17 @@ % $B$G0O$s$G$/$@$5$$!#(B % % \begin{macrocode} -% \def\@citex[#1]#2{% +% \def\@citex[#1]#2{\leavevmode % \let\@citea\@empty % \@cite{\@for\@citeb:=#2\do % {\@citea\def\@citea{$B!$(B\inhibitglue\penalty\@m\ }% -% \edef\@citeb{\expandafter\@firstofone\@citeb}% +% \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% % \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi % \@ifundefined{b@\@citeb}{\mbox{\normalfont\bfseries ?}% % \G@refundefinedtrue % \@latex@warning % {Citation `\@citeb' on page \thepage \space undefined}}% -% {\hbox{\csname b@\@citeb\endcsname}}}}{#1}} +% {\@cite@ofmt{\csname b@\@citeb\endcsname}}}}{#1}} % \def\@cite#1#2{\inhibitglue$B!N(B{#1\if@tempswa $B!$(B#2\fi}$B!O(B\inhibitglue} % \end{macrocode} % @@ -5203,6 +5273,13 @@ % % [2016-09-08] $B%3%_%e%K%F%#HG(B\pLaTeX $B$N%P%0=$@5$KDI?o$7$^$7$?!#(B % +% [2016-11-29] $B8E$$(B\pLaTeX $B$G;HMQ$5$l$?>l9g$r9MN8$7$F%3!<%I$r2~NI!#(B +% ^^A $B5SCmD>8e$K2~9T$r2DG=$K$9$k$?$a$K(B|\null|$B$rF~$l$k>l9g!$(B +% ^^A $BF1;~$K%Z%J%k%F%#$b9MN8$7$J$1$l$P8m$C$?2~9T$,5/$-$k2DG=@-$,$"$k!#(B +% ^^A $B$3$N$?$a!$(B|\ifhmode\null\fi|$B$O(B +% ^^A |\ifx\pltx@foot@penalty\@undefined\else ... \fi| +% ^^A $B>r7o$NFbB&$KCV$$$F$*$/$N$,0BA4!#(B +% % \begin{macrocode} \long\def\@footnotetext{% \insert\footins\bgroup @@ -5223,8 +5300,8 @@ \def\f@@t{\bgroup\aftergroup\@foot\let\next} \def\f@t#1{#1\@foot} \def\@foot{\@finalstrut\strutbox\color@endgroup\egroup - \ifhmode\null\fi \ifx\pltx@foot@penalty\@undefined\else + \ifhmode\null\fi \ifnum\pltx@foot@penalty=\z@\else \penalty\pltx@foot@penalty \pltx@foot@penalty\z@ @@ -5278,6 +5355,12 @@ % % $BCJMnF,$N$+$.$+$C$3$J$I$r8+$+$1(B1$B;zH>2<$2$+$iA43Q(B1$B;z2<$2$KD>$7$^$9!#(B % +% [2016-07-18] |\inhibitglue| $B$NH/9TBP>]$r(B |\inhibitxspcode| $B$,(B2$B$K(B +% $B@_Dj$5$l$F$$$k$b$N$9$Y$F$K3HBg$7$^$7$?!#(B +% +% [2016-12-01] $B$9$0>e$NJQ99$G(B |\@tempa| $B$r;H$C$F$$$?$N$,$h$/$J$+$C$?(B +% $B$N$G!$%W%l%U%#%C%/%9$rIU$1$F(B |\jsc@tempa| $B$K$7$^$7$?(B(forum:2085)$B!#(B +% % \begin{macrocode} \def\@inhibitglue{% \futurelet\@let@token\@@inhibitglue} @@ -5300,8 +5383,8 @@ \def\@@inhibitglue{% \expandafter\expandafter\expandafter\jsc@inhibitglue\expandafter\meaning\expandafter\@let@token\KANJI@CHARACTER\relax\jsc@end} \expandafter\def\expandafter\jsc@inhibitglue\expandafter#\expandafter1\KANJI@CHARACTER#2#3\jsc@end{% - \def\@tempa{#1}% - \ifx\@tempa\@empty + \def\jsc@tempa{#1}% + \ifx\jsc@tempa\@empty \ifnum\the\inhibitxspcode`#2=2\relax \inhibitglue \fi @@ -5315,11 +5398,14 @@ % % $B$^$:!$4D6-$ND>8e$NCJMn$G$9!#(B % +% [2016-11-19] ltlists.dtx 2015/05/10 v1.0t$B$NJQ99$KDI?o$7$F(B |\clubpenalty| $B$N(B +% $B%j%;%C%H$rDI2C$7$^$7$?!#(B +% % \begin{macrocode} \def\@doendpe{% \@endpetrue \def\par{% - \@restorepar\everypar{\everyparhook}\par\@endpefalse}% + \@restorepar\clubpenalty\@clubpenalty\everypar{\everyparhook}\par\@endpefalse}% \everypar{{\setbox\z@\lastbox}\everypar{\everyparhook}\@endpefalse\everyparhook}} % \end{macrocode} % @@ -5476,19 +5562,22 @@ % $B$J$*!$(BAMS$B4X78$N%Q%C%1!<%8$rFI$_9~$`:]$K(B psamsfonts $B%*%W%7%g%s$r(B % $BM?$($F$b2sHr$G$-$^$9!J(BThanks: $B$7$C$]0&9%2H$5$s!K!#(B % +% [2016-11-19] $BK\2H$N(B ltclass.dtx 2004/01/28 v1.1g $B$G=$@5$5$l$F$$$k$N$G(B +% $B%3%a%s%H%"%&%H$7$^$7$?!#(B +% % \begin{macrocode} -\let\ltx@ifnextchar\@ifnextchar -\def\ProvidesFile#1{% - \begingroup - \catcode`\ 10 % - \ifnum \endlinechar<256 % - \ifnum \endlinechar>\m@ne - \catcode\endlinechar 10 % - \fi - \fi - \@makeother\/% - \@makeother\&% - \ltx@ifnextchar[{\@providesfile{#1}}{\@providesfile{#1}[]}} +%\let\ltx@ifnextchar\@ifnextchar +%\def\ProvidesFile#1{% +% \begingroup +% \catcode`\ 10 % +% \ifnum \endlinechar<256 % +% \ifnum \endlinechar>\m@ne +% \catcode\endlinechar 10 % +% \fi +% \fi +% \@makeother\/% +% \@makeother\&% +% \ltx@ifnextchar[{\@providesfile{#1}}{\@providesfile{#1}[]}} % \end{macrocode} % \end{macro} % \end{macro} @@ -5628,6 +5717,39 @@ \fi % \end{macrocode} % +% +% \section{$B<B83E*%3!<%I(B} +% +% [2016-11-29] $B%3%_%e%K%F%#HG(Bp\LaTeX $B$G?7@_$5$l$?%F%9%HMQ%Q%C%1!<%8(B +% $B!J(B\texttt{exppl2e}$B%Q%C%1!<%8!K$,J8=q%/%i%9$h$j@h$KFI$_9~$^$l$F$$$?(B +% $B>l9g$O!$(Bjsclasses$B$b%F%9%HHG$H$7$FF0:n$7$^$9!#$3$N=hCV$O(Bjsarticle$B$H(B +% jsbook$B$K$N$_9T$$!$(Bjspf$B$H(Bkiyou$B$O=|30$7$F$*$-$^$9!#(Bexppl2e$B%Q%C%1!<%8(B +% $B$,FI$_$3$^$l$F$$$J$$>l9g$ODL>oHG$H$7$FF0:n$7$^$9$N$G!$$3$3$G=*N;$7$^$9!#(B +% +% \begin{macrocode} +%<*article|book> +\@ifpackageloaded{exppl2e}{\jsc@needsp@tchtrue}{\jsc@needsp@tchfalse} +\ifjsc@needsp@tch\else + \expandafter\endinput +\fi +% \end{macrocode} +% +% $B0J2<$O<B83E*%3!<%I$G$9!#6qBNE*$K$O!$(B2016/11/29$B$N(B\texttt{exppl2e}$B%Q%C%1!<%8(B +% $B$G@bL@$5$l$F$$$k(B|\@gnewline|$B$N%Q%C%A$rF~$l$F$"$j$^$9!#(B +% +% \begin{macro}{\@gnewline} +% \begin{macrocode} +\def\@gnewline #1{% + \ifvmode + \@nolnerr + \else + \unskip \reserved@e {\reserved@f#1}\nobreak \hfil \break \hskip \z@ + \ignorespaces + \fi} +%</article|book> +% \end{macrocode} +% \end{macro} +% % $B0J>e$G$9!#(B % % \Finale diff --git a/Master/texmf-dist/tex/platex/jsclasses/jsarticle.cls b/Master/texmf-dist/tex/platex/jsclasses/jsarticle.cls index 5eb2e2829ac..56ec58297d0 100644 --- a/Master/texmf-dist/tex/platex/jsclasses/jsarticle.cls +++ b/Master/texmf-dist/tex/platex/jsclasses/jsarticle.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{jsarticle} - [2016/10/08 okumura, texjporg] + [2016/12/01 okumura, texjporg] \def\jsc@clsname{jsarticle} \newif\ifjsc@needsp@tch \jsc@needsp@tchfalse @@ -189,10 +189,13 @@ \jisfontfalse \newif\if@jsc@uplatex \@jsc@uplatexfalse +\newif\if@jsc@autodetect +\@jsc@autodetectfalse \DeclareOption{mingoth}{\mingothtrue} \DeclareOption{winjis}{\winjistrue} \DeclareOption{jis}{\jisfonttrue} \DeclareOption{uplatex}{\@jsc@uplatextrue\winjisfalse} +\DeclareOption{autodetect-engine}{\@jsc@autodetecttrue} \def\jsc@JYn{\if@jsc@uplatex JY2\else JY1\fi} \def\jsc@JTn{\if@jsc@uplatex JT2\else JT1\fi} \def\jsc@pfx@{\if@jsc@uplatex u\else \fi} @@ -216,6 +219,11 @@ \setlength\paperwidth {\@tempdima} \fi \ifnum \ifx\ucs\@undefined\z@\else\ucs"3000 \fi ="3000 + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: upLaTeX} + \@jsc@uplatextrue + \g@addto@macro\@classoptionslist{,uplatex} + \fi \if@jsc@uplatex\else \ClassError\jsc@clsname {You are running upLaTeX.\MessageBreak @@ -233,6 +241,10 @@ {\@ehc} \@jsc@uplatexfalse \fi + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: pLaTeX} + \@jsc@uplatexfalse + \fi \fi \newdimen\stockwidth \newdimen\stockheight \setlength{\stockwidth}{\paperwidth} @@ -394,6 +406,9 @@ \empty@sfcnt} \DeclareErrorFont{OT1}{cmr}{m}{n}{10} \fi +\def\jsc@smallskip{\vspace\jsc@smallskipamount} +\newskip\jsc@smallskipamount +\jsc@smallskipamount=3\jsc@mpt plus 1\jsc@mpt minus 1\jsc@mpt \setlength\paperwidth{\inv@mag\paperwidth}% \setlength\paperheight{\inv@mag\paperheight}% \setlength\stockwidth{\inv@mag\stockwidth}% @@ -963,9 +978,9 @@ \mbox{} \\[1zw] \large {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par - \smallskip + \jsc@smallskip \@title - \smallskip + \jsc@smallskip {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par \vfill {\small \@author}% @@ -1238,15 +1253,16 @@ {\if@slide .5\Cvs \@plus.3\Cdp \else \z@ \fi}% {\normalfont\normalsize\headfont}} \fi +\newcommand{\jsParagraphMark}{$B"#(B} \if@twocolumn \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {\z@}{\if@slide .4\Cvs \else -1zw\fi}% $B2~9T$;$:(B 1zw $B$N%"%-(B - {\normalfont\normalsize\headfont $B"#(B}} + {\normalfont\normalsize\headfont\jsParagraphMark}} \else \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {0.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}% {\if@slide .5\Cvs \@plus.3\Cdp \else -1zw\fi}% $B2~9T$;$:(B 1zw $B$N%"%-(B - {\normalfont\normalsize\headfont $B"#(B}} + {\normalfont\normalsize\headfont\jsParagraphMark}} \fi \if@twocolumn \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}% @@ -1666,8 +1682,8 @@ \def\f@@t{\bgroup\aftergroup\@foot\let\next} \def\f@t#1{#1\@foot} \def\@foot{\@finalstrut\strutbox\color@endgroup\egroup - \ifhmode\null\fi \ifx\pltx@foot@penalty\@undefined\else + \ifhmode\null\fi \ifnum\pltx@foot@penalty=\z@\else \penalty\pltx@foot@penalty \pltx@foot@penalty\z@ @@ -1699,8 +1715,8 @@ \def\@@inhibitglue{% \expandafter\expandafter\expandafter\jsc@inhibitglue\expandafter\meaning\expandafter\@let@token\KANJI@CHARACTER\relax\jsc@end} \expandafter\def\expandafter\jsc@inhibitglue\expandafter#\expandafter1\KANJI@CHARACTER#2#3\jsc@end{% - \def\@tempa{#1}% - \ifx\@tempa\@empty + \def\jsc@tempa{#1}% + \ifx\jsc@tempa\@empty \ifnum\the\inhibitxspcode`#2=2\relax \inhibitglue \fi @@ -1710,7 +1726,7 @@ \def\@doendpe{% \@endpetrue \def\par{% - \@restorepar\everypar{\everyparhook}\par\@endpefalse}% + \@restorepar\clubpenalty\@clubpenalty\everypar{\everyparhook}\par\@endpefalse}% \everypar{{\setbox\z@\lastbox}\everypar{\everyparhook}\@endpefalse\everyparhook}} \def\@item[#1]{% \if@noparitem @@ -1808,18 +1824,6 @@ the installation}% } \fi -\let\ltx@ifnextchar\@ifnextchar -\def\ProvidesFile#1{% - \begingroup - \catcode`\ 10 % - \ifnum \endlinechar<256 % - \ifnum \endlinechar>\m@ne - \catcode\endlinechar 10 % - \fi - \fi - \@makeother\/% - \@makeother\&% - \ltx@ifnextchar[{\@providesfile{#1}}{\@providesfile{#1}[]}} \newcommand{\prepartname}{\if@english Part~\else $BBh(B\fi} \newcommand{\postpartname}{\if@english\else $BIt(B\fi} \newcommand{\presectionname}{}% $BBh(B @@ -1872,6 +1876,17 @@ \raggedright \xkanjiskip=0.1em\relax \fi +\@ifpackageloaded{exppl2e}{\jsc@needsp@tchtrue}{\jsc@needsp@tchfalse} +\ifjsc@needsp@tch\else + \expandafter\endinput +\fi +\def\@gnewline #1{% + \ifvmode + \@nolnerr + \else + \unskip \reserved@e {\reserved@f#1}\nobreak \hfil \break \hskip \z@ + \ignorespaces + \fi} \endinput %% %% End of file `jsarticle.cls'. diff --git a/Master/texmf-dist/tex/platex/jsclasses/jsbook.cls b/Master/texmf-dist/tex/platex/jsclasses/jsbook.cls index 02b7cd6796b..51f49774990 100644 --- a/Master/texmf-dist/tex/platex/jsclasses/jsbook.cls +++ b/Master/texmf-dist/tex/platex/jsclasses/jsbook.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{jsbook} - [2016/10/08 okumura, texjporg] + [2016/12/01 okumura, texjporg] \def\jsc@clsname{jsbook} \newif\ifjsc@needsp@tch \jsc@needsp@tchfalse @@ -189,10 +189,13 @@ \jisfontfalse \newif\if@jsc@uplatex \@jsc@uplatexfalse +\newif\if@jsc@autodetect +\@jsc@autodetectfalse \DeclareOption{mingoth}{\mingothtrue} \DeclareOption{winjis}{\winjistrue} \DeclareOption{jis}{\jisfonttrue} \DeclareOption{uplatex}{\@jsc@uplatextrue\winjisfalse} +\DeclareOption{autodetect-engine}{\@jsc@autodetecttrue} \def\jsc@JYn{\if@jsc@uplatex JY2\else JY1\fi} \def\jsc@JTn{\if@jsc@uplatex JT2\else JT1\fi} \def\jsc@pfx@{\if@jsc@uplatex u\else \fi} @@ -219,6 +222,11 @@ \setlength\paperwidth {\@tempdima} \fi \ifnum \ifx\ucs\@undefined\z@\else\ucs"3000 \fi ="3000 + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: upLaTeX} + \@jsc@uplatextrue + \g@addto@macro\@classoptionslist{,uplatex} + \fi \if@jsc@uplatex\else \ClassError\jsc@clsname {You are running upLaTeX.\MessageBreak @@ -236,6 +244,10 @@ {\@ehc} \@jsc@uplatexfalse \fi + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: pLaTeX} + \@jsc@uplatexfalse + \fi \fi \newdimen\stockwidth \newdimen\stockheight \setlength{\stockwidth}{\paperwidth} @@ -397,6 +409,9 @@ \empty@sfcnt} \DeclareErrorFont{OT1}{cmr}{m}{n}{10} \fi +\def\jsc@smallskip{\vspace\jsc@smallskipamount} +\newskip\jsc@smallskipamount +\jsc@smallskipamount=3\jsc@mpt plus 1\jsc@mpt minus 1\jsc@mpt \setlength\paperwidth{\inv@mag\paperwidth}% \setlength\paperheight{\inv@mag\paperheight}% \setlength\stockwidth{\inv@mag\stockwidth}% @@ -969,9 +984,9 @@ \mbox{} \\[1zw] \large {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par - \smallskip + \jsc@smallskip \@title - \smallskip + \jsc@smallskip {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par \vfill {\small \@author}% @@ -1335,15 +1350,16 @@ {\if@slide .5\Cvs \@plus.3\Cdp \else \z@ \fi}% {\normalfont\normalsize\headfont}} \fi +\newcommand{\jsParagraphMark}{$B"#(B} \if@twocolumn \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {\z@}{\if@slide .4\Cvs \else -1zw\fi}% $B2~9T$;$:(B 1zw $B$N%"%-(B - {\normalfont\normalsize\headfont $B"#(B}} + {\normalfont\normalsize\headfont\jsParagraphMark}} \else \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {0.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}% {\if@slide .5\Cvs \@plus.3\Cdp \else -1zw\fi}% $B2~9T$;$:(B 1zw $B$N%"%-(B - {\normalfont\normalsize\headfont $B"#(B}} + {\normalfont\normalsize\headfont\jsParagraphMark}} \fi \if@twocolumn \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}% @@ -1746,8 +1762,8 @@ \def\f@@t{\bgroup\aftergroup\@foot\let\next} \def\f@t#1{#1\@foot} \def\@foot{\@finalstrut\strutbox\color@endgroup\egroup - \ifhmode\null\fi \ifx\pltx@foot@penalty\@undefined\else + \ifhmode\null\fi \ifnum\pltx@foot@penalty=\z@\else \penalty\pltx@foot@penalty \pltx@foot@penalty\z@ @@ -1779,8 +1795,8 @@ \def\@@inhibitglue{% \expandafter\expandafter\expandafter\jsc@inhibitglue\expandafter\meaning\expandafter\@let@token\KANJI@CHARACTER\relax\jsc@end} \expandafter\def\expandafter\jsc@inhibitglue\expandafter#\expandafter1\KANJI@CHARACTER#2#3\jsc@end{% - \def\@tempa{#1}% - \ifx\@tempa\@empty + \def\jsc@tempa{#1}% + \ifx\jsc@tempa\@empty \ifnum\the\inhibitxspcode`#2=2\relax \inhibitglue \fi @@ -1790,7 +1806,7 @@ \def\@doendpe{% \@endpetrue \def\par{% - \@restorepar\everypar{\everyparhook}\par\@endpefalse}% + \@restorepar\clubpenalty\@clubpenalty\everypar{\everyparhook}\par\@endpefalse}% \everypar{{\setbox\z@\lastbox}\everypar{\everyparhook}\@endpefalse\everyparhook}} \def\@item[#1]{% \if@noparitem @@ -1888,18 +1904,6 @@ the installation}% } \fi -\let\ltx@ifnextchar\@ifnextchar -\def\ProvidesFile#1{% - \begingroup - \catcode`\ 10 % - \ifnum \endlinechar<256 % - \ifnum \endlinechar>\m@ne - \catcode\endlinechar 10 % - \fi - \fi - \@makeother\/% - \@makeother\&% - \ltx@ifnextchar[{\@providesfile{#1}}{\@providesfile{#1}[]}} \newcommand{\prepartname}{\if@english Part~\else $BBh(B\fi} \newcommand{\postpartname}{\if@english\else $BIt(B\fi} \newcommand{\prechaptername}{\if@english Chapter~\else $BBh(B\fi} @@ -1953,6 +1957,17 @@ \raggedright \xkanjiskip=0.1em\relax \fi +\@ifpackageloaded{exppl2e}{\jsc@needsp@tchtrue}{\jsc@needsp@tchfalse} +\ifjsc@needsp@tch\else + \expandafter\endinput +\fi +\def\@gnewline #1{% + \ifvmode + \@nolnerr + \else + \unskip \reserved@e {\reserved@f#1}\nobreak \hfil \break \hskip \z@ + \ignorespaces + \fi} \endinput %% %% End of file `jsbook.cls'. diff --git a/Master/texmf-dist/tex/platex/jsclasses/jspf.cls b/Master/texmf-dist/tex/platex/jsclasses/jspf.cls index 0373546d5da..84786da1cbe 100644 --- a/Master/texmf-dist/tex/platex/jsclasses/jspf.cls +++ b/Master/texmf-dist/tex/platex/jsclasses/jspf.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{jspf} - [2016/10/08 okumura, texjporg] + [2016/12/01 okumura, texjporg] \def\jsc@clsname{jspf} \newif\ifjsc@needsp@tch \jsc@needsp@tchfalse @@ -185,10 +185,13 @@ \jisfontfalse \newif\if@jsc@uplatex \@jsc@uplatexfalse +\newif\if@jsc@autodetect +\@jsc@autodetectfalse \DeclareOption{mingoth}{\mingothtrue} \DeclareOption{winjis}{\winjistrue} \DeclareOption{jis}{\jisfonttrue} \DeclareOption{uplatex}{\@jsc@uplatextrue\winjisfalse} +\DeclareOption{autodetect-engine}{\@jsc@autodetecttrue} \def\jsc@JYn{\if@jsc@uplatex JY2\else JY1\fi} \def\jsc@JTn{\if@jsc@uplatex JT2\else JT1\fi} \def\jsc@pfx@{\if@jsc@uplatex u\else \fi} @@ -212,6 +215,11 @@ \setlength\paperwidth {\@tempdima} \fi \ifnum \ifx\ucs\@undefined\z@\else\ucs"3000 \fi ="3000 + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: upLaTeX} + \@jsc@uplatextrue + \g@addto@macro\@classoptionslist{,uplatex} + \fi \if@jsc@uplatex\else \ClassError\jsc@clsname {You are running upLaTeX.\MessageBreak @@ -229,6 +237,10 @@ {\@ehc} \@jsc@uplatexfalse \fi + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: pLaTeX} + \@jsc@uplatexfalse + \fi \fi \newdimen\stockwidth \newdimen\stockheight \setlength{\stockwidth}{\paperwidth} @@ -390,6 +402,9 @@ \empty@sfcnt} \DeclareErrorFont{OT1}{cmr}{m}{n}{10} \fi +\def\jsc@smallskip{\vspace\jsc@smallskipamount} +\newskip\jsc@smallskipamount +\jsc@smallskipamount=3\jsc@mpt plus 1\jsc@mpt minus 1\jsc@mpt \setlength\paperwidth{\inv@mag\paperwidth}% \setlength\paperheight{\inv@mag\paperheight}% \setlength\stockwidth{\inv@mag\stockwidth}% @@ -1543,8 +1558,8 @@ \def\f@@t{\bgroup\aftergroup\@foot\let\next} \def\f@t#1{#1\@foot} \def\@foot{\@finalstrut\strutbox\color@endgroup\egroup - \ifhmode\null\fi \ifx\pltx@foot@penalty\@undefined\else + \ifhmode\null\fi \ifnum\pltx@foot@penalty=\z@\else \penalty\pltx@foot@penalty \pltx@foot@penalty\z@ @@ -1576,8 +1591,8 @@ \def\@@inhibitglue{% \expandafter\expandafter\expandafter\jsc@inhibitglue\expandafter\meaning\expandafter\@let@token\KANJI@CHARACTER\relax\jsc@end} \expandafter\def\expandafter\jsc@inhibitglue\expandafter#\expandafter1\KANJI@CHARACTER#2#3\jsc@end{% - \def\@tempa{#1}% - \ifx\@tempa\@empty + \def\jsc@tempa{#1}% + \ifx\jsc@tempa\@empty \ifnum\the\inhibitxspcode`#2=2\relax \inhibitglue \fi @@ -1587,7 +1602,7 @@ \def\@doendpe{% \@endpetrue \def\par{% - \@restorepar\everypar{\everyparhook}\par\@endpefalse}% + \@restorepar\clubpenalty\@clubpenalty\everypar{\everyparhook}\par\@endpefalse}% \everypar{{\setbox\z@\lastbox}\everypar{\everyparhook}\@endpefalse\everyparhook}} \def\@item[#1]{% \if@noparitem @@ -1685,18 +1700,6 @@ the installation}% } \fi -\let\ltx@ifnextchar\@ifnextchar -\def\ProvidesFile#1{% - \begingroup - \catcode`\ 10 % - \ifnum \endlinechar<256 % - \ifnum \endlinechar>\m@ne - \catcode\endlinechar 10 % - \fi - \fi - \@makeother\/% - \@makeother\&% - \ltx@ifnextchar[{\@providesfile{#1}}{\@providesfile{#1}[]}} \newcommand{\prepartname}{\if@english Part~\else $BBh(B\fi} \newcommand{\postpartname}{\if@english\else $BIt(B\fi} \newcommand{\presectionname}{}% $BBh(B diff --git a/Master/texmf-dist/tex/platex/jsclasses/kiyou.cls b/Master/texmf-dist/tex/platex/jsclasses/kiyou.cls index ba4c2492d8c..eb88d1c12cd 100644 --- a/Master/texmf-dist/tex/platex/jsclasses/kiyou.cls +++ b/Master/texmf-dist/tex/platex/jsclasses/kiyou.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{pLaTeX2e} \ProvidesClass{kiyou} - [2016/10/08 okumura, texjporg] + [2016/12/01 okumura, texjporg] \def\jsc@clsname{kiyou} \newif\ifjsc@needsp@tch \jsc@needsp@tchfalse @@ -185,10 +185,13 @@ \jisfontfalse \newif\if@jsc@uplatex \@jsc@uplatexfalse +\newif\if@jsc@autodetect +\@jsc@autodetectfalse \DeclareOption{mingoth}{\mingothtrue} \DeclareOption{winjis}{\winjistrue} \DeclareOption{jis}{\jisfonttrue} \DeclareOption{uplatex}{\@jsc@uplatextrue\winjisfalse} +\DeclareOption{autodetect-engine}{\@jsc@autodetecttrue} \def\jsc@JYn{\if@jsc@uplatex JY2\else JY1\fi} \def\jsc@JTn{\if@jsc@uplatex JT2\else JT1\fi} \def\jsc@pfx@{\if@jsc@uplatex u\else \fi} @@ -212,6 +215,11 @@ \setlength\paperwidth {\@tempdima} \fi \ifnum \ifx\ucs\@undefined\z@\else\ucs"3000 \fi ="3000 + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: upLaTeX} + \@jsc@uplatextrue + \g@addto@macro\@classoptionslist{,uplatex} + \fi \if@jsc@uplatex\else \ClassError\jsc@clsname {You are running upLaTeX.\MessageBreak @@ -229,6 +237,10 @@ {\@ehc} \@jsc@uplatexfalse \fi + \if@jsc@autodetect + \ClassInfo\jsc@clsname{Autodetected engine: pLaTeX} + \@jsc@uplatexfalse + \fi \fi \newdimen\stockwidth \newdimen\stockheight \setlength{\stockwidth}{\paperwidth} @@ -401,6 +413,9 @@ \empty@sfcnt} \DeclareErrorFont{OT1}{cmr}{m}{n}{10} \fi +\def\jsc@smallskip{\vspace\jsc@smallskipamount} +\newskip\jsc@smallskipamount +\jsc@smallskipamount=3\jsc@mpt plus 1\jsc@mpt minus 1\jsc@mpt \setlength\paperwidth{\inv@mag\paperwidth}% \setlength\paperheight{\inv@mag\paperheight}% \setlength\stockwidth{\inv@mag\stockwidth}% @@ -952,9 +967,9 @@ \mbox{} \\[1zw] \large {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par - \smallskip + \jsc@smallskip \@title - \smallskip + \jsc@smallskip {\maybeblue\hrule height0\jsc@mpt depth2\jsc@mpt\relax}\par \vfill {\small \@author}% @@ -1227,15 +1242,16 @@ {\if@slide .5\Cvs \@plus.3\Cdp \else \z@ \fi}% {\normalfont\normalsize\headfont}} \fi +\newcommand{\jsParagraphMark}{$B"#(B} \if@twocolumn \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {\z@}{\if@slide .4\Cvs \else -1zw\fi}% $B2~9T$;$:(B 1zw $B$N%"%-(B - {\normalfont\normalsize\headfont $B"#(B}} + {\normalfont\normalsize\headfont\jsParagraphMark}} \else \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {0.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}% {\if@slide .5\Cvs \@plus.3\Cdp \else -1zw\fi}% $B2~9T$;$:(B 1zw $B$N%"%-(B - {\normalfont\normalsize\headfont $B"#(B}} + {\normalfont\normalsize\headfont\jsParagraphMark}} \fi \if@twocolumn \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}% @@ -1658,8 +1674,8 @@ \def\f@@t{\bgroup\aftergroup\@foot\let\next} \def\f@t#1{#1\@foot} \def\@foot{\@finalstrut\strutbox\color@endgroup\egroup - \ifhmode\null\fi \ifx\pltx@foot@penalty\@undefined\else + \ifhmode\null\fi \ifnum\pltx@foot@penalty=\z@\else \penalty\pltx@foot@penalty \pltx@foot@penalty\z@ @@ -1691,8 +1707,8 @@ \def\@@inhibitglue{% \expandafter\expandafter\expandafter\jsc@inhibitglue\expandafter\meaning\expandafter\@let@token\KANJI@CHARACTER\relax\jsc@end} \expandafter\def\expandafter\jsc@inhibitglue\expandafter#\expandafter1\KANJI@CHARACTER#2#3\jsc@end{% - \def\@tempa{#1}% - \ifx\@tempa\@empty + \def\jsc@tempa{#1}% + \ifx\jsc@tempa\@empty \ifnum\the\inhibitxspcode`#2=2\relax \inhibitglue \fi @@ -1702,7 +1718,7 @@ \def\@doendpe{% \@endpetrue \def\par{% - \@restorepar\everypar{\everyparhook}\par\@endpefalse}% + \@restorepar\clubpenalty\@clubpenalty\everypar{\everyparhook}\par\@endpefalse}% \everypar{{\setbox\z@\lastbox}\everypar{\everyparhook}\@endpefalse\everyparhook}} \def\@item[#1]{% \if@noparitem @@ -1800,18 +1816,6 @@ the installation}% } \fi -\let\ltx@ifnextchar\@ifnextchar -\def\ProvidesFile#1{% - \begingroup - \catcode`\ 10 % - \ifnum \endlinechar<256 % - \ifnum \endlinechar>\m@ne - \catcode\endlinechar 10 % - \fi - \fi - \@makeother\/% - \@makeother\&% - \ltx@ifnextchar[{\@providesfile{#1}}{\@providesfile{#1}[]}} \newcommand{\prepartname}{\if@english Part~\else $BBh(B\fi} \newcommand{\postpartname}{\if@english\else $BIt(B\fi} \newcommand{\presectionname}{}% $BBh(B |