[XeTeX] Restoring text to the default English font in Latex/fontspec/Bidi
sjo
sjo222 at gmail.com
Sun Sep 23 05:10:12 CEST 2007
Dear François:
Thanks for your help once again.
I am using Texlive 2007 with Windows XP. Are there instructions for
how to update to the latest xetex for the Windows distribution?
I have discovered that the Hebrew diacritical signs (nekudot) display
nicely with the Ezra and Adobe Hebrew fonts but not with the standard
Hebrew Windows font (e.g. David or Narkisim) that display the signs
nicely in word 2007.
I am wondering what the properties are of a Hebrew font that will
display properly under xetex/fontspec.
Jon
On 9/22/07, François Charette <firmicus at ankabut.net> wrote:
>
> Jon,
>
> This behaviour is no doubt due to your using version 0.996 or earlier of
> XeTeX. See § 1.1 of the bidi documentation:
> http://tug.ctan.org/cgi-bin/getFile.py?fn=/macros/xetex/latex/bidi/bidi.pdf
> On my system your example comes out correctly (I use XeTeX 0.996-patch1
> which is a bugfix release of the stable 0.996 version that comes with
> TeXLive 2007). However I had to define \setromanfont otherwise fontspec
> complains with several error messages. So you should definitely try to
> update to the latest development version, which is not difficult on
> Linux or Mac if you follow the instructions on the XeTeX webpage.
>
> Best,
>
> Franّçois
>
>
> sjo a écrit :
> > Dear François:
> >
> > Thanks for your advice which has been most helpful. I now have
> > footnotes working correctly (see below).
> >
> > There are some further questions. The whole page is not centered (i.e.
> > equal left and right margins but is pushed over to the right). I don't
> > remember this as being standard for article style. See attached PDF.
> >
> > There is also a space between the footnote number and the start of the
> > text of the footnote.
> >
> > Also the English footnote number is indented while the Hebrew footnote
> > number is not.
> >
> > Thanks for your help once more.
> >
> > Jon
> >
> > ===
> > \documentclass[12pt]{article}
> > \usepackage{fontspec}
> > \usepackage{xunicode,xltxtra}
> > \usepackage{bidi}
> > \newfontfamily\ezra[Script=Hebrew]{Ezra SIL}
> > \newenvironment{Hebrew}{\setRL\ezra}{\unsetRL}
> >
> > %Stuff for the footnote ruler
> > \makeatletter
> > \renewcommand{\footnoterule}{\kern-3\p@
> > \hrule width \textwidth \kern 2.6\p@}
> > \makeatother
> > %\renewcommand{\footnoterule}{\vspace{4mm}\rule{\textwidth}{.09mm}\vspace{1mm}}
> > \def\hfootnote#1{\footnote{\ezra #1}}
> >
> > \begin{document}
> >
> > Hello in English\footnote{This is an english footnote} including an
> > English footnote.
> >
> > Let's try some Hebrew with a Hebrew footnote.
> >
> > \begin{Hebrew}
> > תוכנת\footnote{\ezra
> > עולות אלפי שקלים, וכן קשה מ
> > }
> > \end{Hebrew}
> >
> > We are now back in English mode and an english footnote\footnote{footnote 2}.
> >
> > Let's try some more Hebrew with a second Hebrew footnote.
> >
> > \begin{Hebrew}
> > תוכנת\hfootnote{
> > עולות אלפי שקלים, וכן קשה מ 2
> > }
> > \end{Hebrew}
> >
> >
> > \end{document}
> > ===
> >
>
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
More information about the XeTeX
mailing list