# How do I add Hebrew support to TeXLive on Windows (with pdfTeX+babel)?

I just downloaded & installed TeXLive 2012 on my Windows 7 box, including Hebrew language support. I then tried to process the following document:

\documentclass{article}
\usepackage[english,hebrew]{babel}
\begin{document}
\L{Hello World}, שלום עולם.
\end{document}


And got the well-known:

(d:/texlive/2012/texmf-dist/tex/generic/babel/lhecmr.fd)name = jerus10, rootname = jerus, pointsize = 10 mktexmf: empty or non-existent rootfile!

kpathsea: Running mktexmf jerus10.mf

The command name is D:\texlive\2012\bin\win32\mktexmf Cannot find jerus10.mf.

! Font LHE/cmr/m/n/10=jerus10 at 10.0pt not loadable: Metric (TFM) file not found.

What are the step-by-step instructions for making pdfTeX+babel+Hebrew work after installing TeXLive?

Notes:

• Suggestions that I use LuaTeX/XeTeX instead are not relevant here (for various reasons).
• instructions which include both the Culmus and pre-Culmus fonts (Jerusalem, Tel-Aviv, etc.) would be best.
-
– Martin Schröder May 9 '13 at 17:48

If you go to the babel package's CTAN site (available here) you'll notice there are a couple of important pdfs:

1) The package documentation 1 & 2

Please refer to Chapter 63 of the package documentation for specific information regarding the Hebrew language, and to Chapter 64 for information regarding right-to-left support.

Furthermore, the PDF "Installing support for Hebrew" describes step by step what you need to do in order to have everything up and running. Please really take some time to look at it, since it has all the answers you need.

-
Will do, but - why is that not part of the TeXLive Hebrew support package? – einpoklum May 9 '13 at 9:53
Ok, some of that works, but it's not the "right way" to do it: It doesn't include Omega font variants support, Hebrew type1 variants support, and of course no Culmus. Will write a more direct and succinct description below. – einpoklum May 9 '13 at 13:00

The following works, but is a poor hack. The reason is that what we "really" want to do is get TeX to use the Culmus fonts whenever possible (or maybe always), rather than the older Hebrew fonts.

It is based on the pertinent instructions in the babel package documentation, which @MarioSE's answer refers to, and is adapted to TeXLive 2012 (it had last been updated in 2005).

So, without further ado:

1. Install TeXLive (let's suppose you've put it in C:\texlive) with Hebrew language support.

Note: Do not get the ivritex-dist tarball, or the "latest version", or any such thing. Those include Culmus support and my instructions don't cover them unfortunately.

3. From within the ivritex tarball, extract the directory fonts/hebfonts to C:\texlive\texmf-local\fonts\source\hebrew

4. Create the directory C:\texlive\texmf-local\fonts\map\fontname.
5. Create the file C:\texlive\texmf-local\fonts\map\fontname\special.map. Its contents should be as specified in section 10 of the instructions here. Ignore the preamble to section 10 and all other instructions, just copy the file contents to your special.map.
6. Update the TeX distribution filename database, the font maps and the formats, using the TeXLive distribution manager (or from the command line if you know how.)

That's it. The MWE in the question should now compile and produce a nice PDF. The font used for the Hebrew glyphs will be Jerusalem. This does not necessarily mean you're done; as you can see in the ivritex tarball or the more up-to-date culmus tarball at the ivritex download site, there's more we have not installed and configured.

-
Is this still needed when we now have XeTeX/LuaTeX? – Martin Schröder May 9 '13 at 17:47
@MartinSchröder: Note that this whole question is about babel, not polyglossia which is the future for Hebrew typesetting (and requires XeTeX). As for LuaTeX, I really can't say since I haven't used it. The example in the question you linked to above is too limited to judge the overall state of Hebrew support. – einpoklum May 9 '13 at 20:48
polyglossia and babel are/will be adapted to LuaTeX. – Martin Schröder May 9 '13 at 21:49