I need a bibliography that presents citation as (Surname, year), for which I am using natbib
, and that allows two different bibliographies at the end of the document, for which I am using multibib
.
Point is: I'd like to use the "alias" command of natbib for the secondary bibliography, but it doesn't work. MWE:
\documentclass[a4paper]{article}
\usepackage{natbib}
\usepackage{multibib}
\newcites{sec}{Other bibliographic references}
\defcitealias{intlog}{International journal of logistics, issue 91}
\begin{document}
Something something something and then \citetalias{intlog}.
\bibliographystyle{plainnat}
\bibliography{bibliography}
\bibliographystyle{plainnat}
\bibliography{bibliography}
\end{document}
with a proper entry in the file bibliography.bib
.
How to make the command citetalias{intlog}
work in the secondary bibliography?
What do I know:
\citetaliassec{intlog}
doesn't work\defcitetaliassec{intlog}
doesn't work as well (ok, that was a long shot)
that makes me think the alias system is not compatible with multibib…
Of course whatever other solution different from the alias system is absolutely welcomed.
Best Answer
As often I recommend
biblatex
. However the solution below doesn't usebiblatex
.Your example has some errors listed below.
Errors related to
multibib
If you define a new bibliography with
\newcites{<ext>}{<headind>}
, the new commands\bibliographystyle<ext>
,\bibliography<ext>
and\cite<ext>
will be defined. So in your case the lineleads to the commands:
and a new file
<ext>.aux
will be created. This new file needs his own bibtex run.Errors related to your bibliography style
plainnat
your style writes the following lines to your included
bbl
file (included by\bibliography
).You want to have two bibliographies and so the definition of the commands are done twice. This occurs to the error that the commands are defined. One approach would be to set the commands undefined before including the second bibliography.
the style
plainnat
is a numerical citation style. The manual ofnatbib
provides the following informationErrors related to
natbib
's\defcitealias
the command
\defcitealias
is described in the documentation with the following sentence:that means your key of
\defcitealias
must be a given entry of you bib file. You doesn't show us your bib file so I used the filexampl.bib
which is located in your texmf tree.the command
\defcitealias
makes no differences between the different bibliographies, so you can use it as described in the documentation.multibib
defines the command\citep<ext>
etc. The defined commands are all listed in the command\@mb@citenamelist
. In the documentation ofmultibib
you find the following hint:You see the commands
citepalias
andcitetalias
are missed. So before the packagemultibib
is loaded add the following lines:Based on the given information here the result as a minimal example with the resulting output. The compilation steps are done by the great tool arara: