[XeTeX] bidi problem?

Vafa Khalighi vafakh84 at gmail.com
Tue Apr 13 05:55:37 CEST 2010

This response goes back to this post:

The solution I provided, only works for normal text and does not work for
list (i.e. itemize). The following code seems to fix both:







\setbox\@tempboxa\hbox\bgroup\if at RTL\beginL\fi\vbox\bgroup

\color at begingroup


\textwidth\hsize \columnwidth\hsize


\def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c at mpfootnote\z@


\let\@listdepth\@mplistdepth \@mplistdepth\z@













\@minipagefalse %% added 24 May 89

\color at endgroup


\if at RTL\endL\fi




Only one issue remains and that is if you have



\begin{document} \setRTL



\item This is a test.




The indentation of list does not work here. The simplest solution is to have
\leavevmode after \begin{minipage} but that produces a blank like which you
could fix that by \vspace{-\baselineskip}.

The actual question is, what is the best place for that \leavevmode?
Best wishes,
Vafa Khalighi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100413/f591f42f/attachment.html>

More information about the XeTeX mailing list