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.

Is there a way I could localize terms in my bibtex entries?

example:

note = {to appear}

I use a bibtex file for articles in english and german and it would be nice to replace the "to appear" in the bibliography with a localized string.

share|improve this question

1 Answer 1

up vote 17 down vote accepted

biblatex provides a pubstate field for publication states, so I suggest to use this field instead of the note field. For localized strings, use the \bibstring macro. See section 4.8 of the manual for details about \bibstring and section 4.9.2.11 for the publication states defined by default. If you really nead an additional toappear state, here's how to do it:

\documentclass{article}

\usepackage[ngerman]{babel}

\usepackage{biblatex}

\NewBibliographyString{toappear}
\DefineBibliographyStrings{english}{%
  toappear = {to appear},
}
\DefineBibliographyStrings{ngerman}{%
  toappear = {im Erscheinen},
}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
  pubstate = {\bibstring{toappear}},
}
@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
  pubstate = {\bibstring{inpress}},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\nocite{*}

\begin{document}

\printbibliography

\end{document}
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.