I am new to the LateX world and currently I am writing my master thesis. The university requires the citation to look like that e.g. (Udell,2006) but in mine document the comma is missing- (Udell 2006). I tried to change to natbib to author-year but nothing happened. Can you please give me some advice? Thank you!

closed as unclear what you're asking by egreg, Phelype Oleinik, Mico, marmot, Stefan Pinnow Apr 5 '18 at 3:56

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Welcome to TeX.SX! Can you please share a minimal example of what you're doing? – egreg Mar 5 '18 at 13:37
  • Well, I have loaded my bibliography, then in the Document-Settings I have changed to natbib and author-year. After that I insert citation to the text in order to generate the reference. In lyX i see it like that (Udell,2006) but when I convert the text in pdf it appeas without the comma- (Udell 2006) – Kristina Mar 5 '18 at 13:42
  • 2
    The example is still needed. – egreg Mar 5 '18 at 13:43
  • 1
    You must have written some code, as otherwise you wouldn't be in position to write about the output of the citation call-outs. Please tell us whether you use \citet, \citep, or some other command. Please also tell how the natbib package is loaded and whether your document features any \setcitestyle and/or \bibpunct directives. – Mico Mar 5 '18 at 13:48
  • 1
    Well, if you don't have any code written, how do you know the comma is missing in your document? Please take a look at MWE/ MWEB on how to build a minimal working example. – gusbrs Mar 5 '18 at 13:48

For the biblatex case, this question was already answered here (by Marco Daniel). Here is his answer :

The space between the name and the year is controlled by the macro \nameyeardelim. So you have to redefine it:


Here a small example:


Do you use bibtex (natbib) or biber (biblatex) ?

If you use bibtex and the agsm bibliography style, you need to add either \usepackage[comma]{natbib} or \usepackage[semicolon]{natbib}in your preamble, as is shown in the following code:

\usepackage[semicolon]{natbib} %package for add comme or semicolon


\bibliographystyle{agsm} %bibliography apa harvard

The .bib file is:

  title  = {Web 2.0: beyond the concept practical ways to implement RSS, podcasts, and Wikis},
  author = {Huffman, Karen},
  journal= {Education Libraries},
  volume = {29},
  number = {1},
  pages  = {12--19},

The output is:

Reference with comma


Not the answer you're looking for? Browse other questions tagged or ask your own question.