TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using fancyref and babel together in a LaTeX document and redefine the label for the equation references by \renewcommand{\frefeqname}{Eq.}, so that they look something like "Eq. (3.4)". However, when I have a foreign language section somewhere like \begin{otherlanguage}{german} ... \end{otherlanguage} then \frefeqname is reset to its default value for English, namely equation. Of course, I can redefine \frefeqname afterwards again, but is quite ugly and I would prefer a clean solution to this problem.

share|improve this question
up vote 2 down vote accepted

The babel package uses \caption<language> to change the caption texts. This macro is called in \selectlanguage or environment otherlanguage. Therefore the redefinitions should be placed in these language macros. It can be done by babel's \addto:


Or the interface of package fancyref can be used, it provides \fancyrefaddcaptions for this purpose, see the documentation of fancyref.



  \fref{eq:einstein} and \fref{eq:velocity}.
    E=mc^2 \label{eq:einstein}
  \fref{eq:einstein} und \fref{eq:velocity}.
    v=\frac st \label{eq:velocity}
  \fref{eq:einstein} and \fref{eq:velocity}.

Language dependent <code>\frefeqname</code>

share|improve this answer

Your Answer


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.