GeneralNatbib Numerical citation problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Natbib Numerical citation problem

Post by curiouslearn »

Hi,

I am using the natbib package for references in my paper. To get numerical citations, I added the numbers option as shown in the code below.

Code: Select all

\usepackage[numbers,sort]{natbib}
\bibliographystyle{chicago}
As indicated in the natbib package documentation, to refer to a particular page number in a reference I use the following code:

Code: Select all

\citet[Pg.~910]{PolinskyShavell1998}
However, instead of giving me the output Polinsky and Shavell [22, Pg. 910], I get the output as Polinsky and Shavell [22], Pg. 910. That is, I get the page number outside the brackets. How can I get that page number inside the bracket? If I do not use the numbers option, i.e., if I stick to the default author-year style then I do not have this problem. The page number goes inside the bracket with the year of the reference. However, the journal requires numerical citation style.

Any help would be greatly appreciated. Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Natbib Numerical citation problem

Post by Juanjo »

Instead of \citet, try the command \mycite given as follows:
\newcommand{\mycite}[2][]{\citeauthor{#2}~\citep[#1]{#2}}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Re: Natbib Numerical citation problem

Post by curiouslearn »

Thanks very much Juanjo. The solution gave me exactly what I was looking for. I really appreciate your help.
Post Reply