[XeTeX] two columns with bidi

وفا خلیقی، Vafa Khalighi vafa at live.com.au
Fri May 1 05:30:13 CEST 2009


The babel patch for two columns you mentioned got bugs and it is about when you use geometry class lets say \usepackage[left=2cm,right=2cm]{geometry} it does not set the right and left margins correctly. I fixed that in xepersian and I believe the perfect code should be

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\RTL at outputdblcol{\if at firstcolumn
\global\@firstcolumnfalse
    \global\setbox\@leftcolumn\box\@outputbox
  \else \global\@firstcolumntrue
    \setbox\@outputbox\vbox{%
     \hbox to\textwidth{%
      \hbox to\columnwidth{\box\@outputbox \hss}%
      \hfil \vrule width\columnseprule\hfil
      \hbox to\columnwidth{\box\@leftcolumn \hss}%
   }}\@combinedblfloats
\@outputpage \begingroup \@dblfloatplacement
\@startdblcolumn
\@whilesw\if at fcolmade \fi
{\@outputpage\@startdblcolumn}\endgroup
    \fi}
\def\LTR at outputdblcol{\if at firstcolumn
\global\@firstcolumnfalse
    \global\setbox\@leftcolumn\box\@outputbox
  \else \global\@firstcolumntrue
    \setbox\@outputbox\vbox{\hbox to\textwidth{%
      \hbox to\columnwidth
      {\box\@leftcolumn \hss}\hfil
       \vrule width\columnseprule\hfil
       \hbox to\columnwidth{\box\@outputbox \hss}}}%
       \@combinedblfloats
       \@outputpage \begingroup \@dblfloatplacement
       \@startdblcolumn
       \@whilesw\if at fcolmade \fi
       {\@outputpage\@startdblcolumn}\endgroup
    \fi}
\newcommand{\RTLdblcol}{\renewcommand{\@outputdblcol}{\RTL at outputdblcol}}
\newcommand{\LTRdblcol}{\renewcommand{\@outputdblcol}{\LTR at outputdblcol}}
\RTLdblcol
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I reported \underline bug and others a while ago and you can look at them in the arcive namely

http://tug.org/mailman/htdig/xetex/2008-December/011359.html


If you really want perfect bidi support, then have a look at xepersian.sty


 
 
_________________________________________________________________
Looking for a fresh way to share photos? Get the new Windows Live Messenger.
http://download.live.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20090501/03fc78a2/attachment.html 


More information about the XeTeX mailing list