- Install LyX (with the QT frontend)
In Debian, you need to run 'apt-get install lyx-qt'.
- Install the Hebrew Latex macros.
In Debian, just run 'apt-get install ivritex'.
A RPM for RedHat/Mandrake is available
here.
- Install Hebrew fonts.
(for example, Culmus fonts
or Truetype fonts.)
- If you haven't use LyX before, run LyX in order to create the directory ~/.lyx/ and exit.
- Download the file hebrew.bind
and put it in ~/.lyx/bind/
- Put the preferences
file in ~/.lyx/
For the Windows port of LyX, you also need to add the line
\auto_number false
to ~/.lyx/preferences
Alternatively, you you can use the preferences dialog in the following
way:
- Goto Look&Feel>Screen fonts tab.
Select Hebrew fonts.
- Goto Look&Feel>User Interface tab. Change bind
file to "hebrew".
- Goto Goto Look&Feel>Keyboard tab.
Enable the "Use keyboard map" button, and enter
null as 1st keymap, and hebrew as the 2nd keymap.
- Goto Language settings>Language tab. Enable the
"Right-to-left language support" button.
- Press the save button.
If you have an old LaTeX distribution, you may also need to instruct
LyX to use elatex instead on latex:
Goto Converters tab. Select the latex>DVI
converter, and change the converter to "elatex $$i".
Press the modify button.
Also, change the latex>PDF(pdflatex) converter
to "pdfelatex $$i".
- Before running lyx, set the LANG environment variable
to 'he_IL'. This can be done in .bashrc/.tcshrc.
Alternatively, alias lyx to 'env LANG=he_IL lyx'.
- To write a Hebrew document, change the document language to Hebrew
in the document layout dialog (select Layout>Document from the menu, and
then select the language tab).
For a document in English (or other language) that contains Hebrew,
just select the appropriate main language.
Also, in either case, select default input encoding in the document layout
dialog.
- To switch from Hebrew to English press F12.
The direction of the whole paragraph is determined by the direction
of its first char. This causes a problem if you start a Hebrew paragraph
with an English word, as the paragraph will be considered Left-to-Right.
To solve this problem, insert a note as the first char of the paragraph,
and make sure that its language is Hebrew.