[XeTeX] \pardir with XeTeX
Persian TeX Group
persian-tex at tug.org
Wed Apr 17 10:31:16 CEST 2013
Hi
We received an email from a user saying that he expects \pardir to work
with bidi package because it works with context in xetex. Not sure why it
works in context (perhaps context defines \pardir) but if it is really
needed, it can also be defined in bidi package too:
\documentclass{article}
\usepackage{lipsum}
\usepackage{bidi}
\makeatletter
\bidi at newrobustcmd*{\pardir}[3]{%
\if#2R
\@RTLtrue
\else
\if#2L
\@RTLfalse
\else
\PackageError{bidi}%
{Invalid argument `#1#2#3' for \string\pardir}%
\@ehc
\fi
\fi}
\makeatother
\begin{document}
\pardir TRT
\lipsum[1]
\end{document}
However we do not see the point of existence of such macro.
--
Sincerely yours,
Persian TeX Group
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20130417/40d6abf6/attachment.html>
More information about the XeTeX
mailing list