Although you specifically asked for a bibtex solution for the chicago
package, I couldn't resist to point you to biblatex
, since Chicago Manual of Style biblatex style files are provided by the biblatex-chicago
package.
To change the number of authors that trigger the "et al." string in biblatex, you have the options maxnames
and minnames
. Setting them to 1
takes care of your request (it is worth noting, however, that according to biblatex-chicago
manual, this is not recommended by the Chicago Manual of Style). These options can be passed to biblatex-chicago
package.
You mentioned in your comments not getting \citeyear
to work in biblatex
; this might be because \citeyear
only prints the year field, without the extra label that is appended to disambiguate it. But this is achievable by the \citeyear*
command.
N.B.: Please notice that biblatex-chicago
(v. 0.9.9.a) requires biber
for its author-year style, as stated in the manual (ยง2):
[Biber] is required for users who are either using the author-date style or processing a .bib file in Unicode.
That means you should replace the bibtex
pass for a biber
one. Compile this with [pdf]latex
โ biber
โ [pdf]latex
โ [pdf]latex
Here's a MWE:
\documentclass{article}
%\usepackage{chicago}
\usepackage[authordate,backend=biber,maxnames=1,minnames=1]{biblatex-chicago}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Smith2012,
author = {A. Smith and B. Schmidt},
title = {A title},
journal = {A Journal},
year = {2012},
}
@article{Smith2012b,
author = {A. Smith and B. Schmidt},
title = {Another title},
journal = {Another Journal},
year = {2012},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\usepackage[colorlinks=true,citecolor=red]{hyperref}
\begin{document}
\verb!autocite! is the main citation command: it knows if it is in text or in notes, and switches between \verb!\footcite! and \verb!\parencite! accordingly. \autocite[1]{Smith2012}, \autocite[1]{Smith2012b}
\verb!\footcite! is for citations on footnotes\footcite[1]{Smith2012}, \footcite[1]{Smith2012b}
\verb!\parencite! is for citations in parentheses \parencite[1]{Smith2012}, \parencite[1]{Smith2012b}
\verb!\textcite! is for inline citations, like \textcite[1]{Smith2012}, \textcite[1]{Smith2012b}
\verb!\citeyear! cites only the \verb!year! field, not \verb!year+label!: \citeyear[1]{Smith2012b}. To cite the whole label, you should try the starred variant \verb!\citeyear*!: \citeyear*[1]{Smith2012}, \citeyear*{Smith2012b}
You can also have multiple citations with some of these commands: \autocites{Smith2012}{Smith2012b}
%\bibliographystyle{chicago}
%\bibliography{\jobname}
\printbibliography
\end{document}
And the output:
I suggest you proceed as follows:
Find the file apalike.bst
in your TeX distribution and create a copy called, say, apalike-bf.bst
.
Open the file apalike-bf.bst
in a text editor. The program you use to edit your tex files will do fine.
In the bst file, locate the 6-line BibTeX function emphasize
. (In my copy of the file, this function starts on line 200.) Make a copy of this function, name it embolden
, and change \em
to \bfseries
. Place the new embolden
function immediately below the emphasize
function.
Next, go down a few lines in the bst file and locate the function called format.names
. In that function, locate the following line:
{ s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't :=
Change this line to
{ s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ embolden 't :=
Save the file apalike-bf.bst
either in the directory that contains your main tex file or in a directory that's searched by BibTeX. If you choose the latter option, be sure to update the filename database of your TeX distribuition. (If you're not sure you understand the preceding sentence, you should follow the former option.)
In your main tex file, change \bibliographystyle{apalike}
to \bibliographystyle{apalike-bf}
and perform a full recompile cycle: LaTeX, BibTeX, and LaTeX twice more.
Happy BibTeXing!
Addendum to address the OP's follow-up question about how to render the connector word "and" in bold: In the file apalike-bf.bst
, in the BibTeX function format.names
(the same one as above), locate the following 4 lines:
{ ", " * t * }
{ ", " * t * }
{ " et~al." * }
{ " and " * t * }
Replace these lines with
{ "\textbf{,} " * t * }
{ "\textbf{,} " * t * }
{ " \textbf{et~al.}" * }
{ " \textbf{and} " * t * }
Then, save the bst file and rerun a full recompile cycle.
Best Answer
At a bare minimum, your LaTeX source file needs to contain these elements for
\citeauthor
to work:----
doc.tex
--------
doc.bib
----The correct compilation cycle for the document is then as follows:
The first compilation generates the list of cited works for BibTeX. Then BibTeX uses that information to generate a
.bbl
file fromdoc.bib
containing all of the citations formatted according to the bibliography style you choose. The second compilation incorporates the.bbl
into the document, and the third compilation updates all of the cross-references (e.g. citations).Here is the output for the example above: