ClassicThesis 目录标题

ClassicThesis 目录标题

为什么目录中的标题在\normalfont,而文档的其余部分不在\spacedlowsmallcaps?我该怎么做\spacedlowsmallcaps

\documentclass[%
                headinclude,%
                footinclude,%
                10pt,%
%               openany%
                ]{scrbook}

\usepackage[%
            pdfspacing%
            ]{classicthesis}

\begin{document}
\pagestyle{scrheadings}
\tableofcontents
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\chapter{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\section{graphic test}
\end{document}

最后我使用了以下内容:

\renewcommand*{\tocbasic@listhead}[1]{%
  \@ifundefined{tocbasic@listhead@\@currext}{%
    \begingroup\expandafter\expandafter\expandafter\endgroup
    \expandafter\ifx\csname chapter\endcsname\relax
      \expandafter\def\csname tocbasic@listhead@\@currext\endcsname##1{%
        \iftocfeature{\@currext}{leveldown}{%
          \iftocfeature{\@currext}{numbered}{%
            \subsection[##1]{##1}%
          }{%
            \subsection*{##1}%
            \ifx\@mkboth\@gobbletwo\else\markright{\spacedlowsmallcaps{##1}}\fi
            \iftocfeature{\@currext}{totoc}{%
              \addcontentsline{toc}{subsection}{##1}%
            }{}%
          }%
        }{%
          \iftocfeature{\@currext}{numbered}{%
            \section[##1]{##1}%
          }{%
            \section*{##1}%
            \@mkboth{\spacedlowsmallcaps{##1}}{\spacedlowsmallcaps{##1}}%
            \iftocfeature{\@currext}{totoc}{%
              \addcontentsline{toc}{section}{##1}%
            }{}%
          }%
        }%
      }%
    \else
      \expandafter\def\csname tocbasic@listhead@\@currext\endcsname##1{%
        \iftocfeature{\@currext}{leveldown}{%
          \iftocfeature{\@currext}{numbered}{%
            \section{##1}%
          }{%
            \section*{##1}%
            \iftocfeature{\@currext}{totoc}{%
              \addcontentsline{toc}{section}{##1}%
            }{}%
            \ifx\@mkboth\@gobbletwo\else\markright{\spacedlowsmallcaps{##1}}\fi
          }%
        }{%
          \iftocfeature{\@currext}{numbered}{%
            \chapter[##1]{##1}%
          }{%
            \chapter*{##1}%
            \@mkboth{\spacedlowsmallcaps{##1}}{\spacedlowsmallcaps{##1}}%
            \iftocfeature{\@currext}{totoc}{%
              \addcontentsline{toc}{chapter}{##1}%
            }{}%
          }%
        }%
      }%
    \fi
  }{}%
  \csname tb@@beforehead@hook\endcsname
  \csname tb@\@currext @beforehead@hook\endcsname
  \csname tocbasic@listhead@\@currext\endcsname{#1}%
  \csname tb@\@currext @afterhead@hook\endcsname
  \csname tb@@afterhead@hook\endcsname
}

答案1

这个补丁似乎给出了预期的结果;它也适用于图表和表格的列表。

\documentclass[ 
  headinclude, 
  footinclude,%
  10pt,%
%  openany%
 ]{scrbook}

\usepackage[
  pdfspacing 
 ]{classicthesis}

\usepackage{regexpatch}
\makeatletter
\xpatchcmd*{\tocbasic@listhead}{\MakeMarkcase}{\spacedlowsmallcaps}{}{}
\makeatother

\pagestyle{scrheadings}

\begin{document}
\tableofcontents
...

在此处输入图片描述

您还可以尝试以下操作:

\renewcommand{\MakeMarkcase}[1]{\spacedlowsmallcaps{#1}}

相关内容