我目前正在修改代尔夫特理工大学 (TUD) 的论文模板 (找到这里) 来满足我的需求。除了章节之外,我还会包含部分。TUD 模板的引用假设它是章节中的一个部分,但是,我希望它是部分中的一个章节(没有编号)。
我面临的问题如下:
\chapter{References}
\begingroup
%\renewcommand{\chapter}[2]{}
\renewcommand{\section}[2]{}
% To remove the section title
% that \references automatically makes
\bibliographystyle{unsrt}
\references{bibliography/dispReferences}
\endgroup
这给了我章节“# 参考”,标题名称将位于该章节页面的右上角/左上角。但是,使用
\chapter*{References}
还将从该章页面的右上角/左上角删除章节标题,并将其替换为上一章的章节标题。
.cls 文件中对应的 \references 部分如下
%% Create an unnumbered reference section.
\addto\captionsenglish{\renewcommand*\bibname{\color{title}References}}
\newcommand*\references[1]{%
\bibliographystyle{dissertation}%
\bibliography{#1}%
}
除此之外,TUD 模板还会在每章的页面上印上章节号的小指纹。使用上述代码(即带有编号的章节)时,不会相应地打印参考章节号。当有参考章节号时,它会跳转到“0”,而它应该是“5”。
这些重击印记的创作过程如下
%% The lthumb command prints the current chapter number in a thumb index on the
%% left (even) page.
\newcommand*\lthumb{%
\ifthumb%
\begin{tikzpicture}[remember picture,overlay]
\coordinate (top margin) at (0pt,1in+\topmargin+\headheight+\headsep);
\coordinate (left margin) at (1in+\evensidemargin,0pt);
%% Calculate the corners of the thumb index based on the current
%% chapter number.
\coordinate (top left) at ($(current page.north west)-(top margin)-(0pt,\value{chapter}\thumbvspace-\thumbvspace)$);
\coordinate (bottom right) at ($(top left)+(left margin)-(\thumbhspace,\thumbheight)$);
%% Shift the left edge to prevent the rounded corner from showing.
\coordinate (top left) at ($(top left)-(\thumbedge,0pt)$);
%% Draw the thumb index.
\fill[fill=thumb,rounded corners=\thumbedge](top left) rectangle (bottom right);
%% Print the chapter number at the center right in the thumb index.
\coordinate (center right) at ($(bottom right)+(0pt,0.5\thumbheight)$);
\node at (center right)[anchor=east,inner sep=2\thumbedge]{
\titlefont\bfseries\color{usc-black}
\fontsize{0.75\thumbheight}{0.75\thumbheight}\selectfont
\thechapter
};
\end{tikzpicture}%
\fi%
}
我在这个问题上花了相当多的时间,因此非常感谢大家的帮助!
答案1
使用像我这样的现代工具biblatex
,我甚至看不到任何报告的问题。由于缺乏最小工作示例,我无法重现任何问题,也无法理解任何陈述。
以下内容非常完美。未编号的章节包含部分参考书目。
\RequirePackage{scrlfile}
\PreventPackageFromLoading{natbib}
\documentclass[whitelogo]{tudelft-report}
\usepackage[style=numeric-comp]{biblatex}
\addbibresource{biblatex-examples.bib}
\usepackage{changes}
\begin{document}
%% Use Roman numerals for the page numbers of the title pages and table of
%% contents.
\frontmatter
%% Uncomment following 19 lines for a cover with a picture on the lower half only
%\title[tudelft-white]{Title}
%\subtitle[tudelft-cyan]{Optional subtitle}
%\author[tudelft-white]{J.\ Random Author}
%\affiliation{Technische Universiteit Delft}
%\coverimage{cover.jpg}
%\titleoffsetx{10cm}
%\titleoffsety{10cm}
%\afiloffsetx{1cm}
%\afiloffsety{18cm}
%\covertext[tudelft-white]{
% \textbf{Cover Text} \\
% possibly \\
% spanning
% multiple
% lines
% \vfill
% ISBN 000-00-0000-000-0
%}
%\makecover
%% Uncomment following 16 lines for a cover with a picture on the lower half only
\title[tudelft-white]{The amazing journey of Walter Wombat in the
Land of Candy Sticks}
\subtitle[tudelft-black]{Optional subtitle}
\author[tudelft-white]{J.\ Random Author}
\affiliation{Technische Universiteit Delft}
\coverimage{tank.jpg}
\covertext[tudelft-white]{
\textbf{Cover Text} \\
possibly \\
spanning
multiple
lines
\vfill
ISBN 000-00-0000-000-0
}
\setpagecolor{tudelft-cyan}
\makecover[split]
%% Include an optional title page.
\input{title}
\input{preface}
\tableofcontents
%% Use Arabic numerals for the page numbers of the chapters.
\mainmatter
\newrefsection
\part{I am a Wombat}
\chapter{A Wombat?}
No, i am just making fun, i am a
penguin.\cite{aristotle:physics,companion,westfahl:space}
\printbibliography
\newrefsection
\part{I am not a Walrus}
\chapter{Well, that is obvious}
Soy un peng\"uino.\cite{ctan,doody}
\printbibliography
%% Use letters for the chapter numbers of the appendices.
\appendix
%\input{appendix-a}
\end{document}
\RequirePackage{scrlfile}
\PreventPackageFromLoading{natbib,chapterbib}
\documentclass{dissertation}
%% Turn off page numbering for the propositions and make the margins on both
%% sides equal and symmetrical.
\geometry{twoside=false}
\pagestyle{empty}
\usepackage[style=numeric-comp]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
%% Specify the title and author of the thesis. This information will be used on
%% both the English and Dutch side and in the metadata of the final PDF.
\title[Optional Subtitle]{Title}
\author{Albert}{Einstein}
\begin{center}
{\Large\titlefont\bfseries Propositions}
\bigskip
accompanying the dissertation
\bigskip
%% Print the title.
{\makeatletter
\titlestyle\bfseries\large\@title
\makeatother}
%% Print the optional subtitle.
{\makeatletter
\ifx\@subtitle\undefined\else
\titlefont\titleshape\@subtitle
\fi
\makeatother}
\bigskip
by
\bigskip
%% Print the full name of the author.
\makeatletter
{\large\titlefont\bfseries\@firstname\ {\titleshape\@lastname}}
\makeatother
\end{center}
\bigskip
\bigskip
%% Apart from the name and title of the supervisor, the following text is
%% dictated by the promotieregelement.
\begin{center}
These propositions are regarded as opposable and defendable, and have been approved as such by the promotor prof.\ dr.\ A.\ Kleiner.
\end{center}
\clearpage
{\selectlanguage{dutch}
\begin{center}
{\Large\titlefont\bfseries Stellingen}
\bigskip
behorende bij het proefschrift
\bigskip
%% Print the title.
{\makeatletter
\titlestyle\bfseries\large\@title
\makeatother}
%% Print the optional subtitle.
{\makeatletter
\ifx\@subtitle\undefined\else
\titlefont\titleshape\@subtitle
\fi
\makeatother}
\bigskip
door
\bigskip
%% Print the full name of the author.
\makeatletter
{\large\titlefont\bfseries\@firstname\ {\titleshape\@lastname}}
\makeatother
\end{center}
\newrefsection
\part{I am a Wombat}
\chapter{A Wombat?}
No, i am just making fun, i am a
penguin.\cite{aristotle:physics,companion,westfahl:space}
\printbibliography
\newrefsection
\part{I am not a Walrus}
\chapter{Well, that is obvious}
Soy un peng\"uino.\cite{ctan,doody}
\printbibliography
\end{document}