diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-07 21:21:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-07 21:21:12 +0000 |
commit | 0f8db6b48459d4fbfa7497448127e65515a2e195 (patch) | |
tree | 41a65e78c2c5ea9438c8e834cab193a35e6b9703 /Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def | |
parent | 5c122b3fd45bd3b2708e3fc0927e84243d548709 (diff) |
bxjscls (7sep20)
git-svn-id: svn://tug.org/texlive/trunk@56285 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def | 63 |
1 files changed, 62 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def index ec3339effc2..924e9491282 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsja-pandoc.def @@ -21,7 +21,7 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) \ProvidesFile{bxjsja-pandoc.def} - [2020/05/28 v2.1 BXJS document classes] + [2020/09/04 v2.2 BXJS document classes] \input{bxjsja-standard.def} \RequirePackage{bxjspandoc} \@onlypreamble\bxjs@endpreamble@hook @@ -30,6 +30,24 @@ \RequirePackage{etoolbox}[2010/08/21]% v2.0 \AtEndPreamble{\bxjs@endpreamble@hook} \fi +\newif\ifbxjs@jp@fix@strong \bxjs@jp@fix@strongtrue +\let\bxjs@kv@fixstrong@true\bxjs@jp@fix@strongtrue +\let\bxjs@kv@fixstrong@false\bxjs@jp@fix@strongfalse +\define@key{bxjsPan}{fix-strong}[true]{% + \bxjs@set@keyval{fixstrong}{#1}{}} +\newif\ifbxjs@jp@fix@code \bxjs@jp@fix@codetrue +\let\bxjs@kv@fixcode@true\bxjs@jp@fix@codetrue +\let\bxjs@kv@fixcode@false\bxjs@jp@fix@codefalse +\define@key{bxjsPan}{fix-code}[true]{% + \bxjs@set@keyval{fixcode}{#1}{}} +\chardef\bxjs@jp@strong=0 +\def\bxjs@kv@strong@bold{\chardef\bxjs@jp@strong=0 } +\def\bxjs@kv@strong@sans{\chardef\bxjs@jp@strong=1 } +\def\bxjs@kv@strong@boldsans{\chardef\bxjs@jp@strong=2 } +\define@key{bxjsPan}{strong}{% + \bxjs@set@keyval{strong}{#1}{}} +\def\bxjs@next#1{\bxjs@safe@setkeys{bxjsPan}{#1}} +\expandafter\bxjs@next\expandafter{\jsJaParam} \@onlypreamble\bxjs@set@dupload@proc \def\bxjs@set@dupload@proc#1{% \expandafter\bxjs@set@dupload@proc@a\csname bxjs@dlp/#1\endcsname} @@ -179,6 +197,49 @@ \else \bxjs@fix@hyperref@unicode{true} \fi +\ifbxjs@jp@fix@strong\ifbxjs@jp@strong@cmd + \let\orgtextbf\textbf + \DeclareRobustCommand\bxjstextbf[1]{% + \begingroup + \let\textbf\orgtextbf + \strong{#1}% + \endgroup}% + \g@addto@macro\bxjs@begin@document@hook{% + \let\textbf\bxjstextbf} +\fi\fi +\jsAtEndOfClass{% + \ifx\strongfontdeclare\@undefined\else + \ifcase\bxjs@jp@strong + \or \strongfontdeclare{\sffamily}% + \or \strongfontdeclare{\sffamily\bfseries}% + \fi + \fi} +\ifbxjs@jp@fix@code + \chardef\bxjs@eghost@c=23 + \ifx j\jsEngine \xspcode\bxjs@eghost@c=3 + \else\ifx l\jsEngine \ltjsetparameter{alxspmode={\bxjs@eghost@c,3}} + \else\ifx x\jsEngine %no-op + \else \let\bxjs@eghost@c\@undefined + \fi\fi\fi + \ifx\bxjs@eghost@c\@undefined\else + \font\bxjs@eghost@f=ec-lmr10 at 1.23456pt + \def\bxjs@pan@eghost{\bxjs@eghost@f\bxjs@eghost@c} + \let\orgtexttt\texttt + \DeclareRobustCommand\bxjstexttt[1]{% + \ifmmode \nfss@text{\ttfamily #1}% + \else + \ifvmode \leavevmode \fi + \bxjs@pan@eghost\null + \begingroup \ttfamily #1\endgroup + \null\bxjs@pan@eghost + \fi} + \g@addto@macro\bxjs@begin@document@hook{% + \let\texttt\bxjstexttt} + \expandafter\def\expandafter\verb\expandafter{% + \expandafter\bxjs@pan@eghost\verb} + \g@addto@macro\verb@egroup{\bxjs@pan@eghost} + \fi +\fi \endinput %% %% End of file `bxjsja-pandoc.def'. |