Would it be possible to define another command \frcref that is similar to \cref, but when it is called, e.g. \frcref{ch:chapter1}, it displays the French word "Chapitre" instead of the English word "Chapter" in the hyperlink? (\cref should still print the English words.)

  • Have you tried \usepackage[french]{cleveref}? – Mico Mar 29 '19 at 15:31
  • But then all \cref would be in French right? I only need some of them, because there is both Fr and En in my document. – Joe Dumars Mar 29 '19 at 15:38
  • 1
    Then please update your question with this important information about multiple languages in the same document – daleif Mar 29 '19 at 15:59
  • 1
    For example, do please confirm that you load the hyperref package as well. Do you load the babel package? If so, with which language option(s)? And, with which options (if any) do you load the cleveref package? – Mico Mar 29 '19 at 16:04

You can just surround the \cref command with e.g. \foreignlanguage, provided you have passed your languages to both babel and cleveref:

Sample output









Note cleveref with french does not like certain characters, including : in labels.

You can capture this in new macros such as


However, below I have gone further and defined a command \newcreflang with the effect that


defines both \fcref and \fCref in one go. This command could be extended further to create analogues of other macros from cleveref.

Extended sample









\swCref{chap-test} or ``\swcref{chap-test,chap-test-2}'' or

\fCref{chap-test} or
``\fcref{chap-test,chap-test-2}'' or

\chapter{Test 2}

\chapter{Test 3}


(I have switched the other language from danish to swedish, as there is currently an error in the danish set-up in cleveref that I will report to the package author.)

| improve this answer | |
  • @Marijn I get the following error: Missing \endcsname inserted. Any idea where it may come from? – Joe Dumars Mar 30 '19 at 17:27
  • @JoeDumars did you try the exact code that Andrew Swann posted? Did you get any errors there? Or did you get an error when you tried to copy it into your actual document? In that case you might have copied it incompletely or in the wrong position. – Marijn Mar 30 '19 at 21:14
  • @Marijn I get errors when I copy it in my document. I don't think I have copied it incompletely. Concerning the position, I have multiple packages in my document. Where should I copy the Adrew Swann's code? – Joe Dumars Mar 31 '19 at 14:39
  • REgarding ARabic language definitions:tex.stackexchange.com/questions/507166/… – Silva Sep 5 '19 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.