[XeTeX] Using hebrew

Gedalin Michael gedalin at bgu.ac.il
Wed Mar 7 05:55:06 CET 2007


Try this:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

\documentclass{article}
\TeXXeTstate=1
\usepackage{fontspec}
\newcommand{\LL}{\everypar={\setbox0=\lastbox \beginL \box0 }} %  
switch to English
\newcommand{\RR}{\everypar={\setbox0=\lastbox \beginR \box0 }} %  
switch to Hebrew

\begin{document}
\large
\fontspec{Lucida Grande}

\LL
test

\RR
ניסוי

\end{document}


***********************************************
* Michael Gedalin
* Department of Physics
* Ben-Gurion University
* POBox 653
* 84105 Beer-Sheva, Israel
* tel: 972-8-6461645
* fax: 972-8-6472904
* email: gedalin at bgu.ac.il
* http://physics.bgu.ac.il/~gedalin
***********************************************






More information about the XeTeX mailing list