我正在使用“文章类”将不同的论文汇总到一个文件中。我遇到的问题是如何在每篇文章之后重置参考文献列表。我现在面临的错误是使用命令时会打印所有参考文献\printbibliography
。使用后如何重置参考文献列表\printbibliography
?
此代码中还有一些小错误。这些是:
(i)“摘要”和“关键词”部分出现在第一页的顶部;
(ii) 论文 2 的标题字体较小,并且未显示第二篇论文的作者所属机构,如下图所示。有人能帮我修复这些错误吗?谢谢。
我的代码:
\documentclass[a4paper,12pt]{article}
\usepackage[backend=bibtex]{biblatex}
\usepackage{authblk}
\usepackage{hyperref}
\hypersetup{colorlinks = true,linkcolor = blue,filecolor = magenta,%
urlcolor = cyan, citecolor = blue, unicode = true,}
\providecommand{\keywords}[1]{\textbf{\textit{Keywords: }} #1}
\addbibresource{sample.bib}
\begin{document}
\title{TITLE OF PAPER 1}
\author[1]{Nguyen Van One}
\affil[1]{Victoria University, New Zealand}
\date{}
\begin{abstract}
Abstract of paper 1 here.
\end{abstract}
\keywords{Climate change, Mekong Delta}
\maketitle
\section{Introduction}
Text for section of introduction. Cite for paper 1. \cite{greenwade93}
\printbibliography
%---------------------------------
% End of paper 1
%---------------------------------
% Paper 2
%---------------------------------
\makeatletter
\renewcommand{\AB@affillist}{}
\renewcommand{\AB@authlist}{}
\setcounter{authors}{0}
\setcounter{affil}{0}
\makeatother
\clearpage
\newpage
\title{TITLE OF PAPER 2}
\author[2]{Nguyen Van Two}
\affil[2]{Western Sydney University, Australia}
\date{}
\begin{abstract}
Abstract of paper 2 here.
\end{abstract}
\keywords{Vulnerability, Resilience}
\maketitle
\setcounter{section}{0}
\section{Introduction}
Text for section of introduction. Cite for paper 2. \cite{dirac}
\printbibliography
\end{document}
样本
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351"
}
@book{dirac,
title = {The Principles of Quantum Mechanics},
author = {Paul Adrien Maurice Dirac},
isbn = {9780198520115},
series = {International series of monographs on physics},
year = {1981},
publisher = {Clarendon Press},
keywords = {physics}
}
编译:pdflatex -> bibtex > pdflatex -> pdflatex
答案1
使用refsection
s 将不同论文的参考书目分开。refsection
s 允许您在同一文档中生成完全独立的引文和参考书目。
在这种情况下,这应该像将每张纸包裹在 中一样简单\begin{refsection}...\end{refsection}
。其他一切都会自动处理(例如\printbibliography
是当前 的本地refsection
。)
如果您有多个refsection
s,则应使用 Biber 作为后端,而不是 BibTeX。虽然 BibTeX 确实支持多个引用部分,但您需要的编译器设置要复杂得多,因为 BibTeX 需要在不同的.aux
文件上运行(每个文件一个refsection
)。另一方面,Biber 只需运行一次。
\documentclass[a4paper,12pt]{article}
\usepackage[backend=biber]{biblatex}
\usepackage{authblk}
\usepackage{hyperref}
\hypersetup{colorlinks = true,linkcolor = blue,filecolor = magenta,%
urlcolor = cyan, citecolor = blue, unicode = true,}
\providecommand{\keywords}[1]{\textbf{\textit{Keywords: }} #1}
\addbibresource{biblatex-examples.bib}
\begin{document}
\begin{refsection}
\title{TITLE OF PAPER 1}
\author[1]{Nguyen Van One}
\affil[1]{Victoria University, New Zealand}
\date{}
\begin{abstract}
Abstract of paper 1 here.
\end{abstract}
\keywords{Climate change, Mekong Delta}
\maketitle
\section{Introduction}
Text for section of introduction. Cite for paper 1. \cite{sigfridsson}
\printbibliography
\end{refsection}
%---------------------------------
% End of paper 1
\clearpage
\begin{refsection}
%---------------------------------
% Paper 2
%---------------------------------
\makeatletter
\renewcommand{\AB@affillist}{}
\renewcommand{\AB@authlist}{}
\setcounter{authors}{0}
\setcounter{affil}{0}
\makeatother
\title{TITLE OF PAPER 2}
\author[2]{Nguyen Van Two}
\affil[2]{Western Sydney University, Australia}
\date{}
\begin{abstract}
Abstract of paper 2 here.
\end{abstract}
\keywords{Vulnerability, Resilience}
\maketitle
\setcounter{section}{0}
\section{Introduction}
Text for section of introduction. Cite for paper 2. \cite{worman}
\printbibliography
\end{refsection}
\end{document}