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 the following code:

\documentclass[a4paper]{article}

% PACKAGES
\usepackage[english,ngerman]{babel}
\usepackage[utf8]{inputenc}

\usepackage[ngerman]{varioref}
\usepackage{hyperref}
\usepackage[ngerman]{cleveref}

\begin{document}

\section{Test}\label{test}

\foreignlanguage{english}{here some english text..}
%\selectlanguage{ngerman}

german text.. \cref{test}.

\end{document}

The reference should be in german, because the default language is set to german. But cleverref always prints references in english language after \foreignlanguage{english}{some english text..}. I can avoid this strange behaviour by appending \selectlanguage{ngerman} but this look more like a hack instead of a real solution.

Does anyone have a solution for that (or do I misunderstand the concept of \foreignlanguage)?

share|improve this question
    
Your code works fine for me. Are your packages up to date? –  Andrew Swann May 9 at 14:23
    
The MWE works fine for me, too. (cleveref.sty 2013/12/28 v0.19) –  cgnieder May 10 at 12:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.