Generalnewbie: natbib style file in LaTeX

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Sorny
Posts: 4
Joined: Tue Aug 21, 2007 9:46 am

newbie: natbib style file in LaTeX

Post by Sorny »

Dear all,

I am relatively new to LaTeX and have been fumbling my way around it for the last couple of days. I would like to use the natbib style files (abbrvnat, plainnat, and unsrtnat) written by Patrick Daly but without much success. The editor I am using is TeXnicCenter. I can see all three .bst file in my MiKTeX 2.6 directory and have used

\citet{key}

\bibliography{mybibfile}
\bibliographystyle{plainnat}

I have also tried the other two (abbrvnat and unsrtnat) but with no success. Am I missing something obvious?
Your help is greatly appreciated.

Regards,

Sorn

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

pumpkinegan
Posts: 91
Joined: Thu May 03, 2007 10:29 pm

Re: newbie: natbib style file in LaTeX

Post by pumpkinegan »

Have you ran BibTeX and generated a .bbl file?
Sorny
Posts: 4
Joined: Tue Aug 21, 2007 9:46 am

Re: newbie: natbib style file in LaTeX

Post by Sorny »

Yes, I ran BibTex and created a .bbl file which looks like below:

\begin{thebibliography}{0}
\providecommand{\natexlab}[1]{#1}
\providecommand{\url}[1]{\texttt{#1}}
\expandafter\ifx\csname urlstyle\endcsname\relax
\providecommand{\doi}[1]{doi: #1}\else
\providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi

\end{thebibliography}

And if I use the plain style

\bibliographystyle{plain}

it allworks OK producing a .bbl like this:

\begin{thebibliography}{1}

\bibitem{Conway2000}
Damian Conway.
\newblock {\em Object {O}riented {P}erl: {A} comprehensive guide to concepts
and programming techniques}.
\newblock Manning Publications Co., Connecticut, USA, 2000.

\bibitem{Huetal2000}
A.~Jennings J.~Hu, H. R.~Wu and X.~Wang.
\newblock Fast and robust equalization: A case study.
\newblock In {\em Proceedings of the World Multiconference on Systemics,
Cybernetics and Informatics, (SCI 2000), Florida, USA, 23-26 July 2000},
pages 398--403, FL, USA, 2000. International Institute of Informatics and
Systemics.

\bibitem{Meyer2000}
Bernd Meyer.
\newblock A constraint-based framework for diagrammatic reasoning.
\newblock {\em Applied Artificial Intelligence}, 14:327.

\end{thebibliography}

I have problems when I try to go for a more complicated style file.

Thanks

Sorn
Sorny
Posts: 4
Joined: Tue Aug 21, 2007 9:46 am

Re: newbie: natbib style file in LaTeX

Post by Sorny »

I have realised what I have done now. I forgot to load the package first before I use the style file contained in the package, i.e,

\usepackage{natbib}

Then

\bibliographystyle{plainnat} or the other two abbrvnat and unsrtnat

Gotta load the package first!
Post Reply