Take the 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
 
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
add comment

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.

1 Answer

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
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/60760/bibtex-single-author-entries-with-two-periods
tex.stackexchange.com
crawl=CC-MAIN-2013-48
60682
application/http; msgtype=response
sha1:5SH43AOZEM77SXH7IWUL6Y2HBCR7QL7Q
<urn:uuid:22eadad6-763e-401f-88e3-45e3eba4535c>
2013-12-21T14:35:24Z
198.252.206.16
sha1:KGMHDC4VD5H7EEDHVCXQPWCS5IQZFJKY
<urn:uuid:c5693f99-6416-41b0-b922-6cf0382d993b>
http://tex.stackexchange.com/questions/60760/bibtex-single-author-entries-with-two-periods
response
<urn:uuid:79486721-380e-451a-98f6-bb1a899529c4>
robots: classic
hostname: ip-10-33-133-15.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2013-48
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for Winter 2013
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf