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 writing a thesis in my language that, apart from singular and plural forms, has the dual form. I'm using bibtex and I'm having problems with translating the .bst style properly to support the dual form.

How should I modify the following code to satisfy my needs?

FUNCTION {format.editors}
{ editor empty$
    { "" }
    { editor format.names
      editor num.names$ #1 >
    { ", editors" * }
    { ", editor" * }
      if$
    }
  if$
}
share|improve this question
    
Pardon my ignorance, but what's a "dual form"? –  Mico Sep 13 '12 at 10:14
    
@Mico Some languages have singular, dual and plural. Czech has dual, IIRC, for things that are considered as a pair. –  egreg Sep 13 '12 at 10:21
    
@egreg - thanks! –  Mico Sep 13 '12 at 10:46
    
Welcome to TeX.SX! Please, have a look at the FAQ, particularly to How do I ask question here in order to make your contributions to the site even more valuable. –  egreg Sep 13 '12 at 10:54
add comment

1 Answer

up vote 7 down vote accepted

The following seems to work:

FUNCTION {format.editors}
{ editor empty$
    { "" } 
    { editor format.names
      editor num.names$ #1 >
        { editor num.names$ #2 > { ", editors" * } { ", two editors" * } if$ }
        { ", editor" * }
      if$
    }
  if$   
}

Change "two editors" with your dual form.

share|improve this answer
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.