[XeTeX] Problem with the bidi package: chapter titles flushed right
Vafa Khalighi
vafa at users.berlios.de
Thu Aug 20 01:08:13 CEST 2009
Hi Ross,
Yes, you are right. Thanks for saying it. sorry for that, I just copied and
pasted from somewhere and I made a mistake. So that should be:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\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@ \bidiraggedright \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/004f8971/attachment.html>
More information about the XeTeX
mailing list