1

I am writing a PhD thesis that requires me to use both \citet and \citep style citations (thus requiring natbib, as far as I am aware). I want citep references to read [Mitchell 2013], citet references to read Mitchell [2013] and want the reference list at the end to include the citep form, for example:

[Mitchell 2013]: Henry Mitchell, 2013. The Biography.

I'm not too fussed about the exact reference list style, but so far have been able to find any that replicate the citep text at the start, other than those which are numeric reference styles. If I don't use natbib then there are many reference styles that include the citep at the start, for example these.bst, but then I lose citet.

  • Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. – Claudio Fiandrino Jun 24 '13 at 18:35
  • 1
    How about defining \citet for yourself? I.e. \newcommand{\citet}[1]{\citeauthor{#1} [\citeyear{#1}]} – Emiel Jun 24 '13 at 18:47
  • @Emiel Thanks, can you post it as an actual answer, since I suspect it may be the right answer in this case and I may well want to accept it (I certainly want to up-vote it). – Neil Mitchell Jun 24 '13 at 18:52
2

Using natbib with plainnat.bst, assuming you have set \bibpunct();A{}, first, you can define:

\let\oldBibitem\bibitem
\renewcommand{\bibitem}[2][]{\oldBibitem[#1]{#2}\StrBefore{#1}{(}\ (\StrBetween{#1}{(}{)}):}

You also need to \usepackage{xspace} at the top.

This makes the entries appear as:

Mitchell (2013): Henry Mitchell, 2013. The Biography.

The bracket characters and placement can be easily modified by editing the macro.

1

As requested: if you need \citet you could always define it like this:

\newcommand{\citet}[1]{\citeauthor{#1} [\citeyear{#1}]}
  • It seems citeauthor is only available with natbib? Can I use natbib but avoid it producing the reference list? Can I use citeauthor without natbib? – Neil Mitchell Jun 24 '13 at 19:04
  • Wait, can't you use natbib (providing all the commands you need), and then use \bibliographystyle{these.bst} to get the output you need? (in that case my answer is rubbish but you're saved) – Emiel Jun 24 '13 at 20:21
  • When combining the two I get: Package natbib Error: Bibliography not compatible with author-year citations. even after deleting all temporary files. If I could combine the two, I would have what I want. – Neil Mitchell Jun 24 '13 at 20:55

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.