\font\Jer=Jerusalem
\font\Tel=TelAviv
\font\Dead=DeadSea
\font\Old=OldJaffa
\def\today{\number\day\space\ifcase\month\or
January\or February\or March\or April\or May\or June\or 
July\or August\or September\or October\or November\or
December\fi
\space\number\year}
\footline={\phantom{\rm\today}\hfil\rm\folio\hfil\rm\today}
%
\let\nb=\nobreak
\let\q\quad  \let\qq\qquad
\def\bn{\bigbreak\noindent} \def\mn{\medbreak\noindent} \def\sn{\smallbreak\noindent}
\def\bs{{\char'134}}
\def\bs{{\char'134}}  \def\ec{{\char"21}}
\def\dol{{\char"24}}  \def\ddol{{\dol\dol}}
\def\lb{{\char"7B}} \def\rb{{\char"7D}}
\def\sb{{\char"5F}} \def\sp{{\char"5E}}
\def\hash{{\char"23}}
\font\sc=cmcsc10
\font\rmb=cmbx12
\font\ss=cmss10 at 11pt

\tt
\centerline{\rmb \hfill Hebrew within \TeX\  and LaTeX. \hfill\rm\today}
\vskip0.3truecm
In order to use Hebrew within TeX and/or LaTeX, you have to use a TeX
program

with right-to-left capabilities. Such is eTeX (Extended TeX),

versions of which exist both for Unix and for Windows.
\medskip

Details and data pertaining to installation of eTeX on various
systems are available 

from~~~~~ftp.cc.huji.ac.il/tex~~~~~ via ftp or via
Netscape.
\medskip

In UNIX tex, you type 

~~~~~for oldcode ~~~~~~~~~~ \tt\bs input heb\_macros

~~~~~for newcode ~~~~~~~~~~~~\tt\bs input heb\_macros\_newcode

In DOS PC tex, you type

~~~~~~~~~~~~~~~~~~~~~~~~~~~ \tt\bs input heb\_pc

In the old latex (2.09) on UNIX,  you typed

~~~~~for oldcode ~~~~~~~~~~\tt\bs documentstyle[hebrew,hebcal...]\lb style..\rb

~~~~~for newcode ~~~~~~~~~~\tt\bs documentstyle[hebrew\_newcode,hebcal\_newcode...]\lb style..\rb

In the old latex (2.09) on DOS PC, you typed

~~~~~~~~~~~~~~~~~~~~~~~~~~~\tt\bs documentstyle[hebrew\_p,hebcal\_p...]\lb style..\rb

In the new latex (2e) you use the same keywords for all systems.

The only thing that changes is a parameter on the \tt\bs usepackage\lb inputenc\rb
line. 

On Unix (using new code, 8 bits) you type for latex2e 

~~~~~~~~~~~~~~~~~~~~~~~\tt\bs documentclass[12pt,twoside]\lb class..\rb

~~~~~~~~~~~~~~~~~~~~~~~\tt\bs usepackage[8859-8]\lb inputenc\rb

~~~~~~~~~~~~~~~~~~~~~~~\tt\bs usepackage[hebrew,english,russian,...]\lb babel\rb

~~~~~~~~~~~~~~~~~~~~~~~\tt\bs usepackage\lb hebfont\rb

You substitute 8859-8 by si960 if you work in old code (7-bit hebrew encoding)

You substitute 8859-8 by cp862 if you work in pc code (Hebrew under DOS)

You substitute 8859-8 by cp1255 if you work with Window's Hebrew.

\bigskip
\nopagenumbers
\def\undertext#1{$\underline{\hbox{#1}}$}

{\rmb Hebrew font names:}
\vskip .3cm

In tex and in latex 2.09, those have been the main fonts used:

\vskip .3cm
\settabs\+\indent&\hskip2truecm&\hskip 4truecm&\hskip 3cm&\cr
\+&UNIX&UNIX Newcode&DOS PC&Font looks like this\cr
\+&Jerusalem&Jerusalem\_newcode&Jer\_pc&{~~~~~\Jer cba`}\cr
\+&TelAviv&TelAviv\_newcode&Tel\_pc&{~~~~~\Tel cba`}\cr
\+&DeadSea&DeadSea\_newcode&Dead\_pc&{~~~~~\Dead cba`}\cr
\+&OldJaffa&OldJaffa\_newcode&Old\_pc&{~~~~~\Old cba`}\cr
\vskip .3cm

With latex2e, we use one set of fonts for all systems. 

Those fonts' names
are  jerus10,  telav10,  deads10  and   oldjaf10 .

\medskip
Various other Hebrew fonts are available. 

Hebrew fonts can be
found on ftp.cc.huji.ac.il

\bigskip
{\rmb Control Sequences:}

\settabs\+\indent&\tt\hskip5.5truecm&\cr
\+&\tt\bs sethebrew&Enter hebrew mode\cr
\+&\tt\bs unsethebrew&Go out of Hebrew mode\cr
\+&\tt\bs hebrewpar&Starting one hebrew paragraph with indentation\cr
\+&\tt\bs hebrewlines&Starting one hebrew paragraph without indentation\cr
\+&\cr
\+&\tt\bs L\lb\dots string\dots \rb&English string within a Hebrew environment\cr
\+&\tt\bs R\lb\dots{\Jer zixciq}\dots\rb &Hebrew string within an English environment\cr
\+&\cr
\+&\tt\lb\dots\rb{\Jer ybcd}\tt\bs \ or \tt\bs hadgesh\lb\dots\rb&Making bold letters - Poor man's bold --- 
The TeXbook, page 386\cr
\+&\cr
\+&{\Jer lecbswn}\tt\bs \ or \tt\bs makafgadol&Like the regular -\thinspace -  producing --~, which doesn't work in Hebrew\cr
\+&{\Jer wprswn}\tt\bs \ or \tt\bs makafanak&Like the regular -\thinspace -\thinspace -  producing ---~, which doesn't work in Hebrew\cr
\+&{\Jer yxb}\tt\bs \ or \tt\bs geresh&Like the regular `~, which doesn't work in Hebrew\cr
\+&{\Jer yxbgzt}\tt\bs \ or \tt\bs opengeresh&\char39\cr
\+&{\Jer yxbxebq}\tt\bs \ or \tt\bs closegeresh&`\cr
\+&{\Jer hehivgzt}\tt\bs \ or \tt\bs openquote&Like the regular '', which doesn't work in Hebrew\cr
\+&{\Jer hehivxebq}\tt\bs \ or \tt\bs closequote&Like the regular ``, which doesn't work in Hebrew\cr
\+&{\Jer dwqit}\tt\bs \ or \tt\bs piska&Like the regular \tt\bs item, \rm  modified for Hebrew ~~~~~~~~~~~Not relevant to latex.\cr
\+&{\Jer dwqitdwqit}\tt\bs \ or\  \tt\bs piskapiska&Like the regular \tt\bs itemitem, \rm modified for Hebrew~~~~~Not relevant to latex.\cr
\+&\cr
\+&{\Jer meid}\tt\bs \ or \tt\bs hebday&Today's regular date in Hebrew\cr
\+&\tt\bs Hebrewtoday&Hebrew date in Hebrew~~~~~~~~~~~~~~~~~~~~~~~~Included in hebcal.sty\cr
\+&\tt\bs Hebrewdate~~~~(*)&Converting a Georgian date to a Hebrew date~~Included in hebcal.sty\cr
\+&\cr
\+&{\Jer dlecbdvitw}\tt\bs &Like the regular \tt\bs bigskip\cr
\+&{\Jer zipepiadvitw}\tt\bs &Like the regular \tt\bs medskip\cr
\+&{\Jer dphwdvitw}\tt\bs &Like the regular \tt\bs smallskip\cr
\+&{\Jer oinidxey}\tt\bs &Like the regular \tt\bs rightline\cr
\+&{\Jer l`nydxey}\tt\bs &Like the regular \tt\bs leftline\cr
\+&{\Jer fkxn}\tt\bs &Like the regular \tt\bs centerline\cr
\+&\tt\bs undertext\lb text \Jer hqwh\rb&Produces \undertext{text \Jer hqwh}\cr
%
\bigskip

\bigskip
Note -- Keywords written in Hebrew letters might not be available.

If possible, use the English version of keywords.
\bigskip

A more detailed explanation of Hebrew usage in latex2e is
contained in 

    ~~~~~~~~~hebrew\_latex2e\_usage.txt
\bigskip

\vskip1mm\hrule

(*)

\smallskip
Usage:
\def\bs{$\backslash$}

\bs newcount\bs day~~~ \bs newcount\bs month~~~ \bs newcount\bs year

\bs day=12 ~~~ \bs month=10 ~~~ \bs year=1884

\bs Hebrewdate$\{$\bs day$\}\{$\bs month$\}\{$\bs year$\}$ 

~~~~Result: 
                              
\newcount\d \newcount\m \newcount\hy
\d=12 \m=10 \hy=1884
{   }
\input heb_macros \sethebrew \input hebcal.tex
                  
\sethebrew
\Hebrewdate{\d}{\m}{\hy}

\bye


