[XeTeX] Problem with the bidi package: chapter titles flushed right

Vafa Khalighi vafa at users.berlios.de
Wed Aug 19 17:47:31 CEST 2009


Thanks for reporting. Put this after loading bidi package and before
\begin{document}:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\newcommand\bidiraggedleft{\if at RTL\raggedright\else\raggedleft\fi}
\newcommand\bidiraggedright{\if at RTL\raggedleft\else\raggedright\fi}
\def\@makechapterhead#1{%
  \vspace*{50\p@}%
  {\parindent \z@ \if at RTL\bidiraggedright\else \normalfont
    \ifnum \c at secnumdepth >\m at ne
        \huge\bfseries \@chapapp\space \thechapter
        \par\nobreak
        \vskip 20\p@
    \fi
    \interlinepenalty\@M
    \Huge \bfseries #1\par\nobreak
    \vskip 40\p@
  }}
\def\@makeschapterhead#1{%
  \vspace*{50\p@}%
  {\parindent \z@ \bidiraggedright
    \normalfont
    \interlinepenalty\@M
    \Huge \bfseries  #1\par\nobreak
    \vskip 40\p@
  }}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

Best Wishes,
Vafa Khalighi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20090820/ab6764e9/attachment.html>


More information about the XeTeX mailing list