[XeTeX] Using hebrew
François Charette
fcharette at ankabut.net
Wed Mar 7 16:51:56 CET 2007
Yaniv Hollander a écrit :
> Hi,
>
> Can you send me an example that works. I tried using this package, but
> hebrew fonts couldn't be displayed.
>
> Thanks,
Or try this:
\documentclass{article}
\usepackage{fontspec}
\usepackage{bidi}
\setromanfont{Lucida Grande}
\begin{document}
\large
This is text in English with insertion \RL{בעברית}. \footnote{LR Footnote}
\bigskip
\setRL
האביב יפה בישראל ועול לא מזיעים.\footnote{הערת שוליים}
\bigskip
\setfootnoteLR
קשה ללמוד עברית \footnote{LR footnote in RL environment}
\end{document}
%---
If your default font does not have Hebrew, then you need something like this:
\documentclass{article}
\usepackage{fontspec}
\usepackage{bidi}
\setromanfont{Charis SIL}
\newfontfamily\hebfont[Script=Hebrew,Scale=0.8]{Ezra SIL}
\begin{document}
\large
This is text in English with insertion \RL{\hebfont בעברית}. \footnote{LR Footnote}
\bigskip
\setRL\hebfont
האביב יפה בישראל ועול לא מזיעים.\footnote{\hebfont הערת שוליים}
\bigskip
\setfootnoteLR
קשה ללמוד עברית \footnote{LR footnote in RL environment}
\end{document}
More information about the XeTeX
mailing list