我想在我的博士论文中专门为出版物设立一个部分(结构像一个章节)。
这是我目前用于论文的代码(不考虑包列表):
\documentclass[a4paper,12pt,twoside,cucitura]{report}
\usepackage[a4paper,outer=3.2cm,bottom=3.5cm,inner=2.2cm,top=2.5cm]{geometry}
\usepackage{booktabs,tabularx}
\newcommand\vn[1]{\mathit{#1}} % how to display variable names
\newcolumntype{C}{>{\centering\arraybackslash$\displaystyle }X<{$}}
\pagestyle{fancy}
\usepackage{hyperref
\hypersetup{%
pdfpagemode={UseOutlines},
bookmarksopen,
pdfstartview={FitH},
colorlinks,
linkcolor={blue},
citecolor={red},
urlcolor={blue}
}
\pagenumbering{roman}
\begin{document}\errorcontextlines=9
\interfootnotelinepenalty=10000
\tableofcontents
\fancyhead[RO,LE]{}
\fancyfoot[RO,LE]{}
\newcommand\blankpage{
\null
\thispagestyle{empty}
\addtocounter{page}{-1}
\newpage
}
\pagenumbering{arabic}
\input{Chapter1/Chapter1}
\input{Chapter2/Chapter2}
\input{Chapter3/Chapter3}
\input{Chapter4/Chapter4}
\input{Chapter5/Chapter5}
\begin{appendices}
\input{Appendix1/Appendix1}
\input{Appendix2/Appendix2}
\input{Appendix3/Appendix3}
()\end{appendices}
\renewcommand{\bibname}{References}
\bibliography{thesisbib}
\bibliographystyle{ieeetr}
\end{document}
我如何插入出版物部分?
答案1
在过去,我已经设法做到了如下几点biblatex
(我鼓励您采用)。
在您的出版物的 bibtex 条目中添加一个关键字,例如keywords = {mine}
。
然后,对于正常参考,使用\printbibliography[notkeyword=mine]
(以便过滤掉您的出版物)。
然后,借助refcontext
,创建您的出版物列表。我过去常常\nocite{}
设置出现的顺序,因为refcontext
被调用为[sorting = none]
。通过使用,假定您的作品不会在整个文本中被引用,并且只在手稿的末尾列出。这也是为什么在上一步中需要 的\nocite{}
原因。notkeyword
\begin{refcontext}[sorting=none]
\defbibnote{myprenote}{If you wish to add explanations}
\nocite{mypaper1,mypaper2}
\printbibliography[%
title = {List of Publications},
prenote = myprenote,
keyword = mine,
]
\end{refcontext}
MWE 是:
\documentclass[]{book}
\begin{filecontents}{references.bib}
@book{knuth1997art,
title={The Art of Computer Programming: Fundamental algorithms},
author={Knuth, D.E. and Addison-Wesley},
number={v. 1},
isbn={9780201896831},
lccn={97002147},
series={Addison-Wesley series in computer science and information processing},
url={https://books.google.it/books?id=B31GAAAAYAAJ},
year={1997},
publisher={Addison-Wesley}
}
\end{filecontents}
\begin{filecontents}{mypublications.bib}
@book{mypaper1,
title={The Art of something else},
author={me},
% isbn={ },
% lccn={},
keywords = {mine},
year={2020},
publisher={the publisher},
}
@book{mypaper2,
title={The Art of something else 2},
author={me},
% isbn={ },
keywords = {mine},
% lccn={},
year={2020},
publisher={the publisher},
}
\end{filecontents}
\usepackage[%
bibstyle = ieee,
citestyle = numeric,
% isbn = true,
% doi = false,
% % sorting = nty,
% % sorting = none,
% % sorting = debug,
% url = false,
% defernumbers = true,
% bibencoding = utf8,
% backend = biber
]{biblatex}
\addbibresource{references.bib}
\addbibresource{mypublications.bib}
\begin{document}
\cite{knuth1997art}
\printbibliography[notkeyword=mine]
\begin{refcontext}[sorting=none]
\defbibnote{myprenote}{If you wish to add explanations}
\nocite{mypaper1,mypaper2}
\printbibliography[%
title = {List of Publications},
prenote = myprenote,
keyword = mine,
]
\end{refcontext}
\end{document}
确实,您不需要将references.bib
其分开mypublications.bib
,但您可能会bib
分别使用论文的不同文件,并且分别添加这些文件是最快的,而不是合并它们(当然,除非有重复)。