我需要添加更多出版物。我不想更改以前的参考编号,所以我需要创建具有不同参考编号的新引文,如 [p1]、[p2] 等。LaTeX 可以做到这一点吗?
答案1
我最近做了类似的事情,添加了一部分参考文献,即自出版的参考文献。这些参考文献都加上了前缀,这样就显得突出了。
biblatex
是我所用方法的关键。您可以使用keywords=
bibfile 中的属性来识别特定条目,然后在文档末尾列出参考书目时使用关键字来过滤参考文献。
下面是一个工作示例。请记住,您需要 LaTeX -> BibTeX -> LaTeX -> LaTeX 才能进行编译。
\documentclass[titlepage,11pt]{article}
\usepackage{filecontents} % Used only to create the bibfile
\begin{filecontents*}{\jobname.bib}
@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{goossens93,
author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
title = "The LaTeX Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@article{blackholes,
author="My Self",
title="Black Holes and Their Relation to Hiding Eggs",
journal="Theoretical Easter Physics",
publisher="Eggs Ltd.",
year="2010",
note="(to appear)",
keywords="self"
}
\end{filecontents*}
% NOTE: Last entry has a _keywords="self"_ attribute. This keyword is used to
% sort out specific entries when the bibliographies are made
% biblatex is used with a few of my preferred options
% -- style = ieee gives [1] format
% -- backend = bibtex - can also use 'biber'
% -- sorting = ynt sorts all entries in each bibliography by Year, Name, then Title
% -- defernumbers = true required to get the resetnumbers=true option to work down below
\usepackage[style=ieee,backend=bibtex,sorting=ynt,defernumbers=true]{biblatex}
\addbibresource{\jobname.bib} % Peculiar to biblatex
\begin{document}
This document references \cite{greenwade93}, and my own publication
(\cite{blackholes}). And I also used \cite{goossens93}.
% References split out into self publications and regular references
% This makes use of biblatex (still needs a _bibtex_ run to finalize)
\section{Publications and References}
\printbibliography[heading=subbibliography, notkeyword=self, title={References}, resetnumbers=true]
\printbibliography[heading=subbibliography, keyword=self, title={Publications}, resetnumbers=true, prefixnumbers={P}]
\end{document}