## LaTeX forum ⇒ Fonts & Character Sets ⇒ Parts of a Document in Hebrew

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
mayak
Posts: 4
Joined: Tue Mar 13, 2012 5:42 pm

### Parts of a Document in Hebrew

Hi,

I have to write the abstract to my thesis in Hebrew
I search the entire web and tried everything that was suggested. Nothing worked. Here is my current code:

\documentclass[12pt]{article} \usepackage{ucs}   % package to add unicode support\usepackage[utf8x]{inputenc}  % adding the UTF-8 encoding\usepackage[english,hebrew]{babel}  % telling babel: english & hebrew in doc.\usepackage{hebfont}  % Adding a selection of fonts. \begin{document}ahah\end{document}

as you can see there's even no hebrew there and still i get the message (after using the command: "pdflatex file_name.tex", i don't know if that's important):

miktex-makemf: The jerus source file could not be found.Running hbf2gf.exe... hbf2gf (CJK ver. 4.8.0) Couldn't find jerus.cfg'miktex-maketfm: No creation rule for font jerus10. ! Font LHE/cmr/m/n/12=jerus10 at 12.0pt not loadable: Metric (TFM) file not found.<to be read again>                     relax l.9 \begin{document} ? 

I have no idea why. I searched for the error over the web too and found no solution that helped me. Can anyone please please help me? If not I'll have use word, and i really don't want to...

Thanks.

Tags:

justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am
Fonts are a tricky thing. (So is google, but that is another story).

ftp://ftp.cam.ctan.org/tex-archive/lang ... BREW32.ZIP
You can even check the so many directories there, which I did (unfortunately):
ftp://ftp.cam.ctan.org/tex-archive/lang ... ew/hebtex/

Because I started trying to install the fonts the hard way.
At least I found a very useful manual on METAFONT:
ftp://ftp.tex.ac.uk/tex-archive/info/me ... inners.pdf

So, open the archive, you need the directories in texmf, exactly:
doc,fonts,tex

You must extract them in you texmf directory of your distribution:
TeXLive: C:\texlive\2011\texmf-distMiKTeX: C:\Program Files\MiKTeX 2.9

Press Start -> Run -> cmd, then type texhash and press enter.
This will refresh the tex database.

Nikolay

ice_cream
Posts: 2
Joined: Tue Mar 05, 2013 8:50 pm
Hi,

I also have to write my thesis with an Hebrew chapter. I do have the same error message.

Did you solve the problem and how?

Thank you

ice_cream
Posts: 2
Joined: Tue Mar 05, 2013 8:50 pm
Hi,

I fixed the problem by installing Hebrew fonts from:
http://www.ma.huji.ac.il/~sameti/tex/culmusmiktex.html

I hope it can help others.

Leo__
Posts: 22
Joined: Thu Oct 28, 2010 4:33 pm
It did not work for me.

Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm
Sorry to hear that, but what do you expect a helper to do now?

Leave some more information, say what you have tried and maybe a solution can be found.

As you can see in the following example, everything is fine (at least i hope so, i can't read nor speak hebrew).
% compile with xelatex\documentclass{report}\usepackage{polyglossia}\setmainlanguage{english}\setotherlanguage{hebrew}\usepackage{fontspec}\setmainfont{Linux Libertine O}\begin{document} \chapter{english}\refname \newline\figurename\newline\tablename\newline \selectlanguage{hebrew}\chapter{hebrew}\refname \newline\figurename\newline\tablename\newline\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Leo__
Posts: 22
Joined: Thu Oct 28, 2010 4:33 pm
Sorry my last post sounded a bit desperate. I was in the middle of trials.

After a few hours, I uninstalled WinEdt, Miktex 9 (although I had the updated versions already) and culmus and reinstalled them. And it worked. Something must have been wrong with my installation.

As to your Xelatex suggestion, Johannes_B, I cannot compile it. I get a message similar to that of mayak but with Linux Libertine.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Linux Libertine O" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................

l.7 \setmainfont{Linux Libertine O}

Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm
mayak never noted that error.
You can also try \usepackage{libertine}` instead of seeting the main font.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Leo__
Posts: 22
Joined: Thu Oct 28, 2010 4:33 pm
Thank you !