diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls index 001b6957c3b..af37716f58e 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls @@ -37,7 +37,7 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{bxjsarticle} - [2015/08/23 v1.0a BXJS document classes] + [2015/09/07 v1.0b BXJS document classes] \RequirePackage{calc} \RequirePackage{keyval} \let\jsEngine=n @@ -304,8 +304,14 @@ \bxjs@disguise@jstrue} \def\bxjs@setkey{% \expandafter\bxjs@setkey@a\expandafter{\CurrentOption}} -\def\bxjs@setkey@a{\setkeys{bxjs}} +\def\bxjs@setkey@a{\bxjs@safe@setkeys{bxjs}} \DeclareOption*{\bxjs@setkey} +\def\bxjs@safe@setkeys#1#2{% + \let\bxjs@KV@errx\KV@errx + \let\KV@errx\bxjs@safe@setkeys@a + \setkeys{#1}{#2}% + \let\KV@errx\bxjs@KV@errx} +\def\bxjs@safe@setkeys@a#1{} \newif\ifbxjs@scaleset \def\jsScale{0.924715} \def\Cjascale{\jsScale} @@ -349,11 +355,11 @@ {Invalid magstyle value `#1'}\@ehc \let\bxjs@magstyle\bxjs@magstyle@mag \fi} -\let\ltx@removeelement\@removeelement +\let\bxjs@ltx@removeelement\@removeelement \def\@removeelement#1#2#3{% \def\reserved@a{#2}% \ifx\reserved@a\@empty \let#3\@empty - \else \ltx@removeelement{#1}{#2}{#3}% + \else \bxjs@ltx@removeelement{#1}{#2}{#3}% \fi} \ExecuteOptions{a4paper,oneside,onecolumn,notitlepage,final} \ProcessOptions\relax @@ -361,6 +367,9 @@ {papersize}\@classoptionslist\@classoptionslist \@expandtwoargs\@removeelement {10pt}\@classoptionslist\@classoptionslist +\ifx\bxjs@jadriver\relax\else + \let\bxjs@jadriver@given\bxjs@jadriver +\fi \let\bxjs@tmpb\jsEngine \ifx j\bxjs@tmpb\ifjsWithupTeX \let\bxjs@tmpb=u @@ -401,8 +410,9 @@ \fi \ifjsInPdfMode \@tempswafalse \else\ifx x\jsEngine \@tempswafalse +\else\ifx\bxjs@jadriver@given\@undefined \@tempswafalse \else \@tempswatrue -\fi\fi +\fi\fi\fi \if@tempswa \ifx\bxjs@driver@opt\@undefined \ClassWarningNoLine\bxjs@clsname @@ -423,7 +433,7 @@ \let\bxjs@jadriver\bxjs@@minimal \fi \fi -\ifx\bxjs@jadriver\bxjs@@minimal\else +\ifx\bxjs@jadriver@given\@undefined\else \ifx\bxjs@engine@given\@undefined \ClassError\bxjs@clsname% {An engine option must be explicitly given}% @@ -568,7 +578,10 @@ \skip2=\abovedisplayshortskip \skip4=\belowdisplayskip \skip6=\belowdisplayshortskip + \let\bxjs@ltx@nomath\@nomath + \let\@nomath\@gobble \@currsize\selectfont + \let\@nomath\bxjs@ltx@nomath \abovedisplayskip=\skip0 \abovedisplayshortskip=\skip2 \belowdisplayskip=\skip4 @@ -1193,8 +1206,11 @@ \renewcommand{\theenumii}{\@alph\c@enumii} \renewcommand{\theenumiii}{\@roman\c@enumiii} \renewcommand{\theenumiv}{\@Alph\c@enumiv} +\def\bxjs@dust{\vrule\@width\z@\@height\z@\@depth\z@} +\newcommand*{\jsInJaParen}[1]{% + \bxjs@dust\jsInhibitGlue(\theenumii)\jsInhibitGlue\bxjs@dust} \newcommand{\labelenumi}{\theenumi.} -\newcommand{\labelenumii}{\jsInhibitGlue(\theenumii)\jsInhibitGlue} +\newcommand{\labelenumii}{\jsInJaParen{(\theenumii)}} \newcommand{\labelenumiii}{\theenumiii.} \newcommand{\labelenumiv}{\theenumiv.} \renewcommand{\p@enumii}{\theenumi} |