summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls')
-rw-r--r--Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls25
1 files changed, 23 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsarticle.cls
index 6a592e42ed4..5c56383c0ec 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}
- [2016/05/01 v1.1c BXJS document classes]
+ [2016/05/28 v1.1e BXJS document classes]
%% このファイルは日本語文字を含みます
\RequirePackage{calc}
\RequirePackage{keyval}
@@ -333,6 +333,15 @@
\bxjs@simplejasetupfalse}
\DeclareOption{simplejasetup}{%
\bxjs@simplejasetuptrue}
+\newif\ifbxjs@bigcode \bxjs@bigcodefalse
+\edef\bxjs@tmpa{\expandafter\noexpand\csname\endcsname}
+\def\bxjs@tmpb#1 #2#3\@nil{%
+ \ifx1#2\bxjs@bigcodetrue \fi}
+\expandafter\bxjs@tmpb\meaning\bxjs@tmpa1 0\@nil
+\DeclareOption{nobigcode}{%
+ \bxjs@bigcodefalse}
+\DeclareOption{bigcode}{%
+ \bxjs@bigcodetrue}
\def\bxjs@setkey{%
\expandafter\bxjs@setkey@a\expandafter{\CurrentOption}}
\def\bxjs@setkey@a{\bxjs@safe@setkeys{bxjs}}
@@ -911,7 +920,17 @@
\let\sectionmark\@gobble
\let\subsectionmark\@gobble
}
-\newcommand*{\subtitle}[1]{\gdef\bxjs@subtitle{#1}}
+\newcommand*{\jsSubtitle}[1]{\gdef\bxjs@subtitle{#1}}
+\renewcommand*{\title}[1]{\bxjs@decl@subtitle\gdef\@title{#1}}
+\AtBeginDocument{\bxjs@decl@subtitle}
+\def\bxjs@decl@subtitle{%
+ \global\let\bxjs@decl@subtitle\relax
+ \ifx\subtitle\@undefined
+ \global\let\subtitle\jsSubtitle
+ \fi}
+\def\bxjs@annihilate@subtitle{%
+ \ifx\subtitle\jsSubtitle \global\let\subtitle\relax \fi
+ \global\let\jsSubtitle\relax}
\def\plainifnotempty{%
\ifx \@oddhead \@empty
\ifx \@oddfoot \@empty
@@ -977,6 +996,7 @@
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
+ \bxjs@annihilate@subtitle
}%
\else
\newcommand{\maketitle}{\par
@@ -1011,6 +1031,7 @@
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
+ \bxjs@annihilate@subtitle
}
\def\@maketitle{%
\newpage\null