[XeTeX] Memoir's \legend and arabxetex

Nathan Sidoli nathan.sidoli at utoronto.ca
Sat Jan 30 05:08:07 CET 2010


Thanks,

That works.

Nathan

Vafa Khalighi wrote:
> Hi
>
> This is definitely a bug of bidi. Thanks for reporting. What happens is that
> bidi redefines \makecaption macro of standard LaTeX and memoir also have its
> own definition of \@makecaption.
> I think if you put the blow code before \begin{document} and after loading
> arabxetex package, the problem goes away
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \makeatletter
> \long\def\@makecaption#1#2{\let\@memtempa\relax
>   \ifdim\prevdepth>-99\p@ \vskip\abovecaptionskip
>   \else \def\@memtempa{\vbox to\topskip{}}\fi
>   \let\@contfnote\footnote \renewcommand{\footnote}[2][]{}
>   \let\@contfmark\footnotemark \renewcommand{\footnotemark}[1][]{}
>   \sbox\@tempboxa{\@contnfont #1\@contdelim \@conttfont #2\@contfinal}
>   \let\footnote\@contfnote
>   \let\footnotemark\@contfmark
>   \ifdim\wd\@tempboxa<\linewidth \centering \fi
>   \if at contcw
>     \centering
>     \parbox{\@contcwidth}{%
>     \ifdim\wd\@tempboxa<\@contcwidth \centering \fi
>   \fi
>   \ifdim\wd\@tempboxa<\linewidth
>     \@contpre
>     {\@contnfont #1\@contdelim}\@memtempa
>     {\@contcshortstyle \@conttfont #2\@contfinal\par}
>   \else
>     \if at conthang
>       \sbox\@tempboxa{\@contnfont #1\@contdelim}
>       \@contpre%
>       {\@contcstyle\hangindent=\wd\@tempboxa
>        \noindent\box\@tempboxa\@memtempa \@conttfont #2\@contfinal\par}
>     \else
>       \if at contindent
>         \@contpre%
>         {\@contnfont #1\@contdelim}\@memtempa
>         {\@contcstyle\hangindent=\@contindw
>                      \hangafter=\@ne\@conttfont #2\@contfinal\par}% <- v1.4
>       \else
>         \@contpre%
>         {\@contnfont #1\@contdelim}\@memtempa
>         {\@contcstyle \@conttfont #2\@contfinal\par}
>       \fi
>     \fi
>   \fi
>   \@contpost
>   \if at contcw
>     \par
>     }  % end of the \parbox
>   \fi
>   \vskip\belowcaptionskip}
> \makeatother
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
>   
> ------------------------------------------------------------------------
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
>   



More information about the XeTeX mailing list