GeneralBibTex "et al." in body displays wrong

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mithras
Posts: 3
Joined: Sat Jun 07, 2008 5:03 pm

BibTex "et al." in body displays wrong

Post by mithras »

I have a BibTeX question. Let me first tell how I defined an article:

Code: Select all

@article{Amelin,
   Author = {Amelin, Y.  and Krot, A. N.  and Hutcheon, I. D.  and Ulyanov, A. A.},
   Title = {Lead Isotopic Ages of Chondrules and Calcium-Aluminum-Rich Inclusions},
   Journal = {Science},
   Year = {2002},
   Volume = {297},
   Number = {5587},
   Pages = {5} }
What do I want?
I expect a style similar to the following:
[Amelin et al.(2002)] Y. Amelin, A. N. Krot, I. D. Hutcheon, and A. A. Ulyanov. Lead isotopic ages of chondrules and calcium-aluminum-rich inclusions. Science, 297(5587): 5, 2002.
In this case "[Amelin et al.(2002)]" is the piece which displays in the body of the document:
The solar system originated 4564.7 0.6 Ma [Amelin et al.(2002)] as a dusk cloud resulting [...]
What happens
If I have multiple authors, I get really strange results.
[Amelin et al.(2002)Amelin, Krot, Hutcheon, and Ulyanov] Y. Amelin, A. N. Krot, I. D. Hutcheon, and A. A. Ulyanov. Lead isotopic ages of chondrules and calcium-aluminum-rich inclusions. Science, 297(5587):5, 2002.
And in the text:
The solar system originated 4564.7 0.6 Ma [Amelin et al.(2002)Amelin, Krot, Hutcheon, and Ulyanov] as a dusk cloud resulting [...]
I use the style abbrvnat. BibTeX recognise multiple authors and creates "et al.". Still all the names of the authors are mentioned, while that shouldn't be. How can I change this strange behaviour? I looked at abbrvnat.bst, but can't get out of it. Can somebody help me?

I think it's a problem beneath line 376 "output.bibitem" from abbrvnat.bst, but I'm not sure. Changing to abbrv wouldn't solve this problem...

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

mithras
Posts: 3
Joined: Sat Jun 07, 2008 5:03 pm

Re: BibTex "et al." in body displays wrong

Post by mithras »

*bump*
Nobody an idea how to solve this issue :?:
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

BibTex "et al." in body displays wrong

Post by gmedina »

I was not able to reproduce the strange behaviour that you mentioned. I took your reference and created a biblio.bib file and used it in the following simple code:

Code: Select all

\documentclass{book}
\usepackage{natbib}

\begin{document}

As was noticed in \citep{Amelin},

As was noticed in \citet{Amelin},

As was noticed in \cite{Amelin},

\bibliographystyle{abbrvnat}
\bibliography{biblio}

\end{document}
and I obtained the attached bibliotest.pdf file. Please post a minimal working example clearly showing the undesired behaviour.
Attachments
bibliotest.pdf
(19.79 KiB) Downloaded 439 times
1,1,2,3,5,8,13,21,34,55,89,144,233,...
mithras
Posts: 3
Joined: Sat Jun 07, 2008 5:03 pm

BibTex "et al." in body displays wrong

Post by mithras »

gmedina wrote:I was not able to reproduce the strange behaviour that you mentioned. I took your reference and created a biblio.bib file and used it in the following simple code:

Code: Select all

\documentclass{book}
\usepackage{natbib}

\begin{document}

As was noticed in \citep{Amelin},

As was noticed in \citet{Amelin},

As was noticed in \cite{Amelin},

\bibliographystyle{abbrvnat}
\bibliography{biblio}

\end{document}
and I obtained the attached bibliotest.pdf file. Please post a minimal working example clearly showing the undesired behaviour.
Thanks for you help, but finally I managed to solve this behavior.

She created the .bib file from a Windows application EndNote. This created sections like this:

Code: Select all

@article{key,
  name = {name},
  year = {year}
}
I changed it to:

Code: Select all

@article{key,
  name = "name",
  year = "year"
}
And BibTeX was able to display the citations normally :)
Post Reply