in the School of Mathematical Sciences

at Tel Aviv University

Assumption: you use vi to edit your tex files. (It is also possible to use emacs; we do not discuss it here.)

  1. Add the following 3 lines into your file ".cshrc" (if you do not have them already):

    set path=($path ~haran/bin)
    alias xet 'haranxetsetup -d -b -cs -l -r -rev -set -hebinp.tmp -rm ' #for vim user
    alias laxet 'haranxetsetup -d -b -cs -l -r -rev -set -latex -hebinp.tmp -rm ' # for latex vim user

    (Pay attention that none of these 3 lines breaks into two separate lines!)

  2. Enter into the directory in which you want to do hebrew editing. Execute there:

    cp ~haran/vimrc ~/.vimrc
    cp ~haran/bin/develop/demo.xet .
    cp ~haran/TeXInputs/moshe.fnt .
    cp ~haran/TeXInputs/hebrew.mac .
    cp ~haran/TeXInputs/heb_macros_newcode.tex .
    cp ~haran/TeXInputs/hebcal_newcode.sty .
    cp ~haran/TeXInputs/nikud.tex .
    ln -s ~haran/texmf ~/texmf

  3. Logout and login again. Actually, the command
    source ~/.cshrc
    should suffice.

    Editing in hebrew:

    will create a usual X-window with hebrew/english font.

    Inside this window:
    vim -H blabla.xet
    will open file blabla.xet (please do use the ending .xet for later processing).

    Use usual vi commands. Use Ctrl-/ to switch between hebrew and english. Furthermore, if you are in hebrew mode, F9 will put you into "math-mode" (between two dollars), while F10 will put you into "english mode" for writing short passages in english (this is something needed for tex; to escape from either of them use Ctrl-/).

    File demo.xet (in your prefered directory by now) contains something in tex with hebrew. (Look at it.) To process it, give command

    xet demo

    This will create files "demo.log" and "demo.dvi". To process a LaTeX file file.xet, give command

    laxet file

    To view/print the file you can use the usual xdvi/dvips commands.

    How does it work?


    - If the mixed hebrew/english font in "heb" is OK, you can make your default xterm windows to have it. This way you can do TeX in Hebrew in every window. In case of necessity, you can always change the font, with control-mouse_right_button.

    - If you are a faculty member, you can search for phone numbers of faculty members. Type on the command line in Hebrew (!)
    [mem][tsadik][aleph] xxxx
    where xxxx is the name (in Hebrew) of the person. Thus to look for Haran you will actually have typed
    nmt vri