
Мне нужно добавить еще несколько публикаций. Я не хочу менять предыдущие номера ссылок, поэтому мне нужно создать новые цитаты с другой нумерацией ссылок, например [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}