BibTeX, biblatex and bibercitation problem with natbib

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
sidebo
Posts: 3
Joined: Fri Apr 02, 2010 12:46 pm

citation problem with natbib

Post by sidebo »

hey,

I want my citations to look like 'Lundman (2009)' , but what I get is 'Lundman [2009]' (not the right parenthesis).

I use the following code for bibliography:

Code: Select all

\begin{thebibliography}{50}
...
\bibitem[Lundman (2009)]{Lundman2009} Lun...
...
\end{thebibliography}
\bibliographystyle{plainnat}
and cite it with

Code: Select all

blabla, see \citet{Lundman2009} 
any suggestions?

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: citation problem with natbib

Post by josephwright »

Well, post a working example and also use natbib properly. You seem to be mixing using BibTeX with doing things by hand.
Joseph Wright
sidebo
Posts: 3
Joined: Fri Apr 02, 2010 12:46 pm

Re: citation problem with natbib

Post by sidebo »

why is the above not a working example?

and please help out instead of saying "do things properly". if I knew how to do things properly I wouldn't be posting here, would I.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

citation problem with natbib

Post by localghost »

sidebo wrote:why is the above not a working example? […]
Because it is not complete and smoothly compilable [1]. Others are rarely motivated to build a complete example on their own for testing solutions they have in mind.
sidebo wrote:[…] and please help out instead of saying "do things properly". if I knew how to do things properly I wouldn't be posting here, would I.
Properly in this case means that natbib only works with a BibTeX database file. But you are doing your bibliography by hand. You have to create a *.bib file with appropriate entries for the items you want to have listed in the output. The forum search will yield some useful hints how to do that.

[1] View topic: Avoidable mistakes


Best regards and welcome to the board
Thorsten
sidebo
Posts: 3
Joined: Fri Apr 02, 2010 12:46 pm

citation problem with natbib

Post by sidebo »

OK, sorry. so, I used the following

Code: Select all

\documentclass[a4paper,12pt,twoside]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[swedish]{babel}
\usepackage{graphicx}
\usepackage[hang,small,bf]{caption}
\usepackage{amsmath,amsfonts,amssymb,epsfig}

\usepackage{natbib}

\begin{document}
.. was claimed \citet{Band1993}.
\section{Referenser}
\renewcommand*{\refname}{\vspace*{-10mm}}
\bibliographystyle{apalike}
\bibliography{ref}
\end{document}
with the following bib-file

Code: Select all

@ARTICLE{Band1993,
   author = {{Band}, D. and {Matteson}, J. and {Ford}, L. and {Schaefer}, B. and 
	{Palmer}, D. and {Teegarden}, B. and {Cline}, T. and {Briggs}, M. and 
	{Paciesas}, W. and {Pendleton}, G. and {Fishman}, G. and {Kouveliotou}, C. and 
	{Meegan}, C. and {Wilson}, R. and {Lestrade}, P.},
    title = "{BATSE observations of gamma-ray burst spectra. I - Spectral diversity}",
  journal = {ApJ},
 keywords = {GALACTIC HALOS, GAMMA RAY BURSTS, GAMMA RAY SPECTRA, STATISTICAL ANALYSIS, RADIATION DISTRIBUTION, TRANSIENT RESPONSE},
     year = 1993,
    month = aug,
   volume = 413,
    pages = {281-292},
      doi = {10.1086/172995},
   adsurl = {http://adsabs.harvard.edu/abs/1993ApJ...413..281B},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
My problem now is that in the bibliography LaTeX prints the whole lists of authors, I would like it to just say "Band et al." Ideas?
olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

citation problem with natbib

Post by olofos »

The apalike.bst style outputs all authors. Either
  1. change the author list in your bibtex file to

    Code: Select all

    author = {Band, D. and others}
    This is not a very nice general solution since you loose the full author list and have to add it again if you want to reuse your bibtex-file and need the full set of authors,
  2. change to a style which writes long author lists using "et al." (unfortunately I cannot come up with a good suggestion at the moment),
  3. make a copy of apalike.bst and change it to abbreviate long author lists
Post Reply