[XeTeX] bidi.sty for plain XeTeX

John Was john.was at ntlworld.com
Fri Dec 21 23:24:57 CET 2012


I'm not an Arabist but have occasionally had to typeset articles in plain 
XeTex using Arabic, and all I have in my file header is:

\TeXXeTstate=1 % this turns e-TeX's bidi functionality on
\def\intextarab#1{{\arabic {\beginR #1\endR}}}

I define \arabic as a call to my Arabic font (the definition of \arabic 
changes according to whether  I'm in main text, footnote text, or extract 
text).  To achieve Arabic I just give \intextarab{ARABIC TEXT HERE}. That 
works fine for bits of Arabic embedded in English (or other left-to-right) 
text in the same paragraph.  For separate Arabic paragraphs you really just 
need
\beginR

and at the end

\endR


There are no doubt slicker ways of doing things, but that gave me good 
output first time round so I stuck with it!


John



----- Original Message ----- 
From: "heer" <heer at u.washington.edu>
To: "Unicode-based TeX for Mac OS X and other platforms" <xetex at tug.org>
Sent: 21 December 2012 21:52
Subject: [XeTeX] bidi.sty for plain XeTeX


>
>  Is there a bidi.sty file for plain XeTeX or only for XeLateX? I'd like to 
> be able to use Arabic script in plain XeTeX.
>
> Nicholas
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex 



More information about the XeTeX mailing list