我正在使用课程完成我的论文 LaTeX 文档的设置scrreprt
。
我正在尝试添加最后的润色,包括。现在我希望它在标题“首字母缩略词列表”方面List of Acronyms
看起来与 的样式完全相同。我已经设法通过使用 来实现这一点,即它使用章节样式而不打印章节页面,问题就在这里出现,当我这样做时,页码会自动切换为;我希望 LoA 位于前言中,而前言应该全部采用页码。ToC
\chapter*{List of Acronyms}
arabic
roman
我怎样才能对标题使用与章节*字体完全相同的样式(也可以将其从目录中省略,这样没问题),而不会丢失罗马页码?
以下是我的 MWE,其中包含首字母缩略词 (边注如果有人能给我推荐一篇解释如何自定义\printacronyms
格式的帖子,我将非常感激)。
\documentclass[
bibliography=totoc,
headings=big,
captions=tableheading,
chapterprefix=true% like in standard class "report"
]{scrreprt}
\usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{minitoc}
\usepackage{setspace}
\usepackage{lmodern}
\usepackage{notoccite}
\usepackage{acro}
\usepackage{hyperref}
\setcounter{secnumdepth}{3} % number subsubsections
\setcounter{tocdepth}{3} % list subsubsections
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ACRONYM DEFINITION
\DeclareAcronym{pwr}{
short = PWR ,
short-plural = s ,
long = Pressurised Water Reactor ,
long-plural = s ,
class = reactors ,
}
\begin{document}
\pagenumbering{roman}
\cleardoublepage
\dominitoc
\pdfbookmark[1]{Contents}{}
\tableofcontents
\cleardoublepage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LIST OF ACRONYMS
\chapter*{List of Acronyms}
\addcontentsline{toc}{section}{List of Acronyms}
\printacronyms[include-classes=reactors,name=Reactor Acronyms]
\pagestyle{headings}
\pagenumbering{arabic}
%%%%%%%%%%%%%% Chapter Style Controls
\addtokomafont{chapterprefix}{\raggedleft \linespread{1}}
\addtokomafont{chapter}{\fontsize{35}{30}\selectfont}
\addtokomafont{section}{\fontsize{20}{11}\selectfont}
\addtokomafont{subsection}{\fontsize{18}{11}\selectfont}
\addtokomafont{subsubsection}{\fontsize{16}{11}\selectfont}
\renewcommand*{\chapterformat}{%
\mbox{\scalebox{0.80}{\chapappifchapterprefix{\nobreakspace}}%
\scalebox{2.5}{\color{gray}\thechapter\autodot}\enskip}}
\chapter{Testing}
Pasting an acronym \ac{pwr}
\end{document}
答案1
在 之后添加\clearpage
(或\cleardoublepage
)命令\printacronyms
;否则\pagenumbering{arabic}
将太快生效。
作为斯佩拉韦在他的评论中提到,KOMA 课程scrbook
和scrreprt
优惠\addchap
(以及带星号的版本\addchap*
),可以生成未编号的章节,这些章节显示在目录和运行标题中(带星号的版本不会显示在标题中),因此
\chapter*{List of Acronyms}
\addcontentsline{toc}{chapter}{List of Acronyms}
你可以简单地使用,例如,
\addchap{List of Acronyms}
代码:
\documentclass[
bibliography=totoc,
headings=big,
captions=tableheading,
chapterprefix=true% like in standard class "report"
]{scrreprt}
\usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{minitoc}
\usepackage{setspace}
\usepackage{lmodern}
\usepackage{notoccite}
\usepackage{acro}
\usepackage{hyperref}
\setcounter{secnumdepth}{3} % number subsubsections
\setcounter{tocdepth}{3} % list subsubsections
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ACRONYM DEFINITION
\DeclareAcronym{pwr}{
short = PWR ,
short-plural = s ,
long = Pressurised Water Reactor ,
long-plural = s ,
class = reactors ,
}
\begin{document}
\pagenumbering{roman}
\cleardoublepage %<- seems not necessary
\dominitoc
\pdfbookmark[1]{Contents}{}
\tableofcontents
\cleardoublepage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LIST OF ACRONYMS
%\chapter*{List of Acronyms}
%\addcontentsline{toc}{chapter}{List of Acronyms}
\addchap{List of Acronyms}
\printacronyms[include-classes=reactors,name=Reactor Acronyms]
\clearpage
\pagestyle{headings}
\pagenumbering{arabic}
%%%%%%%%%%%%%% Chapter Style Controls
\addtokomafont{chapterprefix}{\raggedleft \linespread{1}}
\addtokomafont{chapter}{\fontsize{35}{30}\selectfont}
\addtokomafont{section}{\fontsize{20}{11}\selectfont}
\addtokomafont{subsection}{\fontsize{18}{11}\selectfont}
\addtokomafont{subsubsection}{\fontsize{16}{11}\selectfont}
\renewcommand*{\chapterformat}{%
\mbox{\scalebox{0.80}{\chapappifchapterprefix{\nobreakspace}}%
\scalebox{2.5}{\color{gray}\thechapter\autodot}\enskip}}
\chapter{Testing}
Pasting an acronym \ac{pwr}
\end{document}
部分7.3. 关于列表的选项软件包 decumentation 对列表的选项和定制有一些解释。