5

I want to write a modern CV with some Hebrew letters. moderncv works fine alone:

\documentclass{moderncv}\firstname{}\familyname{}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\begin{document}
English
\end{document}

Hebrew also works fine alone:

\documentclass{article}
\usepackage[utf8x]{inputenc}
\usepackage[hebrew,english]{babel}
\begin{document}
English
\R{עברית}
\end{document}

But, when I try to run them together:

\documentclass{moderncv}\firstname{}\familyname{}
\usepackage[utf8x]{inputenc}
\usepackage[hebrew,english]{babel}
\begin{document}
English
\R{עברית}
\end{document}

I get many error messages of the form:

"Undefined control sequence. }". File: rlbabel.def. Line: 188 

Is there a way to make them work simultaneously?

7
  • 2
    perhaps you should add that the error is about \thesection not being known, as well as \thesubsection etc.
    – user31729
    Aug 12, 2016 at 14:42
  • @heather I installed TexLive on my system using this script: github.com/scottkosty/install-tl-ubuntu that automatically installes Hebrew support Aug 12, 2016 at 14:43
  • @heather: The fact that share latex does not provide the fonts is not the error here
    – user31729
    Aug 12, 2016 at 14:44
  • I've deleted my solution since I can't compile it beyond the point where the real Hebrew font is needed -- I don't have such fonts on my distribution.
    – user31729
    Aug 12, 2016 at 15:10
  • 1
    Perhaps using polyglossia is the better way to go here?
    – user31729
    Aug 12, 2016 at 15:12

2 Answers 2

2

I think that the solution here might be to use XeLaTeX (LuaLaTeX did not work for the following MWE) with polyglossia.

\documentclass[]{moderncv}
\firstname{}
\familyname{}

\usepackage{fontspec}
\usepackage[unicode]{hyperref}
\usepackage{bookmark}

\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{hebrew}
\newfontfamily{\hebrewfont}{Linux Libertine O}[Scale=MatchUppercase]

\begin{document}
English
\texthebrew{עברית}
\end{document}
0
2

Well, I do not know the hebrew language, but you can try the package cjhebrew to solve your problem. But I ask you to test it, because I can not say if the result is correct.

Please try the following MWE:

\documentclass{moderncv}\firstname{}\familyname{}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\usepackage{cjhebrew} % <===========================================
\begin{document}
English
\begin{cjhebrew} % <================================================
b*:re’+siyt b*ArA’ ’E:lohiym ’et ha+s*Amayim w:’et hA’ArE.s; w:hA’ArE.s
hAy:tAh tohU wAbohU w:.ho+sEk: ‘al--p*:ney t:hOm
\end{cjhebrew}
\end{document}

with the resulting pdf on my system with current MiKTeX 2.9:

enter image description here

PS the hebrew text I took from this question.

1
  • the hebrew text here is displayed from left to right, it's backwords...
    – Elad Den
    Aug 14, 2016 at 6:56

You must log in to answer this question.

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