1

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?

Marco Daniel
  • 95,681
  • 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 05 '13 at 09:53

2 Answers2

4

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.

scottkosty
  • 13,164
1

See below example:

\documentclass{article}
\usepackage[authoryear]{natbib}
\begin{document}

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

\begin{thebibliography}{1}

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

\bibitem[Author2(2010)]{au2}
Author2, {\it PLE}, 4(7):119--164, 2010.
\end{thebibliography}
\end{document}
Jagath
  • 4,287