[Tex/LaTex] Help getting started with Hebrew in babel

babelhebrew

I want to write a document that will contain only Hebrew text (and some diagrams). I understand that babel is probably the best way to do it but I am getting utterly confused and haven't been able to attain Hello World level yet.

So I am asking for a minimal working example of a Hello World in Hebrew.

If that matters, I work in TeXnicCenter but am ready to switch anything else that runs under windows if necessary.

EDIT:

This is the file that produces the 100 errors:

\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{hebrew} 
\newfontfamily{\hebrewfont}{New Peninim MT}
\setmainfont{New Peninim MT}

\begin{document}
\maketitle
\end{document}

Best Answer

I suggest you to try XeLaTeX and Polyglossia; in my experience, installing full Hebrew for babel has been painful. Not that I know any Hebrew, but I had to typeset some text in that language.

Here's an example. You may need to change the font name; what font to use depends on your operating system, but any OpenType or TrueType system font supporting Hebrew should be good. The \newfontfamily{\hebrewfont}{...} may be needed or not, depending on how the font advertises its support for Hebrew.

The text has been taken from the page on Jerusalem in the Hebrew Wikipedia, http://he.wikipedia.org/wiki/ירושלים

If http://translate.google.com is not mistaken, the title should mean “Hello world”.

\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{hebrew}
\setmainfont{New Peninim MT}
\newfontfamily{\hebrewfont}{New Peninim MT}
\begin{document}
\title{שלום עולם}
\author{שלום עולם}
\maketitle

העיר מקודשת ליהדות, לנצרות ולאסלאם, והיוותה מרכז חיי העם היהודי בימי
קדם ומושא געגועיו בזמן שהייתו בגלות. משום מרכזיותה בעולמם של המאמינים,
הייתה העיר מוקד למלחמות וסכסוכים הנמשכים עד עצם היום הזה. מאז סוף המאה
ה-19 התפתחו סביב העיר העתיקה שכונות העיר החדשה, המהוות כיום את רובה
המוחלט של העיר. במרכזה של ירושלים השלמה עומד הר הבית, שמפריד בין מערב
ירושלים למזרח ירושלים.

בשנת 1981 הוכרזה העיר העתיקה של ירושלים כאתר מורשת עולמית על ידי ארגון
אונסק"ו של האומות המאוחדות, והיא נמצאת ברשימת האתרים בסיכון.


\end{document}

enter image description here

Related Question