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 have a custom .bst made with makebst. It works well, except I would like to add an extra field for translated works. Ideally I would like something like "translated by [translator]" to appear after the book's title, where [translator] is the translator's name, when appropriate. I have the information stored in my .bib (under translator), but I don't know how to code the .bst.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I have a solution, based upon this question. The book function becomes

FUNCTION {book}
{ output.bibitem
  author empty$
    { format.editors "author and editor" output.check
      editor format.key output
    }
    { format.authors output.nonnull
      crossref missing$
        { "author and editor" editor either.or.check }
        'skip$
      if$
    }
  if$
  format.btitle "title" output.check
  crossref missing$
    { format.bvolume output
      format.number.series output
      format.publisher.address output
    }
    {
      format.book.crossref output.nonnull
    }
  if$
  format.edition output
  format.translator output
  format.date "year" output.check
  new.sentence
  format.eprint output
  fin.entry
}

where I have defined a new function

FUNCTION {format.translator}
{ translator "translator" format.names
  duplicate$ empty$ 'skip$
  {
     "translated by " swap$ *
  } if$
}
share|improve this answer

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.