This response goes back to this post:
http://tug.org/mailman/htdig/xetex/2010-February/015985.html

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:

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\d...@iiiminipage#1#2[#3]#4{%

\leavevmode

\...@pboxswfalse

\setleng...@tempdima{#4}%

\d...@mpargs{{#1}{#2}[#3]{#4}}%

\setb...@tempboxa\hbox\bgroup\if@RTL\beginL\fi\vbox\bgroup

\co...@begingroup

\hsi...@tempdima

\textwidth\hsize \columnwidth\hsize

\...@parboxrestore

\d...@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@

\l...@footnotetext\@mpfootnotetext

\l...@listdepth\@mplistdepth \...@mplistdepth\z@

\...@minipagerestore

\...@setminipage}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\endminipage{%

\par

\unskip

\ifvo...@mpfootins\else

\vskip\sk...@mpfootins

\normalcolor

\footnoterule

\unvb...@mpfootins

\fi

\...@minipagefalse %% added 24 May 89

\co...@endgroup

\egroup

\...@rtl\endl\fi

\egroup

\expandaft...@iiiparbox\@mpargs{\unhb...@tempbox

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Only one issue remains and that is if you have


\documentclass{article}

\usepackage{bidi}

\begin{document} \setRTL

\fbox{\begin{minipage}[b]{0.6\textwidth}

\begin{itemize}

\item This is a test.

\end{itemize}

\end{minipage}}

\end{document}


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

--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to