Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using BibTeX, I am trying to edit a .bst file to not produce two periods following the author name of a single author entry. For example the following entry...

@ARTICLE{Yeh2004,
  author = {Yeh, P. J.},
  title = {Rapid evolution of a sexually selected trait following population
    establishment in a novel habitat},
  journal = {Evolution},
  year = {2004},
  volume = {58},
  pages = {166-174},
  number = {1},
  endnotereftype = {Journal Article},
  issn = {0014-3820}
}

...produces this given my current .bst file: enter image description here

Anyone know how I can edit this for single authors, yet maintain a period to separate entries with multiple authors from the subsequent year? Many thanks in advance.

share|improve this question

closed as too localized by Mico, percusse, Marco Daniel, Tom Bombadil, cgnieder Aug 25 '12 at 12:33

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Please state the name of the .bst file you're trying to edit. There must be hundreds, if not thousands, of .bst files available in various repositories. –  Mico Jun 22 '12 at 1:20
    
The .bst file I'm using is evolution.bst from this website lecb.ncifcrf.gov/~toms/latex.html which I have made some small edits to in an attempt to meet the formatting requirements. I actually tried to delete this post as in retrospect I feel it is too narrow in scope and might not help future users but was unable to as it's already been answered. Either way thanks in advance for any help/advice you can offer. –  Thraupidae Jun 22 '12 at 1:26
    
Thanks for providing this link. When I run a small example bib file with evolution.bst through latex and bibtex, I am unable to reproduce the problem behavior you describe. Did a bug maybe creep in during your attempts to edit the .bst file? Just guessing, of course. –  Mico Jun 22 '12 at 1:45
    
Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). –  Martin Schröder Aug 15 '12 at 16:55

1 Answer 1

up vote 3 down vote accepted

Since you didn't post anything about your .bst, here's evidence that it does work with one of the normal styles (cbe):

enter image description here

\documentclass{article}
\usepackage{natbib}
\bibliographystyle{cbe}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{Yeh2004,
  author = {Pamela J. Yeh},
  title = {Rapid evolution of a sexually selected trait following population
    establishment in a novel habitat},
  journal = {Evolution},
  year = {2004},
  volume = {58},
  pages = {166-174},
  number = {1},
  endnotereftype = {Journal Article},
  issn = {0014-3820}
}
@ARTICLE{YehEntirely2004,
  author = {Pamela J. Yeh and Someone Else Entirely},
  title = {More rapid evolution of a sexually selected trait following population
    establishment in a novel habitat},
  journal = {Evolution},
  year = {2004},
  volume = {58},
  pages = {175-179},
  number = {1},
  endnotereftype = {Journal Article},
  issn = {0014-3820}
}
\end{filecontents}

\begin{document}

First I read \citet{Yeh2004}, then \citet{YehEntirely2004}.

\bibliography{\jobname}

\end{document}

I've also got some general BibTeX advice over at this answer, which explains the changes I made to your .bib.

share|improve this answer
    
Thanks for the response, Mike. I guess I was curious if anyone could point me in the right direction for editing the .bst file to account for entries that have differing numbers of authors but this is also quite useful. Cheers! –  Thraupidae Jun 21 '12 at 23:06
    
Since the cbe style appears to do what you want (at least from the description), you could start from there and modify it. Then when something breaks, you can ask another question (or modify this one) to ask why changing a particular part caused the breakage. –  Mike Renfro Jun 21 '12 at 23:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.