Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to switch between numeric and authoryear style in Natbib, in the same document. Particularly, I want it to be numeric the first time a citation is used and authoryear any subsequent times. Does anyone know how to do this?

Thanks in advance.

share|improve this question

1 Answer 1

up vote 8 down vote accepted

Particularly I find this somehow awkward since it will disrupt the consistency of the citations. That being said, one option would be to use the numbers package option for natbib and to use \cite the first time that a bibliographical reference will be cited and then a combination of \citeauthor and \citeyear for the subsequent citations of the same bibliographical item; something along these lines:

\documentclass{article}
\usepackage[numbers]{natbib}

\newcommand\Mycite[1]{%
  \citeauthor{#1}~[\citeyear{#1}]}

\begin{document}

First citation: \cite{goossens93}
Second citation: \Mycite{goossens93}

\bibliographystyle{plainnat}
\bibliography{biblio}

\end{document}

with biblio.bib:

@book{goossens93,
    author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",
    title = "The Latex Companion A",
    year = "1993",
    publisher = "Addison-Wesley",
    address = "Reading, Massachusetts"

}

resulting in:

share|improve this answer
    
Thanks! That works. –  Hypercube May 1 '11 at 2:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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