I am relatively new to the natbib
package. I was wondering if there is an option to remove the 'comma' between an author name and year. For example, using the style apalike
, I get (Name, year), but I want it to appear as (Name year).
1 Answer
The natbib
package provides the command \setcitestyle
that allows for some customization. The delimiter between author and year in citations is set using the key-value pair aysep={<char>}
.
Here is an almost MWE (fill in your bib file and a prober cite key):
\documentclass[]{article}
\usepackage{natbib}
\setcitestyle{aysep={}}
\begin{document}
\bibliographystyle{apalike}
\citep{<some cite key in your bib file>}
\bibliography{<bib file>}
\end{document}
biblatex
.biblatex
. It is so much more powerful and flexible. And given that you are new tonatbib
, as you say, I would invest in the switch and start reaping the benefits.\setcitestyle{aysep={}}
not easy enough? :-)natbib
. I meant it's easier to customisebiblatex
than to put hands on a.bst
file.natbib
package. The form of the citation call-out -- including the presence or absence of a comma between the author and year labels -- is controlled bynatbib
, not thebst
file.