summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls')
-rw-r--r--Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls25
1 files changed, 23 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls
index 9f8d2cd91d4..60b2e4064c3 100644
--- a/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls
+++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls
@@ -37,7 +37,7 @@
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{bxjsbook}
- [2016/05/01 v1.1c BXJS document classes]
+ [2016/05/28 v1.1e BXJS document classes]
%% このファイルは日本語文字を含みます
\RequirePackage{calc}
\RequirePackage{keyval}
@@ -337,6 +337,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}}
@@ -914,7 +923,17 @@
\let\chaptermark\@gobble
\let\sectionmark\@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
@@ -980,6 +999,7 @@
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
+ \bxjs@annihilate@subtitle
}%
\else
\newcommand{\maketitle}{\par
@@ -1014,6 +1034,7 @@
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
+ \bxjs@annihilate@subtitle
}
\def\@maketitle{%
\newpage\null