texlive[46475] Master/texmf-dist: bxjscls (29jan18)
commits+karl at tug.org
commits+karl at tug.org
Tue Jan 30 01:02:50 CET 2018
Revision: 46475
http://tug.org/svn/texlive?view=revision&revision=46475
Author: karl
Date: 2018-01-30 01:02:50 +0100 (Tue, 30 Jan 2018)
Log Message:
-----------
bxjscls (29jan18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/bxjscls/LICENSE
trunk/Master/texmf-dist/doc/latex/bxjscls/README-ja.md
trunk/Master/texmf-dist/doc/latex/bxjscls/README.md
trunk/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.pdf
trunk/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.tex
trunk/Master/texmf-dist/doc/latex/bxjscls/bxjscls.pdf
trunk/Master/texmf-dist/source/latex/bxjscls/bxjscls.dtx
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjscjkcat.sty
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjscompat.sty
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-minimal.def
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-modern.def
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-standard.def
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjspandoc.sty
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsreport.cls
trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls
Modified: trunk/Master/texmf-dist/doc/latex/bxjscls/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxjscls/LICENSE 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/doc/latex/bxjscls/LICENSE 2018-01-30 00:02:50 UTC (rev 46475)
@@ -1,28 +1,21 @@
-The BSD 2-Clause License
+The MIT License
-Copyright 1995-1999 ASCII Corporation.
-Copyright 1999-2016 Haruhiko Okumura
-Copyright 2016-2017 Japanese TeX Development Community
-Copyright 2013-2017 Takayuki YATO (aka. "ZR")
-All rights reserved.
+Copyright (c) 2018 Takayuki YATO (aka. "ZR")
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
-1. Redistributions of source code must retain the above copyright notice,
-this list of conditions and the following disclaimer.
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
-2. Redistributions in binary form must reproduce the above copyright notice,
-this list of conditions and the following disclaimer in the documentation
-and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
Modified: trunk/Master/texmf-dist/doc/latex/bxjscls/README-ja.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxjscls/README-ja.md 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/doc/latex/bxjscls/README-ja.md 2018-01-30 00:02:50 UTC (rev 46475)
@@ -98,9 +98,12 @@
更新履歴
--------
+ * Version 1.7b 〈2018/01/28〉
+ - 和文パラメタ `units` を新設。
+ - バグ修正。
* Version 1.7a 〈2017/12/09〉
- 〈試験的〉新元号対応の準備。`\jayear` 命令を追加。
- - `\@` の定義を修正。`fix-ja-cmd` オプションを追加。
+ - `\@` の定義を修正。`fix-at-cmd` オプションを追加。
* Version 1.7 〈2017/10/21〉
- 和文空白命令(`\jaenspace` 等)を追加。
- `everyparhook` オプションを新設。
Modified: trunk/Master/texmf-dist/doc/latex/bxjscls/README.md
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.tex 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.tex 2018-01-30 00:02:50 UTC (rev 46475)
@@ -12,8 +12,8 @@
\renewcommand*{\XeLaTeX}{XeLaTeX}}
\usepackage{shortvrb}
\MakeShortVerb{\|}
-\newcommand{\PkgVersion}{1.7a}
-\newcommand{\PkgDate}{2017/12/09}
+\newcommand{\PkgVersion}{v1.7b}
+\newcommand{\PkgDate}{2018/01/28}
\newcommand{\Pkg}[1]{\textsf{#1}}
\newcommand{\Meta}[1]{$\langle$\mbox{}#1\mbox{}$\rangle$}
\newcommand{\Note}{\par\noindent ※}
@@ -92,8 +92,8 @@
\begin{itemize}
\item \Meta{エンジン}の指定は必須で、実際に使っている
「{\LaTeX}のコマンド名」を書く。
- |latex|、|platex|、|uplatex|、
- |pdflatex|、|xelatex|、|lualatex|が指定できる。
+ |platex|、|uplatex|、
+ |pdflatex|、|xelatex|、|lualatex|等が指定できる。
\item DVI出力のエンジンを使う場合は、\Meta{ドライバ}の指定が必須で、
これは実際に使っている「DVIウェアの名前」を書く。
|dvips|、|dvipdfmx|、|dviout|、|xdvi|が指定できる。
@@ -388,8 +388,9 @@
\usepackage[colorlinks]{hyperref}
\hypersetup{pdftitle={日本語タイトル}}
\end{verbatim}\end{quote}
- \Pkg{hyperref}のパッケージオプションで和文文字を含む文書情報を
+ \Note \Pkg{hyperref}のパッケージオプションで和文文字を含む文書情報を
指定することはできない。
+ (\Pkg{hyperref}の制限仕様。)
\item |jafont| が無い場合の“既定のフォント設定”は多くのエンジンに
おいて「IPAexフォント使用」であるが、(u){\pLaTeX}だけは異なっていて
「何も指定しない状態」(JSクラスと同様)である。
@@ -454,20 +455,15 @@
コマンド行は次のようになる
\footnote{もちろん、実際には改行を含めず1行で書く。
- なお、Pandoc 1.16版以降では、用紙サイズオプションについては、
- 変数 |papersize| の値に“|paper|”を付加したもの
- (|-V papersize=a4| ならば |a4paper|)が使われる。
- ここで |a4var| や |b5var| を使えるようにするため、
- BXJSクラスでは |a4varpaper| 等を別名として用意している。}:
+ なお、以下の記述はPandoc 2.x版に従う。}
\begin{quote}
|pandoc| \Meta{入力ファイル名}\
|-o| \Meta{出力ファイル名}|.pdf|
- |-t latex|\\\quad
- |--latex-engine=xelatex|
- |--no-tex-ligatures|\\\quad
+ |-t latex-smart|\\\quad
+ |--pdf-engine=xelatex|
|-V papersize=a4|
- |-V documentclass=bxjsarticle|
- |-V classoption=pandoc|\\\quad
+ |-V documentclass=bxjsarticle|\\\quad
+ |-V classoption=pandoc|
|-V classoption=jafont=ipaex|
\end{quote}
@@ -492,10 +488,9 @@
|pandoc| \Meta{入力ファイル名}\
|-o| \Meta{出力ファイル名}|.pdf|
|-N|
- |-t latex|\\\quad
+ |-t latex-smart|\\\quad
|--top-level-division=chapter|
- |--latex-engine=xelatex|
- |--no-tex-ligatures|\\\quad
+ |--pdf-engine=xelatex|\\\quad
|-V papersize=b5|
|-V documentclass=bxjsbook|
|-V classoption=pandoc|\\\quad
@@ -509,14 +504,11 @@
\begin{itemize}
\item \Pkg{bxjsbook}クラスは「章(|\chapter|)」をもつクラスなので、
Pandocで |--top-level-division=|\linebreak[0]|chapter| の指定
- \footnote{|--top-level-division| はPandocの1.18版で新設された
- オプションで、それより前は代わりに |--chapters| オプションを
- 指定していた。}%
が必要。
\end{itemize}
-\item Pandocで({\LaTeX}経由で)PDFを出力する場合、
- エンジン指定(|--latex-engine|)は
+\item Pandocで{\LaTeX}経由でPDFを出力する場合、
+ エンジン指定(|--pdf-engine|)は
|pdflatex|、|xelatex|、|lualatex|のみがサポートされる。
しかし、Pandocの出力を「単体の{\LaTeX}文書」とすることで、
{\LaTeX}エンジンに(u){\pLaTeX}を使用することができる。
@@ -1109,6 +1101,15 @@
\item エンジンが{(u)\pLaTeX}の場合、|pxchfon| と |pxbabel|
パッケージに予め |prefer2004jis| オプションが渡される。
\end{itemize}
+\item |units=|\Meta{真偽値}\Means
+ これを真にすると、
+ {\LaTeX}における長さ指定において、{\pTeX}の和文用の単位
+ (|zw|、|zh|、|(true)Q|、|(true)H|)
+ を全てのエンジンで使用できるようにする。
+ 既定値は偽。
+ \Note \Pkg{bxcalc}パッケージを読み込む。
+ \Note 厳密にいうと、「\Pkg{calc}の長さ数式が使える箇所」
+ において和文用の単位が使用できるようになる。
\item |font={|\Meta{文字列}|}|\Means
standard和文ドライバが利用する和文フォントパッケージについて
追加のオプションを指定する。
@@ -1208,17 +1209,22 @@
と等価な環境で、
“各章の初めにちょっとしたことを書く”用途を想定したもの。
(ただし使用可能な場所に特に制限はない。)
-\end{itemize}
-なお、|abstract| 環境の機能については継承元のJSクラスと同一に
-なるため以下のようになる。
-\begin{itemize}
-\item \Pkg{bxjsarticle}および|layout=v2|指定の\Pkg{bxjsreport}\Means
- \Pkg{jsarticle}/\Pkg{jsreport}クラスと同じ、
- つまり「文書要旨」のための環境。
-\item \Pkg{bxjsbook}および|layout=v1|指定の\Pkg{bxjsreport}\Means
- \Pkg{jsbook}クラスと同じ、
- つまり |chapterabstract| 環境と等価。
+ なお、|abstract| 環境の機能については継承元のJSクラスと同一に
+ なるため以下のようになる。
+ \begin{itemize}
+ \item \Pkg{bxjsarticle}および|layout=v2|指定の\Pkg{bxjsreport}\Means
+ \Pkg{jsarticle}/\Pkg{jsreport}クラスと同じ、
+ つまり「文書要旨」のための環境。
+ \item \Pkg{bxjsbook}および|layout=v1|指定の\Pkg{bxjsreport}\Means
+ \Pkg{jsbook}クラスと同じ、
+ つまり |chapterabstract| 環境と等価。
+ \end{itemize}
+
+\item |\jayear|\Means
+ 和暦表示(|\和暦| が有効)の時の |\today| における年号
+ (「年」より前の部分、例えば「平成28」)
+ のテキストを表すマクロ。
\end{itemize}
%-------------------
Modified: trunk/Master/texmf-dist/doc/latex/bxjscls/bxjscls.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/bxjscls/bxjscls.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/bxjscls/bxjscls.dtx 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/source/latex/bxjscls/bxjscls.dtx 2018-01-30 00:02:50 UTC (rev 46475)
@@ -68,7 +68,8 @@
%<*driver>
\ProvidesFile{bxjscls.dtx}
%</driver>
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
+% [2017/12/09 v1.7a BXJS document classes]
% [2017/10/21 v1.7 BXJS document classes]
% [2017/09/28 v1.6b BXJS document classes]
% [2017/09/24 v1.6a BXJS document classes]
@@ -2594,6 +2595,14 @@
\else
\def\jsc at setfontsize#1#2#3{%
\@setfontsize#1{#2\jsc at mpt}{#3\jsc at mpt}}
+% microtype対策
+ \ifjsWitheTeX\if j\jsEngine\else
+ \def\jsc at setfontsize#1#2#3{%
+ \edef\bxjs at sfs@next{%
+ \unexpanded{\@setfontsize#1}%
+ {\the\dimexpr#2\jsc at mpt\relax}{\the\dimexpr#3\jsc at mpt\relax}%
+ }\bxjs at sfs@next}
+ \fi\fi
\fi
% \end{macrocode}
% \end{macro}
@@ -8562,7 +8571,7 @@
% |japaram| の値をkey-valueリストとして解釈する。
% keyvalのファミリは |bxjsStd| とする。
%
-% \begin{macro}{\bxjs at jp@jismmiv}
+% \begin{macro}{\ifbxjs at jp@jismmiv}
% 2004JIS字形を優先させるか。
% \begin{macrocode}
\newif\ifbxjs at jp@jismmiv
@@ -8577,6 +8586,22 @@
\bxjs at set@keyval{jis2004}{#1}{}}
% \end{macrocode}
%
+% \begin{macro}{\ifbxjs at jp@units}
+% 和文用単位(|zw|、|zh|、|(true)Q|、|(true)H|)を
+% 使えるようにするか。
+% \begin{macrocode}
+\newif\ifbxjs at jp@units
+% \end{macrocode}
+% \end{macro}
+%
+% |units| オプションの処理。
+% \begin{macrocode}
+\let\bxjs at kv@units at true\bxjs at jp@unitstrue
+\let\bxjs at kv@units at false\bxjs at jp@unitsfalse
+\define at key{bxjsStd}{units}[true]{%
+ \bxjs at set@keyval{units}{#1}{}}
+% \end{macrocode}
+%
% \begin{macro}{\bxjs at jp@font}
% フォントパッケージの追加オプション。
% \begin{macrocode}
@@ -8584,7 +8609,7 @@
% \end{macrocode}
% \end{macro}
%
-% |jis2004| オプションの処理。
+% |font| オプションの処理。
% \begin{macrocode}
\define at key{bxjsStd}{font}{%
\edef\bxjs at jp@font{#1}}
@@ -8610,6 +8635,28 @@
\fi
% \end{macrocode}
%
+% \paragraph{和文用単位のサポート}
+%
+% |units| パラメタが有効の場合は、|bxcalc| パッケージを読みこんで、
+% |\usepTeXunits| 命令を実行する。
+% \begin{macrocode}
+\ifbxjs at jp@units\if j\jsEngine\else
+ \IfFileExists{bxcalc.sty}{%
+ \RequirePackage{bxcalc}[2018/01/28]%v1.0a
+ \ifx\usepTeXunits\@undefined
+ \PackageWarningNoLine\bxjs at clsname
+ {Cannot support pTeX units (zw etc.), since\MessageBreak
+ the package 'bxcalc' is too old}%
+ \else \usepTeXunits
+ \fi
+ }{%else
+ \PackageWarningNoLine\bxjs at clsname
+ {Cannot support pTeX units (zw etc.), since\MessageBreak
+ the package 'bxcalc' is unavailable}%
+ }
+\fi\fi
+% \end{macrocode}
+%
% \paragraph{共通命令の実装}
%
% |\jQ| 等の「単位」系の共通命令を実装する。
@@ -8698,6 +8745,9 @@
% \begin{macrocode}
\def\bxjs at parse@qh#1{%
\let\bxjs at tmpb\relax}
+\else\ifbxjs at jp@units
+\def\bxjs at parse@qh#1{%
+ \let\bxjs at tmpb\relax}
\else
\def\bxjs at parse@qh#1{%
\def\bxjs at tmpa{#1}\let\bxjs at tmpb\relax
@@ -8712,7 +8762,7 @@
\fi}
\def\bxjs at parse@qh at b#1#2#3{%
\ifx\@nnil#2\@nnil\else \def\bxjs at tmpb{#1#3}\fi}
-\fi
+\fi\fi
% \end{macrocode}
% \end{macro}
%
@@ -9045,6 +9095,21 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\bxjs at resolve@jafont at paren}
+% |jafont|パラメタ値内の|()|を解決する。
+% \begin{macrocode}
+\def\bxjs at resolve@jafont at paren#1{%
+ \def\bxjs at tmpb{\let#1}%
+ \expandafter\bxjs at resolve@jafont at paren@a#1\@nil()\@nil\relax}
+\def\bxjs at resolve@jafont at paren@a#1(#2)#3\@nil#4\relax{%
+ \ifx\relax#4\relax \bxjs at tmpb\jsJaFont
+ \else
+ \edef\bxjs at tmpa{#1\bxjs at jafont@paren{#2}#3}%
+ \bxjs at tmpb\bxjs at tmpa
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
%^^A----------------
% \subsection{{\pTeX}用設定}
%
@@ -9131,6 +9196,7 @@
% ここで、和文ドライバパラメタ |font| が指定されいる場合は、
% その値を |pxchfon| のオプションに追加する。
% \begin{macrocode}
+\let\bxjs at jafont@paren\@firstofone
\let\bxjs at tmpa\jsJaFont
\ifx\bxjs at tmpa\bxjs@@auto
\let\bxjs at tmpa\@empty
@@ -9137,6 +9203,7 @@
\else\ifx\bxjs at tmpa\bxjs@@noEmbed
\def\bxjs at tmpa{noembed}
\fi\fi
+\bxjs at resolve@jafont at paren\bxjs at tmpa
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa\bxjs at jp@font}
\ifx\bxjs at tmpa\@empty\else
\edef\bxjs at next{%
@@ -9256,6 +9323,8 @@
% \Note Pandocモードでは |autotilde| を指定しない。
% \begin{macrocode}
\bxjs at adjust@jafont{f}
+\let\bxjs at jafont@paren\@firstofone
+\bxjs at resolve@jafont at paren\bxjs at tmpa
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa\bxjs at jp@font}
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa{whole}}
\def\bxjs at tmpb{pandoc}\ifx\bxjs at tmpb\bxjs at jadriver\else
@@ -9389,6 +9458,8 @@
% 非指定の場合はIPAexフォントを使用する。
% \begin{macrocode}
\bxjs at adjust@jafont{f}
+\let\bxjs at jafont@paren\@gobble
+\bxjs at resolve@jafont at paren\bxjs at tmpa
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa\bxjs at jp@font}
\ifx\bxjs at tmpa\@empty
\setCJKmainfont[BoldFont=IPAexGothic]{IPAexMincho}
@@ -9536,19 +9607,13 @@
% \begin{macrocode}
\let\zw\@undefined
\RequirePackage{luatexja}
-\RequirePackage{luatexja-fontspec}
+\edef\bxjs at next{%
+ \noexpand\RequirePackage[scale=\jsScale]{luatexja-fontspec}[2015/08/26]%
+}\bxjs at next
% \end{macrocode}
%
% \paragraph{和文フォント定義}
%
-% |luatexja-fontspec| で使用する和文スケール値を |\jsScale| と合致
-% させたいのだが……もっと良い方法はないのか?
-% \begin{macrocode}
-\ExplSyntaxOn
-\fp_gset:Nn \g_ltj_fontspec_scale_fp { \jsScale }
-\ExplSyntaxOff
-% \end{macrocode}
-%
% |\jsJaFont| が指定された場合は、その値をオプションと
% して |luatexja-preset| を読み込む。
% 非指定の場合は、|luatexja-preset| パッケージの |ipaex|
@@ -9559,6 +9624,8 @@
\ifx\bxjs at tmpa\bxjs@@noEmbed
\def\bxjs at tmpa{noembed}
\fi
+\let\bxjs at jafont@paren\@gobble
+\bxjs at resolve@jafont at paren\bxjs at tmpa
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa\bxjs at jp@font}
\ifx\bxjs at tmpa\@empty
\defaultjfontfeatures{ Kerning=Off }
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls 2018-01-30 00:02:50 UTC (rev 46475)
@@ -22,7 +22,7 @@
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{bxjsarticle}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
%% このファイルは日本語文字を含みます.
\def\bxjs at clsname{bxjsarticle}
\newif\ifjsc at needsp@tch
@@ -858,6 +858,13 @@
\else
\def\jsc at setfontsize#1#2#3{%
\@setfontsize#1{#2\jsc at mpt}{#3\jsc at mpt}}
+ \ifjsWitheTeX\if j\jsEngine\else
+ \def\jsc at setfontsize#1#2#3{%
+ \edef\bxjs at sfs@next{%
+ \unexpanded{\@setfontsize#1}%
+ {\the\dimexpr#2\jsc at mpt\relax}{\the\dimexpr#3\jsc at mpt\relax}%
+ }\bxjs at sfs@next}
+ \fi\fi
\fi
\emergencystretch 3\jsZw
\newif\ifnarrowbaselines
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls 2018-01-30 00:02:50 UTC (rev 46475)
@@ -22,7 +22,7 @@
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{bxjsbook}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
%% このファイルは日本語文字を含みます.
\def\bxjs at clsname{bxjsbook}
\newif\ifjsc at needsp@tch
@@ -867,6 +867,13 @@
\else
\def\jsc at setfontsize#1#2#3{%
\@setfontsize#1{#2\jsc at mpt}{#3\jsc at mpt}}
+ \ifjsWitheTeX\if j\jsEngine\else
+ \def\jsc at setfontsize#1#2#3{%
+ \edef\bxjs at sfs@next{%
+ \unexpanded{\@setfontsize#1}%
+ {\the\dimexpr#2\jsc at mpt\relax}{\the\dimexpr#3\jsc at mpt\relax}%
+ }\bxjs at sfs@next}
+ \fi\fi
\fi
\emergencystretch 3\jsZw
\newif\ifnarrowbaselines
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjscjkcat.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjscjkcat.sty 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjscjkcat.sty 2018-01-30 00:02:50 UTC (rev 46475)
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesPackage{bxjscjkcat}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
\def\bxjx at pkgname{bxjscjkcat}
\newcount\bxjx at cnta
\let\bxjx at engine=n
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjscompat.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjscompat.sty 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjscompat.sty 2018-01-30 00:02:50 UTC (rev 46475)
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesPackage{bxjscompat}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
\def\bxac at pkgname{bxjscompat}
\let\bxac at engine=n
\def\bxac at do#1#2{%
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-minimal.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-minimal.def 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-minimal.def 2018-01-30 00:02:50 UTC (rev 46475)
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesFile{bxjsja-minimal.def}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
%% このファイルは日本語文字を含みます
\def\DeclareJaTextFontCommand#1#2{%
\DeclareRobustCommand#1[1]{%
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-modern.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-modern.def 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-modern.def 2018-01-30 00:02:50 UTC (rev 46475)
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesFile{bxjsja-modern.def}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
\input{bxjsja-standard.def}
\ifnum0\if x\jsEngine1\fi\if l\jsEngine1\fi=\z@
\def\encodingdefault{T1}%
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def 2018-01-30 00:02:50 UTC (rev 46475)
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesFile{bxjsja-pandoc.def}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
\input{bxjsja-standard.def}
\RequirePackage{bxjspandoc}
\@onlypreamble\bxjs at set@dupload at proc
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-standard.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-standard.def 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsja-standard.def 2018-01-30 00:02:50 UTC (rev 46475)
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesFile{bxjsja-standard.def}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
%% このファイルは日本語文字を含みます
\input{bxjsja-minimal.def}
\bxjs at simplejasetupfalse
@@ -30,6 +30,11 @@
\bxjs at cslet{bxjs at kv@jis2004 at false}\bxjs at jp@jismmivfalse
\define at key{bxjsStd}{jis2004}[true]{%
\bxjs at set@keyval{jis2004}{#1}{}}
+\newif\ifbxjs at jp@units
+\let\bxjs at kv@units at true\bxjs at jp@unitstrue
+\let\bxjs at kv@units at false\bxjs at jp@unitsfalse
+\define at key{bxjsStd}{units}[true]{%
+ \bxjs at set@keyval{units}{#1}{}}
\let\bxjs at jp@font\@empty
\define at key{bxjsStd}{font}{%
\edef\bxjs at jp@font{#1}}
@@ -39,6 +44,21 @@
\g at addto@macro\@classoptionslist{,jis2004}
\PassOptionsToPackage{jis2004}{otf}
\fi
+\ifbxjs at jp@units\if j\jsEngine\else
+ \IfFileExists{bxcalc.sty}{%
+ \RequirePackage{bxcalc}[2018/01/28]%v1.0a
+ \ifx\usepTeXunits\@undefined
+ \PackageWarningNoLine\bxjs at clsname
+ {Cannot support pTeX units (zw etc.), since\MessageBreak
+ the package 'bxcalc' is too old}%
+ \else \usepTeXunits
+ \fi
+ }{%else
+ \PackageWarningNoLine\bxjs at clsname
+ {Cannot support pTeX units (zw etc.), since\MessageBreak
+ the package 'bxcalc' is unavailable}%
+ }
+\fi\fi
\ifjsWitheTeX
\@tempdima=0.25mm
\protected\edef\jQ{\dimexpr\the\@tempdima\relax}
@@ -72,6 +92,9 @@
\if j\jsEngine
\def\bxjs at parse@qh#1{%
\let\bxjs at tmpb\relax}
+\else\ifbxjs at jp@units
+\def\bxjs at parse@qh#1{%
+ \let\bxjs at tmpb\relax}
\else
\def\bxjs at parse@qh#1{%
\def\bxjs at tmpa{#1}\let\bxjs at tmpb\relax
@@ -86,7 +109,7 @@
\fi}
\def\bxjs at parse@qh at b#1#2#3{%
\ifx\@nnil#2\@nnil\else \def\bxjs at tmpb{#1#3}\fi}
-\fi
+\fi\fi
\def\jafontsize#1#2{%
\begingroup
\bxjs at jafontsize@a{#1}%
@@ -268,6 +291,15 @@
}{}%
}%
}
+\def\bxjs at resolve@jafont at paren#1{%
+ \def\bxjs at tmpb{\let#1}%
+ \expandafter\bxjs at resolve@jafont at paren@a#1\@nil()\@nil\relax}
+\def\bxjs at resolve@jafont at paren@a#1(#2)#3\@nil#4\relax{%
+ \ifx\relax#4\relax \bxjs at tmpb\jsJaFont
+ \else
+ \edef\bxjs at tmpa{#1\bxjs at jafont@paren{#2}#3}%
+ \bxjs at tmpb\bxjs at tmpa
+ \fi}
\if j\jsEngine
\def\bxjs at apply@kanjiskip{%
\kanjiskip\@tempskipa}
@@ -308,6 +340,7 @@
\PassOptionsToPackage{prefer2004jis}{pxchfon}
\PassOptionsToPackage{prefer2004jis}{pxbabel}
\fi
+\let\bxjs at jafont@paren\@firstofone
\let\bxjs at tmpa\jsJaFont
\ifx\bxjs at tmpa\bxjs@@auto
\let\bxjs at tmpa\@empty
@@ -314,6 +347,7 @@
\else\ifx\bxjs at tmpa\bxjs@@noEmbed
\def\bxjs at tmpa{noembed}
\fi\fi
+\bxjs at resolve@jafont at paren\bxjs at tmpa
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa\bxjs at jp@font}
\ifx\bxjs at tmpa\@empty\else
\edef\bxjs at next{%
@@ -385,6 +419,8 @@
\fi
\else\if p\jsEngine
\bxjs at adjust@jafont{f}
+\let\bxjs at jafont@paren\@firstofone
+\bxjs at resolve@jafont at paren\bxjs at tmpa
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa\bxjs at jp@font}
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa{whole}}
\def\bxjs at tmpb{pandoc}\ifx\bxjs at tmpb\bxjs at jadriver\else
@@ -457,6 +493,8 @@
{xeCJK or zxjatype is too old}\@ehc
\fi
\bxjs at adjust@jafont{f}
+\let\bxjs at jafont@paren\@gobble
+\bxjs at resolve@jafont at paren\bxjs at tmpa
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa\bxjs at jp@font}
\ifx\bxjs at tmpa\@empty
\setCJKmainfont[BoldFont=IPAexGothic]{IPAexMincho}
@@ -516,14 +554,15 @@
\else\if l\jsEngine
\let\zw\@undefined
\RequirePackage{luatexja}
-\RequirePackage{luatexja-fontspec}
-\ExplSyntaxOn
-\fp_gset:Nn \g_ltj_fontspec_scale_fp { \jsScale }
-\ExplSyntaxOff
+\edef\bxjs at next{%
+ \noexpand\RequirePackage[scale=\jsScale]{luatexja-fontspec}[2015/08/26]%
+}\bxjs at next
\bxjs at adjust@jafont{t}
\ifx\bxjs at tmpa\bxjs@@noEmbed
\def\bxjs at tmpa{noembed}
\fi
+\let\bxjs at jafont@paren\@gobble
+\bxjs at resolve@jafont at paren\bxjs at tmpa
\edef\bxjs at tmpa{\bxjs at catopt\bxjs at tmpa\bxjs at jp@font}
\ifx\bxjs at tmpa\@empty
\defaultjfontfeatures{ Kerning=Off }
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjspandoc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjspandoc.sty 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjspandoc.sty 2018-01-30 00:02:50 UTC (rev 46475)
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesPackage{bxjspandoc}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
%% このファイルは日本語文字を含みます.
\def\bxjsp at pkgname{bxjscjkcat}
\let\bxjsp at engine=n
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsreport.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsreport.cls 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsreport.cls 2018-01-30 00:02:50 UTC (rev 46475)
@@ -22,7 +22,7 @@
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{bxjsreport}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
%% このファイルは日本語文字を含みます.
\def\bxjs at clsname{bxjsreport}
\newif\ifjsc at needsp@tch
@@ -866,6 +866,13 @@
\else
\def\jsc at setfontsize#1#2#3{%
\@setfontsize#1{#2\jsc at mpt}{#3\jsc at mpt}}
+ \ifjsWitheTeX\if j\jsEngine\else
+ \def\jsc at setfontsize#1#2#3{%
+ \edef\bxjs at sfs@next{%
+ \unexpanded{\@setfontsize#1}%
+ {\the\dimexpr#2\jsc at mpt\relax}{\the\dimexpr#3\jsc at mpt\relax}%
+ }\bxjs at sfs@next}
+ \fi\fi
\fi
\emergencystretch 3\jsZw
\newif\ifnarrowbaselines
Modified: trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls 2018-01-29 23:55:32 UTC (rev 46474)
+++ trunk/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls 2018-01-30 00:02:50 UTC (rev 46475)
@@ -22,7 +22,7 @@
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{bxjsslide}
- [2017/12/09 v1.7a BXJS document classes]
+ [2018/01/28 v1.7b BXJS document classes]
%% このファイルは日本語文字を含みます.
\def\bxjs at clsname{bxjsslide}
\newif\ifjsc at needsp@tch
@@ -857,6 +857,13 @@
\else
\def\jsc at setfontsize#1#2#3{%
\@setfontsize#1{#2\jsc at mpt}{#3\jsc at mpt}}
+ \ifjsWitheTeX\if j\jsEngine\else
+ \def\jsc at setfontsize#1#2#3{%
+ \edef\bxjs at sfs@next{%
+ \unexpanded{\@setfontsize#1}%
+ {\the\dimexpr#2\jsc at mpt\relax}{\the\dimexpr#3\jsc at mpt\relax}%
+ }\bxjs at sfs@next}
+ \fi\fi
\fi
\emergencystretch 3\jsZw
\newif\ifnarrowbaselines
More information about the tex-live-commits
mailing list