0

I am trying to make a document (article class) using natbib, plainnat. The citation style I want for \citet is Author[#]:#page (e.g.: Debord [2]:102).

I tried the solution given here: Natbib \citet style: move optional argument outside bracket, that is

\makeatletter
\patchcmd{\NAT@citex}
  {\ifNAT@swa\else\if*#2*\else\NAT@cmt#2\fi
   \if\relax\NAT@date\relax\else\NAT@@close\fi\fi}
  {\ifNAT@swa\else\if*#2*\else\ifNAT@par\else\NAT@cmt#2\fi\fi
   \if\relax\NAT@date\relax\else\NAT@@close%
   \if*#2*\else\ifNAT@par\NAT@cmt#2\fi\fi\fi\fi}{}{}
\makeatother

which actually works with \usepackage{natbib} (author-year mode), but it doesn't with the option [numbers]{natbib}, and I can only get Author[#:#page].

How can I solve this? Thanks

Your Answer

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

Browse other questions tagged or ask your own question.