I am using LyX with the default "article" document class. All the citations look as bracketed numbers [1], [2], etc. I want to have two different citation formats in the same document, according to the context, for example:

  • "It is impossible to solve the problem exactly (Author1, Year1), however, recently an approximate solution has been suggested by Author2 (Year2)".

How can I do this?

  • 2
    This can be achieved with the natbib package, and its authoryear option. You also need a natbib-compatible bibliography style, like plainnat. Then, the commands \citep{...} and \citet{...} do exactly what you want. No idea, though, how this is accomplished with LyX. – mafp Jul 5 '13 at 9:53

In LyX, go to

Document Settings > Bibliography > Natbib

Then when you go to

Insert > Citation

you can change how the citation appears by changing the Citation style box. It will give you a preview of how it will look in the PDF.

  • I did this, and now all my citations look e.g. like this: "(author?) [15]" (i.e. a boldface string "author? was added... not the name of the author). This happens no matter what format I choose in Insert->Citation... – Erel Segal-Halevi Jul 7 '13 at 4:24
  • Can you post a .lyx minimal example? – scottkosty Jul 7 '13 at 4:25
  • Note: The bibliography itself looks fine - all authors and years appear correctly. Only the citation doesn't work. – Erel Segal-Halevi Jul 7 '13 at 4:28
  • 1
    Ah, I found a solution - right-click on the bibliography, and change the "style" from "plain" to "plainnat" :) – Erel Segal-Halevi Jul 7 '13 at 4:37
  • 1
    Glad it works now. For future LyX + BibTeX problems, note that LyX 2.1 should report Natbib errors. You can still see the BibTeX log in LyX by going to Document LaTeX Log and changing it to BibTeX. – scottkosty Jul 8 '13 at 2:58

See below example:


It is impossible to solve the problem exactly \citep{au1}, however,
recently an approximate solution has been suggested by \citet{au2}.


Author1, {\it PLE} 3(6):19--64, 2009.

Author2, {\it PLE}, 4(7):119--164, 2010.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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