I would like to use modernv to create a right-to-left CV document in Hebrew. I have downloaded and installed culmus-latex, and Hebrew+English LaTex documents compile without a problem.

I took template.tex, the moderncv boilerplate file, and added the Hebrew packages:



And changed the documentclass from:




I got the following error:

! Undefined control sequence.
<argument> \thesection 

l.174 }

! Emergency stop.
<argument> \thesection 

l.174 }

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on template.log.

More info:


When the inputenc end babel lines are commented out:


The document compiles, with erroneous Hebrew encoding:

enter image description here

To conclude,

Uh, so, uh, anything you can do to, uh, to help, would be... very... helpful...

  • Have you tried using unicode (utf8) encoding? moderncv does some hyperref setup in unicode by default, which might conflict with your encoding (just a wild guess)...
    – Xavier
    May 30, 2013 at 5:24
  • @Xavier Yes, it's unicode UTF8.
    – Adam Matan
    May 30, 2013 at 9:09
  • If your file is encoded in utf8, you need to use \usepackage[utf8]{inputenc} and remove the \inputencoding{latin9} and \inputencoding{cp1255} from your code.
    – Xavier
    May 30, 2013 at 16:00

1 Answer 1


moderncv works best with unicode encoding for "exotic" characters, due to some internal hyperref setup.

Therefore, you should encode your file in utf8 and use


if you are compiling with pdfLaTeX (or nothing if you are compiling with Xe- or LuaLaTeX) and remove the \inputencoding{latin9} and \inputencoding{cp1255} from your code.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .