有没有办法在 Tufte 课程的章节号前插入常见的“章节”,例如“第 1 章”等?
答案1
由于tufte
课程使用titlesec
\titleformat
包中,所需要的只是对for进行小幅修改\chapter
以包含\chaptertitlename
(原始定义可以在文件中找到tufte-common.def
):
\documentclass{tufte-book}
\makeatletter
\titleformat{\chapter}%
[display]% shape
{\relax\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\begin{fullwidth}}{}}% format applied to label+text
{\itshape\huge\chaptertitlename~\thechapter}% label
{0pt}% horizontal separation between label and title body
{\huge\rmfamily\itshape}% before the title body
[\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\end{fullwidth}}{}]% after the title body
\makeatother
\setcounter{secnumdepth}{1}
\begin{document}
\chapter{Test Chapter}
\end{document}