6

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$
}
3
  • Pardon my ignorance, but what's a "dual form"?
    – Mico
    Commented Sep 13, 2012 at 10:14
  • @Mico Some languages have singular, dual and plural. Czech has dual, IIRC, for things that are considered as a pair.
    – egreg
    Commented Sep 13, 2012 at 10:21
  • 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
    Commented Sep 13, 2012 at 10:54

1 Answer 1

7

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .