我正在写一篇论文scrbook
,论文的主要部分后面会有一个附录,然后是参考书目。在目录中,参考书目条目的格式与其他章节相同,这使其看起来像是附录的一部分,但事实并非如此。
所以我想格式化条目参考书目就像附录(字体较大并且附录章节之间有一定的间距)。
下图显示了TOC
示例所生成的图像,基本上就是它目前的样子。
\documentclass[a4paper,fontsize=12pt]{scrbook}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setmainfont{Latin Modern Roman}
\setkomafont{sectioning}{\bfseries\rmfamily}
% bibliography entry
\begin{filecontents*}{\jobname.bib}
@Article{dummy22,
author = {C. Dummy},
title = {How to cite},
journal = {Citing for dummies},
year = {2022},
}
\end{filecontents*}
% bibliography settings
\usepackage[style=numeric-comp,backend=biber]{biblatex}
\addbibresource{\jobname.bib}
% list of symbols
\usepackage[automake, nonumberlist, nogroupskip, symbols]{glossaries-extra}
\makeglossaries
\glsxtrnewsymbol[description={The letter A.}]{letterA}{A}
% Main document
\begin{document}
% TOC + Symbols
\pagenumbering{Roman}
\tableofcontents
\printunsrtglossary[title=Symbols,type=symbols]
\clearpage
% Content of document
\pagenumbering{arabic}
\chapter{Introduction}
\chapter{Literature Review}
\chapter{Theory}
\section{Theory of Something}
\section{Other Theories}
\chapter{Experiment}
\section{Calibration}
\section{Measurement 1}
\section{Measurement 2}
\chapter{Summary}
\appendix
\addcontentsline{toc}{part}{Appendix}
\chapter{Some Code}
\chapter{Numerical Parameters}
\nocite{*}
\printbibliography[heading=bibintoc]
\end{document}
答案1
答案2
只有很小的变化。
\documentclass[a4paper,fontsize=12pt]{scrbook}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setmainfont{Latin Modern Roman}
\setkomafont{sectioning}{\bfseries\rmfamily}
% bibliography entry
\begin{filecontents*}{\jobname.bib}
@Article{dummy22,
author = {C. Dummy},
title = {How to cite},
journal = {Citing for dummies},
year = {2022},
}
\end{filecontents*}
% bibliography settings
\usepackage[style=numeric-comp,backend=biber]{biblatex}
\addbibresource{\jobname.bib}
% list of symbols
\usepackage[automake, nonumberlist, nogroupskip, symbols]{glossaries-extra}
\makeglossaries
\glsxtrnewsymbol[description={The letter A.}]{letterA}{A}
% Main document
\begin{document}
% TOC + Symbols
\pagenumbering{Roman}
\tableofcontents
\printunsrtglossary[title=Symbols,type=symbols]
\clearpage
% Content of document
\pagenumbering{arabic}
\chapter{Introduction}
\chapter{Literature Review}
\chapter{Theory}
\section{Theory of Something}
\section{Other Theories}
\chapter{Experiment}
\section{Calibration}
\section{Measurement 1}
\section{Measurement 2}
\chapter{Summary}
\chapter{Bibliography}
\nocite{*}
\printbibliography[heading=none]
\appendix
\addcontentsline{toc}{part}{Appendix}
\chapter{Some Code}
\chapter{Numerical Parameters}
\end{document}
或者如果你想在最后显示参考书目,可以part
使用类似这样的字体
\cleardoublepage
\addcontentsline{toc}{part}{\bibname}
\chapter*{\huge \bibname}
\nocite{*}
\printbibliography[heading=none]
\cleardoublepage
需要使参考书目出现在目录中的第 15 页。否则它将显示第 13 页。