[XeTeX] Restoring text to the default English font in Latex/fontspec/Bidi
sjo
sjo222 at gmail.com
Tue Sep 18 04:52:32 CEST 2007
On 9/17/07, François Charette <firmicus at ankabut.net> wrote:
> ...
> \newenvironment{Hebrew}{\setRL\ezra}{\unsetRL}
> ...
> Regards,
>
> François
>
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?
Also, I have discovered that there is a problem with footnotes in
Hebrew. The little file below shows the problem (PDF attached).
===
\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}}
\begin{document}
Hello in English\footnote{This is an english footnote}.
Let's try some Hebrew.
\begin{Hebrew}
תוכנת\footnote{אלו עולות אלפי שקלים, וכן קשה מ}
\end{Hebrew}
We are back in English. If we look at the PDF we see the English
footnote 1 is fine but not the Hebrew footnote 2. The footnotenumber
appears but not the Hebrew content of the footnote.
Also, without the renewcommand to redefine the footnoterule, the line
separating the main text from the footnote area overlaps text.
\end{document}
===
Thanks ... Jon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xetex-footnote.pdf
Type: application/pdf
Size: 23268 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070917/738eb211/attachment-0001.pdf
More information about the XeTeX
mailing list