
對於我的論文,我使用scrreprt
文檔類別。問題是,使用這個文件類,您被迫為每個單獨的附錄使用章節(因此附錄 A、B 等)。由於我的章節標題佔用了很多空間(我喜歡KOMA-Script 提供的雙行標題,其中第一行是“第1 章”,第二行是標題),因此我得到了冗長的附錄,並且字體區域相對較小,因為大標題。
我想要的是為我的附錄創建較小的標題,同時仍保留 A、B、C 等編號。兩種方法之一會很好:
- 用於
\section
代替\chapter
附錄。因此,在我的附錄中使用較小的排版章節標題。目前我無法做到這一點,當我使用部分時,我的編號從 A、B、C 等切換到 .1、.2、.3,這顯然不是我想要的。 - 手動調整附錄的章節標題。 KOMA-Script 似乎有這方面的選項(特別是
headings=onelineappendix
),但它為整個文件設定了標題。即更改此選項意味著正文章節標題和附錄的單行標題(這顯然不是我想要的)。
我希望任何人都可以幫助我實現這兩種方法之一。
答案1
您可以headings=twolinechapter
結合headings=onelineappendix
\documentclass[
headings=twolinechapter, % or chapterprefix=true
headings=onelineappendix % or appendixprefix=true
]{scrreprt}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\blinddocument
\blinddocument
\appendix
\blinddocument
\blinddocument
\end{document}
如果附錄中的章節標題應與節標題具有相同的大小,您可以使用
\documentclass[
headings=twolinechapter% or chapterprefix=true
]{scrreprt}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\blinddocument
\blinddocument
\appendix
\setkomafont{chapter}{\usekomafont{section}}
\blinddocument
\blinddocument
\end{document}