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 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...

share|improve this question
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 '13 at 5:24
@Xavier Yes, it's unicode UTF8. –  Adam Matan May 30 '13 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 '13 at 16:00
@Xavier thanks - could you post it as an answer so I can accept it? –  Adam Matan Jun 1 '13 at 19:13
add comment

1 Answer

up vote 1 down vote accepted

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.

share|improve this answer
add comment

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.