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 trying to customize my bts to match the requirements of my institute. My problem is followingoutput when citing articles that have a number but no volume:

Amable, Bruno (2010): Morals and politics in the ideology of neo-liberalism. In: Socio Economic Review, , 9, S. 3-30.

I'm using the natbib package plus my own bst. created by custombib.

The code in the .bts looks thus:

FUNCTION {format.vol.num.pages}
{ volume field.or.null
  duplicate$ empty$ 'skip$
    {
      "volume" bibinfo.check
    }
  if$
  number "number" bibinfo.check duplicate$ empty$ 'skip$
    {
      swap$ duplicate$ empty$
        { "there's a number but no volume in " cite$ * warning$ }
        'skip$
      if$
      swap$
      ", " swap$ *
    }
  if$ *
}

I'd like bibtex simply to omit the field for the missing volume and directly continue with the number like this:

Amable, Bruno (2010): Morals and politics in the ideology of neo-liberalism. In: Socio Economic Review, 9, S. 3-30.

At the same time, I need the style to continue to print the other entries that have a volume like this:

Amable, Bruno (2010): Morals and politics in the ideology of neo-liberalism. In: Socio Economic Review, 52, 9, S. 3{30.

share|improve this question
    
what bibstyle do you use? –  Herbert Jun 21 '12 at 21:01
    
I called it ioa.bts . It is a author-year style created by makebst.tex. Shall I quote the whole code? –  Sarah Jun 21 '12 at 21:02
    
can place the file anywhere for download ? –  Herbert Jun 21 '12 at 21:04
    
add comment

1 Answer

use this one:

FUNCTION {format.vol.num.pages}
{ volume field.or.null
  volume empty$
    'skip$
    { ", " *  }
  if$
  number empty$
    'skip$
    {  number * }
  if$
}
share|improve this answer
    
Thanks for the fast answer. Now the references without volume are fine, but in the others it doubles the volume combining it with the number making it: ...53, 536, S.... instead of ...53, 6, S.... –  Sarah Jun 21 '12 at 21:27
    
yes, my fault. See edited answer –  Herbert Jun 21 '12 at 21:33
    
Perfect! Thank you so much! –  Sarah Jun 21 '12 at 21:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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