[OS X TeX] citep and citet did not work in MacOSX-TeXShop
kchang
kchang at uoguelph.ca
Sun Feb 22 18:50:24 EST 2009
kchang wrote:
>
> hi,
>
> I generate my bib file using BibDesk and the "cite" function works
> fine in TexShop.
>
> I have similar problem to use "citep" and "citet" functions in TexShop.
>
> If you know how to deal with this problem, please give me a hand.
>
> Thanks.
>
> The following is my code:
>
> \documentclass[10pt]{article}
> \usepackage[sort&compress,square,comma,authoryear]{natbib}
> \begin{document}
> :
> :
> \citep{Chapman:1993jx,Chapin:1995df}, ....\citet{Janzen:1998fc}...
> :
> :
> \bibliographystyle{natbib}
> \bibliography{sample}
> \end{document}
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
>
>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Dear all,
Thanks all of your suggestions which are very helpful!!
Overall, I solved the problem. Here is the code works fine right now. (Well,
remember to run the "BibTex compiler" first and then "LaTex compiler")
\documentclass[10pt]{article}
\usepackage{natbib}
%\usepackage[sort&compress,square,comma,authoryear]{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
\newcommand{\BibTeX}{{\sc Bib}\TeX}
:
:
\begin{document}
:
:
The carbon budget in soils is three times larger than the atmosphere and
soils have the potential to store additional carbon\citep{Campbell:1993dw},
especially for properly managed agricultural lands\citet{Janzen:1998fc}.
:
:
\bibliographystyle{plainnat}
\bibliography{sample}
\end{document}
%%%%%%%%%%%%%%%%%%%%%
Here is my bib file looks like: (a part of the bib file)
@article{Paustian:2000zw,
Author = {Paustian, K. and Six, J. and Elliott, E. T. and Hunt, H. W.},
Date-Added = {2009-01-12 18:40:15 -0500},
Date-Modified = {2009-01-12 18:40:16 -0500},
Journal = {Biogeochemistry},
Number = {1},
Pages = {147-163},
Title = {Management options for reducing CO2 emissions from agricultural
soils},
Volume = {48},
Year = {2000}}
--
View this message in context: http://n2.nabble.com/citep-and-citet-did-not-work-in-MacOSX-TeXShop-tp2364753p2369678.html
Sent from the MacOSX-TeX mailing list archive at Nabble.com.
More information about the MacOSX-TeX
mailing list