[Tex/LaTex] Citep only works as cite

citinghyperrefnatbib

In an ideal situation using natbib and abbrvnat, citations e.g. \citet{Jones2004} and '\citep{Jones2004}' would have given Jones et al. (2004) and (Jones et al., 2004) respectively.

Unfortunately I don't get that, instead I get

\citep{Jones2004} gives me ===> '(Jones, Giannini and Chang, 2004)'

Previously, @egreg, @lockstep: I followed your last idea by removing numbers from

\usepackage[square,numbers,round,comma,sort&compress,longnamesfirst]{natbib},

and citations are picked quite well, except that '\citep{}' in the text doesn't work but if I try it on plain part of a page, it works. An example as below.

However, if I remove longnamefirst, it works but then I lose the style of having longnamefirst in the Bibliography content. Nevertheless, I've got another bibliographystyle that I tweaked but it would be useful if others could know this effect and may be the solution.

\documentclass[a4paper, 11pt, twoside]{article}
\usepackage[round,authoryear,semicolon,sort&compress,longnamefirst]{natbib}
\usepackage{hyperref}
\usepackage{filecontents}`

\begin{filecontents}{\jobname.bib}

@misc{A01,

author = {Jones, A. and James, C., and Giannini, J.},

year = {2001},

title = {Title of journal article},

}

\end{filecontents}

\begin{document}

Space is such an alien environment that attempting to work \citep{A01} in it requires new techniques and knowledge.\

\citep{A01}\\

\bibliographystyle{plainnat}

\bibliography{\jobname}

\end{document}

Best Answer

This minimal example works for me.

\documentclass{article}

\usepackage{natbib}

\usepackage{hyperref}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
\end{filecontents}

\begin{document}

\citet{A01}

\citep{A01}

\bibliographystyle{abbrvnat}
\bibliography{\jobname}

\end{document}

(The filecontents environment is only used to include some external files directly into the example, so that it compiles. It is not necessary for the solution.)

Related Question