Fonts & Character SetsParts of a Document in Hebrew

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

Parts of a Document in Hebrew

Post by mayak »

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:

Code: Select all

\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):

Code: Select all

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

Parts of a Document in Hebrew

Post by justdeath »

Fonts are a tricky thing. (So is google, but that is another story).

Download this:
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:
http://metafont.tutorial.free.fr/downloads/mftut.pdf
ftp://ftp.tex.ac.uk/tex-archive/info/me ... inners.pdf

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

Code: Select all

doc,fonts,tex
You must extract them in you texmf directory of your distribution:

Code: Select all

TeXLive: C:\texlive\2011\texmf-dist
MiKTeX: C:\Program Files\MiKTeX 2.9
Press Start -> Run -> cmd, then type texhash and press enter.
This will refresh the tex database.

Compile your file. Have fun!

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

Re: Parts of a Document in Hebrew

Post by ice_cream »

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

Parts of a Document in Hebrew

Post by ice_cream »

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: 28
Joined: Thu Oct 28, 2010 4:33 pm

Re: Parts of a Document in Hebrew

Post by Leo__ »

It did not work for me. :(
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Parts of a Document in Hebrew

Post by Johannes_B »

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

Code: Select all

% 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: 28
Joined: Thu Oct 28, 2010 4:33 pm

Re: Parts of a Document in Hebrew

Post by Leo__ »

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}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Parts of a Document in Hebrew

Post by Johannes_B »

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: 28
Joined: Thu Oct 28, 2010 4:33 pm

Re: Parts of a Document in Hebrew

Post by Leo__ »

Thank you !

With \usepackage{libertine}, your suggestion works.

I will use polyglossia for future (xe)latex files.

However, as a publisher that has very big latex files (using babel with several languages including Hebrew, English, French and Greek) that used to compile well, I wish I could have a solution without resorting to polyglossia.

I thought I had solved the problem by reinstalling Miktex, culmus, etc. But I ran into the exact same problem again when I tried to recompile these (not so old: max 2 or 3 years old) files.
Post Reply