01.08.2013 Views

Using Hebrew LaTeX and gvim to produce DVI - Faculty of ...

Using Hebrew LaTeX and gvim to produce DVI - Faculty of ...

Using Hebrew LaTeX and gvim to produce DVI - Faculty of ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Draft version: May 5, 1999<br />

default extensions (.<strong>to</strong>c, .l<strong>of</strong> <strong>and</strong> .lot), while the RL files have<br />

reversed extensions (.cot, .fol <strong>and</strong> .<strong>to</strong>l). For example, <strong>to</strong> include RL<br />

tables at the beginning <strong>and</strong> LR tables before the end <strong>of</strong> the document:<br />

------------------------------------<br />

\begin{document}<br />

\sethebrew<br />

\table<strong>of</strong>contents % Generates .cot file<br />

\lis<strong>to</strong>ffigures % Generates .fol file<br />

\lis<strong>to</strong>ftables % Generates .<strong>to</strong>l file<br />

...<br />

\unsethebrew<br />

\table<strong>of</strong>contents % Generates .<strong>to</strong>c file<br />

\lis<strong>to</strong>ffigures % Generates .l<strong>of</strong> file<br />

\lis<strong>to</strong>ftables % Generates .lot file<br />

\end{document}<br />

------------------------------------<br />

All 6 files are generated simultaneously in two latex passes !<br />

2.7 Defining new theorem like environment<br />

When you use the \newtheorem comm<strong>and</strong> you have <strong>to</strong> spell the name <strong>of</strong> the environment<br />

using <strong>to</strong>kens like \alef <strong>and</strong> \bet as in (note the \R{}):<br />

\newtheorem{theorem}{\R{\mem\shin\pe\tet}}<br />

Table 2.1 lists all the <strong>Hebrew</strong> letters <strong>to</strong>kens.<br />

\alef \zayin \lamed \ayin \resh<br />

\bet \het \finalmem \finalpe \shin<br />

\gimel \tet \mem \pe \tav<br />

\dalet \yod \finalnun \finaltsadi<br />

\he \finalkaf \nun \tsadi<br />

\vav \kaf \samekh \q<strong>of</strong><br />

2.8 Creating an index<br />

Table 2.1: <strong>Hebrew</strong> letters <strong>to</strong>ken names<br />

In order <strong>to</strong> create an index use the makeidx package. Put in the preamble:<br />

\usepackage{makeidx}<br />

You also have <strong>to</strong> put a \printindex comm<strong>and</strong> where you want the index <strong>to</strong> appear.<br />

Whenever you want <strong>to</strong> add a word/term <strong>to</strong> the index use the \index comm<strong>and</strong>. Note that<br />

what’s inside the braces will not show on the text, so commonly you’ll repeat it outside, as in:<br />

I want this term\index{term} <strong>to</strong> appear in the index<br />

DRAFT<br />

9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!