diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls index 182179aaaa2..a7624dd6bca 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/03/14 v1.5a BXJS document classes] + [2017/04/01 v1.5b BXJS document classes] %% このファイルは日本語文字を含みます. \RequirePackage{calc} \RequirePackage{keyval} @@ -264,16 +264,23 @@ \newif\if@jslogo \@jslogofalse \DeclareOption{jslogo}{\@jslogotrue} \DeclareOption{nojslogo}{\@jslogofalse} -\mathchardef\bxjs@csta=259 +\mathchardef\bxjs@isc@ll=128 +\mathchardef\bxjs@isc@sl=259 +\def\bxjs@isc@sl@h{65539 } \def\bxjs@invscale#1#2{% \begingroup \@tempdima=#1\relax \@tempdimb#2\p@\relax - \@tempcnta\@tempdima \multiply\@tempcnta\@cclvi - \divide\@tempcnta\@tempdimb \multiply\@tempcnta\@cclvi + \ifdim\@tempdima<\bxjs@isc@ll\p@ + \@tempcnta\@tempdima \multiply\@tempcnta\@cclvi + \divide\@tempcnta\@tempdimb \multiply\@tempcnta\@cclvi + \else + \@tempcnta\@tempdima \divide\@tempcnta\@tempdimb + \multiply\@tempcnta\p@ \let\bxjs@isc@sl\bxjs@isc@sl@h + \fi \@tempcntb\p@ \divide\@tempcntb\@tempdimb \advance\@tempcnta-\@tempcntb \advance\@tempcnta-\tw@ \@tempdimb\@tempcnta\@ne \advance\@tempcnta\@tempcntb \advance\@tempcnta\@tempcntb - \advance\@tempcnta\bxjs@csta \@tempdimc\@tempcnta\@ne + \advance\@tempcnta\bxjs@isc@sl \@tempdimc\@tempcnta\@ne \@whiledim\@tempdimb<\@tempdimc\do{% \@tempcntb\@tempdimb \advance\@tempcntb\@tempdimc \advance\@tempcntb\@ne \divide\@tempcntb\tw@ @@ -321,9 +328,11 @@ \let\bxjs@driver@@dvipdfmx=1 \let\bxjs@driver@@pdfmode=2 \let\bxjs@driver@@xetex=3 +\let\bxjs@driver@@dvips=4 +\let\bxjs@driver@@none=5 \DeclareOption{dvips}{% \def\bxjs@driver@opt{dvips}% - \let\bxjs@driver@given\bxjs@driver@@dvimode} + \let\bxjs@driver@given\bxjs@driver@@dvips} \DeclareOption{dviout}{% \def\bxjs@driver@opt{dviout}% \let\bxjs@driver@given\bxjs@driver@@dvimode} @@ -333,6 +342,9 @@ \DeclareOption{dvipdfmx}{% \def\bxjs@driver@opt{dvipdfmx}% \let\bxjs@driver@given\bxjs@driver@@dvipdfmx} +\DeclareOption{nodvidriver}{% + \def\bxjs@driver@opt{nodvidriver}% + \let\bxjs@driver@given\bxjs@driver@@none} \DeclareOption{pdftex}{% \def\bxjs@driver@opt{pdftex}% \let\bxjs@driver@given\bxjs@driver@@pdfmode} @@ -467,9 +479,10 @@ \bxjs@set@keyval{fancyhdr}{#1}{}} \newif\ifbxjs@dvi@opt \let\bxjs@dvidriver@@dvipdfmx=\bxjs@driver@@dvipdfmx -\let\bxjs@dvidriver@@dvips=\bxjs@driver@@dvimode +\let\bxjs@dvidriver@@dvips=\bxjs@driver@@dvips \let\bxjs@dvidriver@@dviout=\bxjs@driver@@dvimode \let\bxjs@dvidriver@@xdvi=\bxjs@driver@@dvimode +\let\bxjs@dvidriver@@nodvidriver=\bxjs@driver@@none \define@key{bxjs}{dvi}{% \expandafter\let\expandafter\bxjs@tmpa\csname bxjs@dvidriver@@#1\endcsname @@ -497,6 +510,10 @@ \let\bxjs@kv@wholezwlines@true\bxjs@whole@zw@linestrue \let\bxjs@kv@wholezwlines@false\bxjs@whole@zw@linesfalse \define@key{bxjs}{whole-zw-lines}{\bxjs@set@keyval{wholezwlines}{#1}{}} +\newif\ifbxjs@xkanjiskip@cmd \bxjs@xkanjiskip@cmdtrue +\let\bxjs@kv@xkanjiskipcmd@true\bxjs@xkanjiskip@cmdtrue +\let\bxjs@kv@xkanjiskipcmd@false\bxjs@xkanjiskip@cmdfalse +\define@key{bxjs}{xkanjiskip-cmd}{\bxjs@set@keyval{xkanjiskipcmd}{#1}{}} \newif\ifbxjs@hyperref@enc \bxjs@hyperref@enctrue \let\bxjs@kv@hyperrefenc@true\bxjs@hyperref@enctrue \let\bxjs@kv@hyperrefenc@false\bxjs@hyperref@encfalse @@ -615,6 +632,9 @@ \g@addto@macro\@classoptionslist{,dvipdfmx} \fi\fi \fi +\ifx\bxjs@driver@given\bxjs@driver@@none + \bxjs@papersizefalse +\fi \def\bxjs@@minimal{minimal} \ifx\bxjs@jadriver\relax \ifx j\jsEngine @@ -947,7 +967,9 @@ \ifbxjs@papersize \ifx\bxjs@driver@given\bxjs@driver@@dvipdfmx \PassOptionsToPackage{dvipdfm}{geometry} - \fi + \else\ifx\bxjs@driver@given\bxjs@driver@@dvimode + \PassOptionsToPackage{dvipdfm}{geometry} + \fi\fi \let\bxPapersizeSpecialDone=t \else \PassOptionsToPackage{driver=none}{geometry} |