%%%%%%%%%%%%%%%%%%%%%%%%%%%%% hebtex.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% hebtex.tex
% version 3.10
% Plain TeX loader for ArabTeX, Hebrew mode
% 16.09.2001
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (c) Klaus Lagally              EMail:  lagallyk@acm.org
%     Institut fuer Informatik   TEL:    +49-711-7816-392
%     Universitaet Stuttgart     FAX:    +49-711-7816-370
%     Breitwiesenstrasse 20-22
%     D-70565 Stuttgart          INFO: arabtex@informatik.uni-stuttgart.de
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   % This program can be redistributed and/or modified under the terms
   % of the LaTeX Project Public License distributed from CTAN
   % archives in directory macros/latex/base/lppl.txt; either
   % version 1 of the License, or (at your option) any later version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \input this file at the beginning of an ArabTeX input file running 
% under Plain TeX. This is an adaptation by Tom Koornwinder of 
% Jan Lodder's file arab.plain.tex, again modified by Klaus Lagally
% and modified again to switch to Hebrew mode
% 16.09.2001
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\message { Plain TeX Hebrew setup for ArabTeX }

\input arabtex.tex 	% load the ArabTeX package

\makeatletter 
\a@ident {hebtex.tex} {3.10 Plain TeX Hebrew loader for ArabTeX} {16.09.2001}

\def \pheb {\hebfont }

\input hebtex.sty	% load the Hebrew extension
\input apatch.sty	% load any patches
\input hepatch.sty	% load any patches

% commands for font selection:

\def \hc {\sethebfont {hclassic}% fix em and ex
		\fontdimen5\hebfont =.8\fontdimen2\hebfont 
		\fontdimen6\hebfont =3\fontdimen5\hebfont }
\def \hp {\sethebfont {hcaption}% fix em and ex
		\fontdimen5\hebfont =.8\fontdimen2\hebfont 
		\fontdimen6\hebfont =3\fontdimen5\hebfont 
		\fontdimen1\font =.2pt }             

\all@wcmd \hc	\all@wcmd \hp		% allow these in Hebrew context

\def \jm {\sethebfont {jerusale}}
\def \Jm {\sethebfont {Jerusalem}}
\def \oj {\sethebfont {OldJaffa}}
\def \ds {\sethebfont {DeadSea}}
\def \ta {\sethebfont {TelAviv}}	% add others as required

\all@wcmd \ds	\all@wcmd \oj	\all@wcmd \jm	\all@wcmd \ta	\all@wcmd \Jm	

\def \shlmold {\sethebfont {shlm_old}% fix ex
		\fontdimen5\font =\fontdimen2\font }
\def \shlmscr {\sethebfont {shlm_scr}% fix ex
		\fontdimen5\font =\fontdimen2\font }
\def \shlmstk {\sethebfont {shlm_stk}% fix ex
		\fontdimen5\font =\fontdimen2\font }

\all@wcmd \shlmold 	\all@wcmd \shlmscr 	\all@wcmd \shlmstk 

\def \fr   {\sethebfont {fr}}
\def \frbx {\sethebfont {frbx}}
\def \frsl {\sethebfont {frsl}}

\all@wcmd \fr  		\all@wcmd \frbx		\all@wcmd \frsl

\def \crml {\sethebfont {crml10}% fix ex
		\fontdimen5\font =\fontdimen2\font } 
\def \crmlsl {\sethebfont {crmlsl10}% fix ex
		\fontdimen5\font =\fontdimen2\font }

\all@wcmd \crml		\all@wcmd \crmlsl
\makeatother

\hc 		% define a default Hebrew font		choose one !
%\jm 		% define a default Hebrew font
%\ds 		% define a default Hebrew font
%\ta 		% define a default Hebrew font
%\oj 		% define a default Hebrew font
%\hp 		% define a default Hebrew font
%\shlmold 	% define a default Hebrew font
%\shlmscr 	% define a default Hebrew font
%\shlmstk 	% define a default Hebrew font
%\fr  		% define a default Hebrew font
%\frbx		% define a default Hebrew font
%\frsl		% define a default Hebrew font
%\crml		% define a default Hebrew font
%\crmlsl	% define a default Hebrew font

\sethebrew		% switch to Hebrew mode

\endinput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EOF %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

