Your second observation, that "natbib doesn't support UTF-8 in the bibliography file", isn't quite accurate: it is bibtex
, not natbib
, that suffers from the ASCII-128 limitation. If you can run bibtex8
instead of bibtex
, you can use many more Latin alphabet based character encodings.
Regarding your points 1 and 3: I'm not sure what the concerns you raise are founded on. (You did issue the command \bibliographystyle{cell}
, right?) To get natbib
to place square brackets rather than round parentheses around the author,year
pair, just load the package with the square
option and use the \citep
command (for "parenthetical citations").
The output of the MWE below shows that \citeyear
and \citeauthor
work as one would expect them to. In particular, natbib
knows perfectly well how to append a
, b
, etc automatically to the year if the need to do so arises.
Here's the "cellcite.tex" driver file:
\documentclass{article}
\usepackage[square]{natbib}
\bibliographystyle{cell}
\begin{document}
\citep{abcd:2006a,abcd:2006b}
\citeauthor{abcd:2006a}
\citeyear{abcd:2006b}
\bibliography{cellcite}
\end{document}
Finally, the MWE's bib file ("cellcite.bib"):
@incollection{abcd:2006a,
author = "Torben G. Andersen and Tim Bollerslev and
Peter F. Christoffersen and Francis X.
Diebold",
title = "Volatility and correlation forecasting",
chapter = 15,
pages = "777--878",
editor = "Graham Elliott and Clive W. J. Granger and
Allan Timmermann",
booktitle = "Handbook of Economic Forecasting,
Volume~1",
publisher = "Elsevier",
address = "Amsterdam",
year = 2006,
}
@incollection{abcd:2006b,
author = "Torben G. Andersen and Tim Bollerslev and
Peter F. Christoffersen and Francis X.
Diebold",
title = "Practical volatility and correlation
modeling for financial market risk
management (with discussion)",
chapter = 11,
pages = "513--548",
editor = "Mark S. Carey and Ren{\'e} M. Stulz",
booktitle = "The Risks of Financial Institutions",
publisher = "University of Chicago Press",
address = "Chicago and London",
year = 2006,
}
(This answer addresses only the matter of making the aer
style insert an "Oxford comma". Since you're using the natbib
citation management package, use \citet*
and \citep*
to generate citation call-outs that display the names of all authors/editors.)
To make the aer
bibliography style insert an "Oxford comma" -- a comma just before the "and" particle that's inserted before the final item in the list of author/editor names, assuming the list contains three or more items -- you could apply the following edits:
Find the file aer.bst
in your TeX distribution, make a copy of this file, and name the copy (say) aernc.bst
. Don't edit an original file directly.
Open the file aernc.bst
in a text editor, locate the function format.lab.names.full
(which, in my copy of this file, starts on line 605), and in this function locate the line
{ " and " * temp * }
Change this line to
{ ", and " * temp * }
Save the file aernc.bst
either to the directory where your main tex file is located or to a directory that's searched by BibTeX. If you choose the second option, be sure to update the filename database of your TeX distribution. Start using the new bibliography style by replacing \bibliographystyle{aer}
with \bibliographystyle{aernc}
. Be sure to run latex, bibtex, and latex twice more to fully propagate all changes.
Here's an MWE that uses \cite*
for an entry with exactly three authors.
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{bbb,
author = "Anna Andersen and Bert Branson",
title = "Thoughts",
journal= "MyJournal",
year = 3002,
volume = 1,
number = 1,
pages = "1-100",
}
@article{ccc,
author = "Anna Andersen and Bert Branson and Carla Carlsson",
title = "Thoughts",
journal= "MyJournal",
year = 3003,
volume = 1,
number = 1,
pages = "1-100",
}
@article{ddd,
author = "Anna Andersen and Bert Branson and Carla Carlsson and David Davies",
title = "Thoughts",
journal= "MyJournal",
year = 3004,
volume = 1,
number = 1,
pages = "1-100",
}
\end{filecontents*}
\usepackage{natbib}
\bibliographystyle{aernc}
% \setcitestyle{aysep={}} % if you want to suppress the comma between author and year
\begin{document}
\cite{bbb}
\cite*{ccc}
\cite{ddd}
\bibliography{\jobname}
\end{document}
Best Answer
Unfortunately it cannot be done with
amnatnat.bst
. When you runbibtex
amnatnat.bst
replaces the author lists with---{}---{}---
if the authors list in the entrybibtex
is currently processing in the same as the previous one, and the information about the authors (full) names is lost. Thus the only alternative I see is to change the\bibliographystyle
.If you want to keep the dash for repeated authors in the bibliography and using the full citation in the text, a possible solution is to use
biblatex
and to use the\fullcite{<key>}
command instead of\bibentry{<key>
.EDIT
The simplest way to modify the function in
amnatnat.bst
is to replace definition of theFUNCTION {name.or.dash}
withThis would produce a "standard" entry wihtout the dash for repeated names (both in the bibliography and in
\bibentry
.If one wants to have both the full references with
\bibentry{<key>}
and the dash in the bibliography the function can be modified as follows:and then using the following code in the LaTeX source
The following is an MWE illustrating the usage:
PS Comment one of the
\bibliography
,\nobibliography
before runningbibtex
.