[XeTeX] Restoring text to the default English font in Latex/fontspec/Bidi

François Charette firmicus at ankabut.net
Tue Sep 18 08:47:44 CEST 2007


sjo a écrit :
> Dear François:
>
> Thank you for your help. The Hebrew environment works well. Is there a
> way to define a \newfontfamily for the standard CMR fonts so that we
> can always reset it that way?
>
>   
I am not sure I understand your question, but perhaps Will does!

> Also, I have discovered that there is a problem with footnotes in
> Hebrew. The little file below shows the problem (PDF attached).
>
>   
This is because you have to specify the Hebrew font at the beginning of 
the footnote as well:

\footnote{\ezra אלו עולות אלפי שקלים, וכן קשה מ}



> ===
>
> \documentclass[12pt]{article}
> \usepackage{fontspec}
> \usepackage{xunicode,xltxtra}
> \usepackage{bidi}
> \newfontfamily\ezra[Script=Hebrew]{Ezra SIL}
> \newenvironment{Hebrew}{\setRL\ezra}{\unsetRL}
> \renewcommand{\footnoterule}{\vspace{4mm}\rule{\textwidth}{.09mm}\vspace{1mm}}
>   
You must change the last line above to something like :

\makeatletter
\renewcommand{\footnoterule}{\kern-3\p@
\hrule width \textwidth \kern 2.6\p@}
\makeatother

(this is taken from the TeXbook IIRC).





More information about the XeTeX mailing list