diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls b/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls index ed06d493e4e..a107f3a6f74 100644 --- a/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls +++ b/Master/texmf-dist/tex/latex/bxjscls/bxjsbook.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e} \ProvidesClass{bxjsbook} - [2024/01/22 v2.9b BXJS document classes] + [2024/07/19 v2.9c BXJS document classes] %% このファイルは日本語文字を含みます. \def\bxjs@clsname{bxjsbook} \newif\ifjsc@needsp@tch @@ -1467,6 +1467,12 @@ \let\chaptermark\@gobble \let\sectionmark\@gobble } +\let\bxjs@phantomsection\relax +\g@addto@macro\bxjs@begin@document@hook{% + \@ifpackageloaded{hyperref}{% + \let\bxjs@phantomsection\phantomsection + }{}% +} \newcommand*{\jsSubtitle}[1]{\gdef\bxjs@subtitle{#1}} \renewcommand*{\title}[1]{\bxjs@decl@subtitle\gdef\@title{#1}} \g@addto@macro\bxjs@begin@document@hook{\bxjs@decl@subtitle} @@ -2302,8 +2308,9 @@ \fi \columnseprule.4pt \columnsep 2\jsZw \ifx\multicols\@undefined - \twocolumn[\@makeschapterhead{\indexname}% - \addcontentsline{toc}{chapter}{\indexname}]% + \twocolumn[\bxjs@phantomsection + \addcontentsline{toc}{chapter}{\indexname}% + \@makeschapterhead{\indexname}]% \else \ifdim\textwidth<\fullwidth \setlength{\evensidemargin}{\oddsidemargin} |