LaTeX forum ⇒ Fonts & Character SetsParts 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

Postby mayak » Thu Mar 15, 2012 12:12 pm

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:

  1. \documentclass[12pt]{article}
  2.  
  3. \usepackage{ucs} % package to add unicode support
  4. \usepackage[utf8x]{inputenc} % adding the UTF-8 encoding
  5. \usepackage[english,hebrew]{babel} % telling babel: english & hebrew in doc.
  6. \usepackage{hebfont} % Adding a selection of fonts.
  7.  
  8. \begin{document}
  9. ahah
  10. \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):

  1. miktex-makemf: The jerus source file could not be found.
  2. Running hbf2gf.exe...
  3.  
  4. hbf2gf (CJK ver. 4.8.0)
  5.  
  6. Couldn't find `jerus.cfg'
  7. miktex-maketfm: No creation rule for font jerus10.
  8.  
  9. ! Font LHE/cmr/m/n/12=jerus10 at 12.0pt not loadable: Metric (TFM) file not fou
  10. nd.
  11. <to be read again>
  12. relax
  13. l.9 \begin{document}
  14.  
  15. ?

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:

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

Postby justdeath » Thu Mar 15, 2012 10:58 pm

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:
  1. doc,fonts,tex


You must extract them in you texmf directory of your distribution:
  1. TeXLive: C:\texlive\2011\texmf-dist
  2. 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

Postby ice_cream » Tue Mar 05, 2013 9:23 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

Postby ice_cream » Sun Mar 24, 2013 11:17 am

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

Postby Leo__ » Tue Sep 02, 2014 4:01 pm

It did not work for me. :(

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Sep 02, 2014 6:36 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).
  1. % compile with xelatex
  2. \documentclass{report}
  3. \usepackage{polyglossia}
  4. \setmainlanguage{english}
  5. \setotherlanguage{hebrew}
  6. \usepackage{fontspec}
  7. \setmainfont{Linux Libertine O}
  8. \begin{document}
  9.  
  10. \chapter{english}
  11. \refname \newline
  12. \figurename\newline
  13. \tablename\newline
  14.  
  15. \selectlanguage{hebrew}
  16. \chapter{hebrew}
  17. \refname \newline
  18. \figurename\newline
  19. \tablename\newline
  20. \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

Postby Leo__ » Thu Sep 04, 2014 2:50 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}

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Sep 04, 2014 3:52 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

Postby Leo__ » Sun Oct 05, 2014 3:22 pm

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.


Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 1 guest