From 839173be16441663c136cac16d77c95f0bf83213 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 27 Sep 2017 23:11:46 +0000 Subject: bidi (24sep17) git-svn-id: svn://tug.org/texlive/trunk@45420 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/bxjscls/README-ja.md | 4 + Master/texmf-dist/doc/latex/bxjscls/README.md | 2 + .../doc/latex/bxjscls/bxjscls-manual.pdf | Bin 608884 -> 609946 bytes .../doc/latex/bxjscls/bxjscls-manual.tex | 32 ++- Master/texmf-dist/doc/latex/bxjscls/bxjscls.pdf | Bin 995194 -> 1002887 bytes Master/texmf-dist/source/latex/bxjscls/bxjscls.dtx | 286 ++++++++++++++++----- Master/texmf-dist/source/latex/bxjscls/bxjscls.ins | 1 + .../texmf-dist/tex/latex/bxjscls/bxjsarticle.cls | 5 +- Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls | 5 +- Master/texmf-dist/tex/latex/bxjscls/bxjscjkcat.sty | 2 +- Master/texmf-dist/tex/latex/bxjscls/bxjscompat.sty | 2 +- .../tex/latex/bxjscls/bxjsja-minimal.def | 2 +- .../texmf-dist/tex/latex/bxjscls/bxjsja-modern.def | 2 +- .../texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def | 41 ++- .../tex/latex/bxjscls/bxjsja-standard.def | 2 +- Master/texmf-dist/tex/latex/bxjscls/bxjspandoc.sty | 94 +++++++ Master/texmf-dist/tex/latex/bxjscls/bxjsreport.cls | 5 +- Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls | 5 +- 18 files changed, 382 insertions(+), 108 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/bxjscls/bxjspandoc.sty (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/bxjscls/README-ja.md b/Master/texmf-dist/doc/latex/bxjscls/README-ja.md index bd7f26e41bd..632f511bb23 100644 --- a/Master/texmf-dist/doc/latex/bxjscls/README-ja.md +++ b/Master/texmf-dist/doc/latex/bxjscls/README-ja.md @@ -68,6 +68,7 @@ XeLaTeX / LuaLaTeX の上でも日本語処理パッケージと連携して使 * `bxjsja-modern.def`: modern 和文ドライバファイル * `bxjscompat.sty`: bxjscompat パッケージファイル * `bxjscjkcat.sty`: bxjscjkcat パッケージファイル + * `bxjspandoc.sty`: bxjspandoc パッケージファイル その後、各ファイルを次の場所に移動する。 (TDS 1.1 に従ったシステムの場合。) @@ -97,6 +98,9 @@ XeLaTeX / LuaLaTeX の上でも日本語処理パッケージと連携して使 更新履歴 -------- + * Version 1.6a 〈2017/09/24〉 + - `bxjspandoc` パッケージを新設。 + - Pandoc モードで起こる細かい不具合に対処した。 * Version 1.6 〈2017/09/09〉 - bxjsreport の継承元を jsbook + report から jsreport に変更した。 - jsclasses の 2017/09/03 版と同期。 diff --git a/Master/texmf-dist/doc/latex/bxjscls/README.md b/Master/texmf-dist/doc/latex/bxjscls/README.md index e9c4b12f42b..fc1c3498fce 100644 --- a/Master/texmf-dist/doc/latex/bxjscls/README.md +++ b/Master/texmf-dist/doc/latex/bxjscls/README.md @@ -65,6 +65,7 @@ This command will generate the following files: * `bxjsja-modern.def`: the `modern` ja-driver file * `bxjscompat.sty`: the `bxjscompat` package file * `bxjscjkcat.sty`: the `bxjscjkcat` package file + * `bxjspandoc.sty`: the `bxjspandoc` package file After that, move the files as follows (in a system compliant to TDS 1.1): @@ -87,6 +88,7 @@ This package is distributed under the BSD 2-Clause License. Revision History ---------------- + * Version 1.6a 〈2017/09/24〉 * Version 1.6 〈2017/09/09〉 - Sync with jsclasses 2017/09/03. * Version 1.5d 〈2017/07/07〉 diff --git a/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.pdf b/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.pdf index f89c9f66d6e..d1734bf43f9 100644 Binary files a/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.pdf and b/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.pdf differ diff --git a/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.tex b/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.tex index a240279da48..6e0ce1aa1d0 100644 --- a/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.tex +++ b/Master/texmf-dist/doc/latex/bxjscls/bxjscls-manual.tex @@ -12,8 +12,8 @@ \renewcommand*{\XeLaTeX}{XeLaTeX}} \usepackage{shortvrb} \MakeShortVerb{\|} -\newcommand{\PkgVersion}{1.6} -\newcommand{\PkgDate}{2017/09/09} +\newcommand{\PkgVersion}{1.6a} +\newcommand{\PkgDate}{2017/09/24} \newcommand{\Pkg}[1]{\textsf{#1}} \newcommand{\Meta}[1]{$\langle$\mbox{}#1\mbox{}$\rangle$} \newcommand{\Note}{\par\noindent ※} @@ -459,9 +459,11 @@ Pandoc\footnote{\url{http://pandoc.org/}}% ここで |a4var| や |b5var| を使えるようにするため、 BXJSクラスでは |a4varpaper| 等を別名として用意している。}: \begin{quote} - |pandoc| \Meta{入力ファイル名} + |pandoc| \Meta{入力ファイル名}\ |-o| \Meta{出力ファイル名}|.pdf| - |--latex-engine=xelatex|\\\quad + |-t latex|\\\quad + |--latex-engine=xelatex| + |--no-tex-ligatures|\\\quad |-V papersize=a4| |-V documentclass=bxjsarticle| |-V classoption=pandoc|\\\quad @@ -486,15 +488,17 @@ Pandoc\footnote{\url{http://pandoc.org/}}% コマンド行は次のようになる: \begin{quote} - |pandoc| \Meta{入力ファイル名} + |pandoc| \Meta{入力ファイル名}\ |-o| \Meta{出力ファイル名}|.pdf| - |--chapters| - |-N|\\\quad - |--latex-engine=lualatex| + |-N| + |-t latex|\\\quad + |--top-level-division=chapter| + |--latex-engine=xelatex| + |--no-tex-ligatures|\\\quad |-V papersize=b5| - |-V documentclass=bxjsbook|\\\quad - |-V classoption=pandoc| - |-V classoption=jbase=11Q|\\\quad + |-V documentclass=bxjsbook| + |-V classoption=pandoc|\\\quad + |-V classoption=jbase=11Q| |-V classoption=jafont=ipaex|\\\quad |-V mainfont="TeX Gyre Termes"| |-V sansfont="TeX Gyre Heros"| @@ -503,7 +507,11 @@ Pandoc\footnote{\url{http://pandoc.org/}}% 注意事項: \begin{itemize} \item \Pkg{bxjsbook}クラスは「章(|\chapter|)」をもつクラスなので、 - Pandocで |--chapters| の指定が必要。 + Pandocで |--top-level-division=|\linebreak[0]|chapter| の指定 + \footnote{|--top-level-division| はPandocの1.18版で新設された + オプションで、それより前は代わりに |--chapters| オプションを + 指定していた。}% + が必要。 \end{itemize} \item Pandocで({\LaTeX}経由で)PDFを出力する場合、 diff --git a/Master/texmf-dist/doc/latex/bxjscls/bxjscls.pdf b/Master/texmf-dist/doc/latex/bxjscls/bxjscls.pdf index a3c21073fa7..56b97c79314 100644 Binary files a/Master/texmf-dist/doc/latex/bxjscls/bxjscls.pdf and b/Master/texmf-dist/doc/latex/bxjscls/bxjscls.pdf differ diff --git a/Master/texmf-dist/source/latex/bxjscls/bxjscls.dtx b/Master/texmf-dist/source/latex/bxjscls/bxjscls.dtx index d42bdf73b68..0e9f43cea11 100644 --- a/Master/texmf-dist/source/latex/bxjscls/bxjscls.dtx +++ b/Master/texmf-dist/source/latex/bxjscls/bxjscls.dtx @@ -64,10 +64,12 @@ %\ProvidesFile{bxjsja-pandoc.def} %\ProvidesPackage{bxjscompat} %\ProvidesPackage{bxjscjkcat} +%\ProvidesPackage{bxjspandoc} %<*driver> \ProvidesFile{bxjscls.dtx} % - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] +% [2017/09/09 v1.6 BXJS document classes] % based on jsclasses [2017/09/03] % [2017/07/07 v1.5d BXJS document classes] % [2017/06/10 v1.5c BXJS document classes] @@ -5248,7 +5250,8 @@ % |\jachar| と同義になるが、それ以外は何もしない。 % \end{ZRnote} % \begin{macrocode} -\newcommand\jsParagraphMark{\jsJaChar{■}} +\newcommand\jsParagraphMark{\relax\jsJaChar{■}} +\let\bxjs@org@paragraph@mark\jsParagraphMark \ifx\bxjs@paragraph@mark\@empty \let\jsParagraphMark\@empty \else\ifx\bxjs@paragraph@mark\@undefined\else @@ -9567,6 +9570,7 @@ % \begin{macrocode} %<*pandoc> \input{bxjsja-standard.def} +\RequirePackage{bxjspandoc} % \end{macrocode} % %^^A---------------- @@ -9617,22 +9621,6 @@ % \end{macrocode} % \end{macro} % -% \begin{macro}{\bxjs@mark@as@loaded} -% |\bxjs@mark@as@loaded{|\Meta{ファイル名}|}|\Means -% 特定のファイルに対して、(|\@filewithoptions| の処理に関して) -% 読込済であるとマークする。 -% \begin{macrocode} -\def\bxjs@mark@as@loaded#1{% - \expandafter\bxjs@mal@a\csname ver@#1\endcsname{#1}} -\def\bxjs@mal@a#1#2{% - \ifx#1\relax - \def#1{2001/01/01}% - \ClassInfo\bxjs@clsname - {File '#2' marked as loaded\@gobble}% - \fi} -% \end{macrocode} -% \end{macro} -% %^^A---------------- %\subsection{lang変数} % |lang=ja| という言語指定が行われると、 @@ -9645,7 +9633,7 @@ % \end{macrocode} % Polyglossiaについて。 % \begin{macrocode} -\bxjs@mark@as@loaded{polyglossia.sty} +\pandocSkipLoadPackage{polyglossia} \bxjs@set@dupload@proc{polyglossia.sty}{% \ClassWarning\bxjs@clsname {Loading of polyglossia is blocked}} @@ -9665,7 +9653,7 @@ % \end{macrocode} % Babelについて。 % \begin{macrocode} -\bxjs@mark@as@loaded{babel.sty} +\pandocSkipLoadPackage{babel} \bxjs@set@dupload@proc{babel.sty}{% \ClassWarning\bxjs@clsname {Loading of babel is blocked}} @@ -9691,57 +9679,49 @@ % 指定された場合は |\setmainjfont| の指定にまわす。 % \begin{macrocode} \if l\jsEngine - \bxjs@mark@as@loaded{xeCJK.sty} + \pandocSkipLoadPackage{xeCJK} \providecommand*{\setCJKmainfont}{\setmainjfont} \fi % \end{macrocode} % %^^A---------------- -%\subsection{fixltx2eパッケージ} -% テンプレートでは |fixltx2e| パッケージを読み込むが、 -% 最近(2015年版以降)の{\LaTeX}ではこれで警告が出る。 -% これを抑止する。 +%\subsection{paragraphのマーク} % -% {\LaTeX}カーネルが新しい場合は |fixltx2e| を -% 読込済にする。 +% BXJSクラスでは |\paragraph| の見出しの前に |\jsParagraphMark| +% で指定したマークが付加され、既定ではこれは“■”である。 +% しかし、この規定は |\paragraph| が本来のレイアウトを保っている、 +% すなわち「行内見出しである」「節番号が付かない」ことが前提になって +% いると考えられる。 +% Pandocはこの規定を変更することがある +% (特に既定で |\paragraph| を別行見出しに再定義する) +% ため、変更された場合は |\jsParagraphMark| の既定値を空にする。 +% +% Pandocがプレアンブルで行う再定義の結果を調べるため、 +% begin-documentフックを利用する。 % \begin{macrocode} -\ifx\@IncludeInRelease\@undefined\else - \bxjs@mark@as@loaded{fixltx2e.sty} -\fi +\AtBeginDocument{% + \@tempswafalse % \end{macrocode} -% -%^^A---------------- -%\subsection{cmapパッケージ} -% エンジンが{(u)\pLaTeX}のときに |cmap| パッケージが -% 読み込まれるのを阻止する。 -% (実際は警告が出るだけで無害であるが。) -% +% まず、マーク変更が必要かを調べる。 +% |\oldparagraph| という制御綴が定義済の場合、Pandocが |\paragraph| +% の様式を変更したということなので、マーク変更が必要である。 % \begin{macrocode} -\if j\jsEngine - \bxjs@mark@as@loaded{cmap.sty} -\fi + \ifx\oldparagraph\@undefined\else + \@tempswatrue + \fi % \end{macrocode} -% -%^^A---------------- -%\subsection{microtypeパッケージ} -% 警告が多すぎなので消す。 -% +% |\paragraph| が番号付きの場合は、マーク変更が必要である。 % \begin{macrocode} -\if j\jsEngine \else - \PassOptionsToPackage{verbose=silent}{microtype} -\fi + \ifnum\c@secnumdepth>3 + \@tempswatrue + \fi % \end{macrocode} -% -% エンジンが{(u)\pLaTeX}のときに |microtype| パッケージが -% 読み込まれるのを阻止し、さらにテンプレートで使われている命令を -% 通すためにダミーの定義を行う。 -% \Note 昔はstandardドライバでこの処理を行っていたが、 -% 元来はPandoc用の処理なので、1.5版でpandocに移動。 +% 「マーク変更が必要」である場合、|\jsParagraphMark| が既定値のままで +% あれば空に変更する。 % \begin{macrocode} -\if j\jsEngine - \bxjs@mark@as@loaded{microtype.sty} - \newcommand*\UseMicrotypeSet[2][]{} -\fi + \if@tempswa\ifx\jsParagraphMark\bxjs@org@paragraph@mark + \let\jsParagraphMark\@empty + \fi\fi} % \end{macrocode} % %^^A---------------- @@ -9763,7 +9743,9 @@ % 他のクラスの文書で読み込んで利用することもできる。 % % \begin{itemize} +% \item bxjscompat : ムニャムニャムニャ。 % \item bxjscjkcat: modernドライバ用の和文カテゴリを適用する。 +% \item bxjspandoc : Pandoc用のナニカ。 % \end{itemize} % % \begin{macrocode} @@ -10410,6 +10392,194 @@ D800,DB80,DC00,E000,FB00,FB50,FE00,FE70,% % % \end{macrocode} % +%^^A======================================================== +% \section{補助パッケージ:bxjspandoc \ZRX} +% +% Pandocの{\LaTeX}用標準テンプレートをより幸せに使うための設定。 +% BXJSクラスのpandocドライバのコードの中の、“汎用的”に使える +% 部分を切り出したもの。 +% つまり現在のpandocドライバはこのパッケージを読みこむ。 +% \Note テンプレートの{\TeX}コードより前に読み込む必要があるため、 +% 専ら文書クラス内での読込に限られる。 +% +%^^A---------------- +% \subsection{準備} +% +% \begin{macrocode} +%<*ancpandoc> +%% このファイルは日本語文字を含みます. +\def\bxjsp@pkgname{bxjscjkcat} +% \end{macrocode} +% +% \begin{macro}{\bxjsp@engine} +% エンジンの種別。 +% \begin{macrocode} +\let\bxjsp@engine=n +\@onlypreamble\bxjsp@do +\def\bxjsp@do#1#2{% + \edef\bxjsp@tmpa{\string#1}% + \edef\bxjsp@tmpb{\meaning#1}% + \ifx\bxjsp@tmpa\bxjsp@tmpb #2\fi} +\bxjsp@do\kanjiskip{\let\bxjsp@engine=j} +\bxjsp@do\XeTeXversion{\let\bxjsp@engine=x} +\bxjsp@do\pdftexversion{\let\bxjsp@engine=p} +\bxjsp@do\luatexversion{\let\bxjsp@engine=l} +% \end{macrocode} +% \end{macro} +% +%^^A---------------- +%\subsection{パッケージ読込の阻止} +% +% \begin{macro}{\pandocSkipLoadFile} +% |\pandocSkipLoadFile{|\Meta{ファイル名}|}|\Means +% 特定のファイルを(|\@filewithoptions| の処理に関して) +% 読込済であるとマークする。 +% \begin{macrocode} +\newcommand*\pandocSkipLoadFile[1]{% + \expandafter\bxjsp@skip@load@file@a\csname ver@#1\endcsname{#1}} +\def\bxjsp@skip@load@file@a#1#2{% + \ifx#1\relax + \def#1{2001/01/01}% + \PackageInfo\bxjsp@pkgname + {File '#2' marked as loaded\@gobble}% + \fi} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\pandocSkipLoadPackage} +% |\pandocSkipLoadPackage{|\Meta{パッケージ名}|}|\Means +% |\pandocSkipLoadFile| の機能を用いてパッケージの読込を阻止する。 +% \begin{macrocode} +\newcommand*\pandocSkipLoadPackage[1]{% + \pandocSkipLoadFile{#1.sty}} +% \end{macrocode} +% \end{macro} +% +%^^A---------------- +%\subsection{fixltx2eパッケージ} +% テンプレートでは |fixltx2e| パッケージを読み込むが、 +% 最近(2015年版以降)の{\LaTeX}ではこれで警告が出る。 +% これを抑止する。 +% +% {\LaTeX}カーネルが新しい場合は |fixltx2e| を +% 読込済にする。 +% \begin{macrocode} +\ifx\@IncludeInRelease\@undefined\else + \pandocSkipLoadPackage{fixltx2e} +\fi +% \end{macrocode} +% +%^^A---------------- +%\subsection{cmapパッケージ} +% エンジンが{(u)\pLaTeX}のときに |cmap| パッケージが +% 読み込まれるのを阻止する。 +% (実際は警告が出るだけで無害であるが。) +% +% \begin{macrocode} +\if j\bxjsp@engine + \pandocSkipLoadPackage{cmap} +\fi +% \end{macrocode} +% +%^^A---------------- +%\subsection{microtypeパッケージ} +% 警告が多すぎなので消す。 +% +% \begin{macrocode} +\if j\bxjsp@engine \else + \PassOptionsToPackage{verbose=silent}{microtype} +\fi +% \end{macrocode} +% +% エンジンが{(u)\pLaTeX}のときに |microtype| パッケージが +% 読み込まれるのを阻止し、さらにテンプレートで使われている命令を +% 通すためにダミーの定義を行う。 +% \Note 昔はstandardドライバでこの処理を行っていたが、 +% 元来はPandoc用の処理なので、1.5版でpandocに移動。 +% \begin{macrocode} +\if j\bxjsp@engine + \pandocSkipLoadPackage{microtype} + \newcommand*\UseMicrotypeSet[2][]{} +\fi +% \end{macrocode} +% +%^^A---------------- +%\subsection{Unicode文字変換対策} +% +% Pandocで{\LaTeX}形式に書き出す場合は、元データ中の一部のUnicode文字を +% 「{\LaTeX}の表記」に置き換える。 +% その中には日本語文書で問題になるものが含まれる。 +% \begin{quote} +% \mbox{…}→|\ldots{}|\quad +% \mbox{‘}→|`|\quad +% \mbox{’}→|'|\quad +% \mbox{“}→|``|\quad +% \mbox{”}→|''|\quad +% \end{quote} +% 日本語{\LaTeX}では「{\LaTeX}の表記」は欧文扱い、 +% Unicode文字は和文扱いとして使い分ける習慣があるので、 +% このような置換が行われるのは好ましくない。 +% +% これらの置換のうち、後の4つはPandocの |--no-tex-ligatures| オプションを +% 指定すれば抑止できるが、「…」の置換を抑止する機能はないようである。 +% そこで、「|\ldots{}| を『…』に戻す」という処置を行う。 +% +% \begin{macro}{\pandocLdots} +% Pandoc用の |\ldots| の実装。 +% 非数式でありかつ後続が |{}| の場合は代わりに |…| を実行する。 +% \begin{macrocode} +\DeclareRobustCommand{\pandocLdots}{% + \relax\ifmmode \expandafter\bxjsp@org@ldots + \else \expandafter\bxjsp@ldots@a + \fi} +\def\bxjsp@ja@ellipsis{…} +\let\bxjsp@org@ldots\ldots +\def\bxjsp@ldots@a{% + \futurelet\bxjsp@tok\bxjsp@ldots@b} +\def\bxjsp@ldots@b{% + \ifx\bxjsp@tok\bgroup \expandafter\bxjsp@ldots@c + \else \expandafter\bxjsp@org@ldots + \fi} +\def\bxjsp@ldots@c{% + \afterassignment\bxjsp@ldots@d \let\bxjsp@tok=} +\def\bxjsp@ldots@d{% + \futurelet\bxjsp@tok\bxjsp@ldots@e} +\def\bxjsp@ldots@e{% + \ifx\bxjsp@tok\egroup \expandafter\bxjsp@ldots@f + \else \expandafter\bxjsp@ldots@g + \fi} +\def\bxjsp@ldots@f{% + \bxjsp@ja@ellipsis \let\bxjsp@tok=} +\def\bxjsp@ldots@g{% + \expandafter\bxjsp@org@ldots\expandafter{\romannumeral-`} } +% \end{macrocode} +% \end{macro} +% +% |\ldots| の実装を置き換える。 +% \begin{macrocode} +\AtBeginDocument{% + \let\bxjsp@org@ldots\ldots + \let\ldots\pandocLdots} +% \end{macrocode} +% +%^^A---------------- +% \subsection{PandoLaモジュール} +% インストール済であれば読み込む。 +% \begin{macrocode} +\IfFileExists{bxpandola.sty}{% + \RequirePackage{bxpandola}\relax + \PackageInfo\bxjsp@pkgname + {PandoLa module is loaded\@gobble} +}{} +% \end{macrocode} +% +%^^A---------------- +% \subsection{完了} +% おしまい。 +% \begin{macrocode} +% +% \end{macrocode} +% % 補助パッケージ実装はここまで。 % \begin{macrocode} % diff --git a/Master/texmf-dist/source/latex/bxjscls/bxjscls.ins b/Master/texmf-dist/source/latex/bxjscls/bxjscls.ins index a60aed3277f..0e533ebe34f 100644 --- a/Master/texmf-dist/source/latex/bxjscls/bxjscls.ins +++ b/Master/texmf-dist/source/latex/bxjscls/bxjscls.ins @@ -12,4 +12,5 @@ \generateFile{bxjsja-pandoc.def}{f}{\from{bxjscls.dtx}{drv,pandoc}} \generateFile{bxjscompat.sty}{f}{\from{bxjscls.dtx}{anc,compat}} \generateFile{bxjscjkcat.sty}{f}{\from{bxjscls.dtx}{anc,cjkcat}} +\generateFile{bxjspandoc.sty}{f}{\from{bxjscls.dtx}{anc,ancpandoc}} %% EOF diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls index 7d9e6dde4b2..7a22892d8e5 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e} \ProvidesClass{bxjsarticle} - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] %% このファイルは日本語文字を含みます. \def\bxjs@clsname{bxjsarticle} \newif\ifjsc@needsp@tch @@ -1487,7 +1487,8 @@ {\if@slide .5\Cvs \@plus.3\Cdp \else \z@ \fi}% {\normalfont\normalsize\headfont}} \fi -\newcommand\jsParagraphMark{\jsJaChar{■}} +\newcommand\jsParagraphMark{\relax\jsJaChar{■}} +\let\bxjs@org@paragraph@mark\jsParagraphMark \ifx\bxjs@paragraph@mark\@empty \let\jsParagraphMark\@empty \else\ifx\bxjs@paragraph@mark\@undefined\else diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls index c1edf302d0a..5a89ea06886 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e} \ProvidesClass{bxjsbook} - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] %% このファイルは日本語文字を含みます. \def\bxjs@clsname{bxjsbook} \newif\ifjsc@needsp@tch @@ -1608,7 +1608,8 @@ {\if@slide .5\Cvs \@plus.3\Cdp \else \z@ \fi}% {\normalfont\normalsize\headfont}} \fi -\newcommand\jsParagraphMark{\jsJaChar{■}} +\newcommand\jsParagraphMark{\relax\jsJaChar{■}} +\let\bxjs@org@paragraph@mark\jsParagraphMark \ifx\bxjs@paragraph@mark\@empty \let\jsParagraphMark\@empty \else\ifx\bxjs@paragraph@mark\@undefined\else diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjscjkcat.sty b/Master/texmf-dist/tex/latex/bxjscls/bxjscjkcat.sty index d5d539f1497..8ac1d5150c5 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjscjkcat.sty +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjscjkcat.sty @@ -21,7 +21,7 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) \ProvidesPackage{bxjscjkcat} - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] \def\bxjx@pkgname{bxjscjkcat} \newcount\bxjx@cnta \let\bxjx@engine=n diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjscompat.sty b/Master/texmf-dist/tex/latex/bxjscls/bxjscompat.sty index 6bda051b740..e72267bcb31 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjscompat.sty +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjscompat.sty @@ -21,7 +21,7 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) \ProvidesPackage{bxjscompat} - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] \def\bxac@pkgname{bxjscompat} \let\bxac@engine=n \def\bxac@do#1#2{% diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-minimal.def b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-minimal.def index cd79362ec15..8b6e7326583 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-minimal.def +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-minimal.def @@ -21,7 +21,7 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) \ProvidesFile{bxjsja-minimal.def} - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] %% このファイルは日本語文字を含みます \def\DeclareJaTextFontCommand#1#2{% \DeclareRobustCommand#1[1]{% diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-modern.def b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-modern.def index c55014f5cce..1d66deb3f7e 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-modern.def +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-modern.def @@ -21,7 +21,7 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) \ProvidesFile{bxjsja-modern.def} - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] \input{bxjsja-standard.def} \ifnum0\if x\jsEngine1\fi\if l\jsEngine1\fi=\z@ \def\encodingdefault{T1}% diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def index 34044de2fec..1412fa21374 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def @@ -21,8 +21,9 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) \ProvidesFile{bxjsja-pandoc.def} - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] \input{bxjsja-standard.def} +\RequirePackage{bxjspandoc} \@onlypreamble\bxjs@set@dupload@proc \def\bxjs@set@dupload@proc#1{% \expandafter\bxjs@set@dupload@proc@a\csname bxjs@dlp/#1\endcsname} @@ -48,16 +49,8 @@ \def\bxjs@do@dupload@proc#1#2#3{% \csname bxjs@dlp/#2.#1\endcsname{#3}% \@firstoftwo} -\def\bxjs@mark@as@loaded#1{% - \expandafter\bxjs@mal@a\csname ver@#1\endcsname{#1}} -\def\bxjs@mal@a#1#2{% - \ifx#1\relax - \def#1{2001/01/01}% - \ClassInfo\bxjs@clsname - {File '#2' marked as loaded\@gobble}% - \fi} \ifnum0\if x\jsEngine1\fi\if l\jsEngine1\fi>0 -\bxjs@mark@as@loaded{polyglossia.sty} +\pandocSkipLoadPackage{polyglossia} \bxjs@set@dupload@proc{polyglossia.sty}{% \ClassWarning\bxjs@clsname {Loading of polyglossia is blocked}} @@ -74,7 +67,7 @@ \setotherlangauge{\bxjs@tmpa}}} \fi \else -\bxjs@mark@as@loaded{babel.sty} +\pandocSkipLoadPackage{babel} \bxjs@set@dupload@proc{babel.sty}{% \ClassWarning\bxjs@clsname {Loading of babel is blocked}} @@ -85,22 +78,20 @@ \bxjs@set@dupload@proc{geometry.sty}{% \setpagelayout*{#1}} \if l\jsEngine - \bxjs@mark@as@loaded{xeCJK.sty} + \pandocSkipLoadPackage{xeCJK} \providecommand*{\setCJKmainfont}{\setmainjfont} \fi -\ifx\@IncludeInRelease\@undefined\else - \bxjs@mark@as@loaded{fixltx2e.sty} -\fi -\if j\jsEngine - \bxjs@mark@as@loaded{cmap.sty} -\fi -\if j\jsEngine \else - \PassOptionsToPackage{verbose=silent}{microtype} -\fi -\if j\jsEngine - \bxjs@mark@as@loaded{microtype.sty} - \newcommand*\UseMicrotypeSet[2][]{} -\fi +\AtBeginDocument{% + \@tempswafalse + \ifx\oldparagraph\@undefined\else + \@tempswatrue + \fi + \ifnum\c@secnumdepth>3 + \@tempswatrue + \fi + \if@tempswa\ifx\jsParagraphMark\bxjs@org@paragraph@mark + \let\jsParagraphMark\@empty + \fi\fi} \endinput %% %% End of file `bxjsja-pandoc.def'. diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-standard.def b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-standard.def index 0e8387a6636..3f9d1282d58 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-standard.def +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-standard.def @@ -21,7 +21,7 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) \ProvidesFile{bxjsja-standard.def} - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] %% このファイルは日本語文字を含みます \input{bxjsja-minimal.def} \bxjs@simplejasetupfalse diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjspandoc.sty b/Master/texmf-dist/tex/latex/bxjscls/bxjspandoc.sty new file mode 100644 index 00000000000..914ac949ec9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjspandoc.sty @@ -0,0 +1,94 @@ +%% +%% This is file `bxjspandoc.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bxjscls.dtx (with options: `anc,ancpandoc') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from bxjspandoc.sty. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file bxjscls.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.) +\ProvidesPackage{bxjspandoc} + [2017/09/24 v1.6a BXJS document classes] +%% このファイルは日本語文字を含みます. +\def\bxjsp@pkgname{bxjscjkcat} +\let\bxjsp@engine=n +\@onlypreamble\bxjsp@do +\def\bxjsp@do#1#2{% + \edef\bxjsp@tmpa{\string#1}% + \edef\bxjsp@tmpb{\meaning#1}% + \ifx\bxjsp@tmpa\bxjsp@tmpb #2\fi} +\bxjsp@do\kanjiskip{\let\bxjsp@engine=j} +\bxjsp@do\XeTeXversion{\let\bxjsp@engine=x} +\bxjsp@do\pdftexversion{\let\bxjsp@engine=p} +\bxjsp@do\luatexversion{\let\bxjsp@engine=l} +\newcommand*\pandocSkipLoadFile[1]{% + \expandafter\bxjsp@skip@load@file@a\csname ver@#1\endcsname{#1}} +\def\bxjsp@skip@load@file@a#1#2{% + \ifx#1\relax + \def#1{2001/01/01}% + \PackageInfo\bxjsp@pkgname + {File '#2' marked as loaded\@gobble}% + \fi} +\newcommand*\pandocSkipLoadPackage[1]{% + \pandocSkipLoadFile{#1.sty}} +\ifx\@IncludeInRelease\@undefined\else + \pandocSkipLoadPackage{fixltx2e} +\fi +\if j\bxjsp@engine + \pandocSkipLoadPackage{cmap} +\fi +\if j\bxjsp@engine \else + \PassOptionsToPackage{verbose=silent}{microtype} +\fi +\if j\bxjsp@engine + \pandocSkipLoadPackage{microtype} + \newcommand*\UseMicrotypeSet[2][]{} +\fi +\DeclareRobustCommand{\pandocLdots}{% + \relax\ifmmode \expandafter\bxjsp@org@ldots + \else \expandafter\bxjsp@ldots@a + \fi} +\def\bxjsp@ja@ellipsis{…} +\let\bxjsp@org@ldots\ldots +\def\bxjsp@ldots@a{% + \futurelet\bxjsp@tok\bxjsp@ldots@b} +\def\bxjsp@ldots@b{% + \ifx\bxjsp@tok\bgroup \expandafter\bxjsp@ldots@c + \else \expandafter\bxjsp@org@ldots + \fi} +\def\bxjsp@ldots@c{% + \afterassignment\bxjsp@ldots@d \let\bxjsp@tok=} +\def\bxjsp@ldots@d{% + \futurelet\bxjsp@tok\bxjsp@ldots@e} +\def\bxjsp@ldots@e{% + \ifx\bxjsp@tok\egroup \expandafter\bxjsp@ldots@f + \else \expandafter\bxjsp@ldots@g + \fi} +\def\bxjsp@ldots@f{% + \bxjsp@ja@ellipsis \let\bxjsp@tok=} +\def\bxjsp@ldots@g{% + \expandafter\bxjsp@org@ldots\expandafter{\romannumeral-`} } +\AtBeginDocument{% + \let\bxjsp@org@ldots\ldots + \let\ldots\pandocLdots} +\IfFileExists{bxpandola.sty}{% + \RequirePackage{bxpandola}\relax + \PackageInfo\bxjsp@pkgname + {PandoLa module is loaded\@gobble} +}{} +\endinput +%% +%% End of file `bxjspandoc.sty'. diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsreport.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsreport.cls index 945ae1331e4..de3554ba617 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsreport.cls +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsreport.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e} \ProvidesClass{bxjsreport} - [2017/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] %% このファイルは日本語文字を含みます. \def\bxjs@clsname{bxjsreport} \newif\ifjsc@needsp@tch @@ -1590,7 +1590,8 @@ {\if@slide .5\Cvs \@plus.3\Cdp \else \z@ \fi}% {\normalfont\normalsize\headfont}} \fi -\newcommand\jsParagraphMark{\jsJaChar{■}} +\newcommand\jsParagraphMark{\relax\jsJaChar{■}} +\let\bxjs@org@paragraph@mark\jsParagraphMark \ifx\bxjs@paragraph@mark\@empty \let\jsParagraphMark\@empty \else\ifx\bxjs@paragraph@mark\@undefined\else diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsslide.cls index 990ecdbbb3b..72d6b301fd9 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/09/09 v1.6 BXJS document classes] + [2017/09/24 v1.6a BXJS document classes] %% このファイルは日本語文字を含みます. \def\bxjs@clsname{bxjsslide} \newif\ifjsc@needsp@tch @@ -1485,7 +1485,8 @@ {\if@slide .5\Cvs \@plus.3\Cdp \else \z@ \fi}% {\normalfont\normalsize\headfont}} \fi -\newcommand\jsParagraphMark{\jsJaChar{■}} +\newcommand\jsParagraphMark{\relax\jsJaChar{■}} +\let\bxjs@org@paragraph@mark\jsParagraphMark \ifx\bxjs@paragraph@mark\@empty \let\jsParagraphMark\@empty \else\ifx\bxjs@paragraph@mark\@undefined\else -- cgit v1.2.3