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.

I'm a BibTex neophyte, and this one problem is driving me crazy. The .bst file I am modifying uses the number variable identically for both conference paper and journal citations, which is not what the journal I am submitting to wants (and no, they didn't provide a .bst file!). So, I tried to modify the function for journal citations in the following way:

FUNCTION {format.vol.num.pages}
{ volume field.or.null
  volume empty$
    'skip$
    { bbl.volume "~" * swap$ * }
  if$
  number empty$
    'skip$
    {
     ", ("  * number ")"  tie.or.space.connect *  
    volume empty$
        { "there's a number but no volume in " cite$ * warning$ }
           'skip$
      if$
    }
  if$
}

This gives, for example:

Strawn, R., Caradonna, F., and Duque, E., “30 Years of Rotorcraft Computational Fluid Dynamics Research and Development,” Journal of the American Helicopter Society, Vol. 51, (1 ), 2006, pp. 5–21.

Which is perfect, EXCEPT for the space after 1 in (1 )! The editor won't accept the paper until this is fixed. Please any help would be much appreciated!

share|improve this question

closed as too localized by Stefan Kottwitz Feb 5 '11 at 18:10

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.

    
Does this happen with all citation or just with one/a few? The space might come in from the .bib file. Also BibTeX produces a .bbl file where you could manually delete the space if it is urgent. –  Martin Scharrer Feb 5 '11 at 17:28
    
It's in all of the citations (>100!) I did verify that there were no extra spaces in the .bib file. –  user3363 Feb 5 '11 at 17:31
    
It is probably to late to change to BibLaTeX, isn't it? –  Martin Scharrer Feb 5 '11 at 17:33
    
Unfortunately it is too late to change unless there is a tool to convert my bib files to biblatex versions. I guess if there is no easy answer, I can edit the .bbl by hand. (UPDATE: It was actually a quick and easy fix in .bbl, I was able to do a replace all on "~)," to "),", which fixed them all, but left everything else alone! Thanks for the help Martin - you're a life-saver! –  user3363 Feb 5 '11 at 17:37
    
You can use Search&Replace with almost every texteditor. If the journal editor request the LaTeX code copy the edited .bbl file to "references.tex" and \input that one in you document instead of using BibTeX. It's just a workaround but should "just do it". –  Martin Scharrer Feb 5 '11 at 17:40