On Thu, 17 Oct 2002, Rama Porrat wrote:
> TeX Gurus!
>
> I could not make the attached elatex (LaTeX-XeT) file work well.
> The cyan colorpaints the wrong words.
> It works well in the regular LaTeX.
The problem is that color directives are postscript directives. They are
interpeted by the postscript interpeter (gs, or the printer).
Originally you have:
\textcolor{cyan}{some ltr text}
Which will be translated to:
[postscript:make color cyan]some LTR text[postscript:make color black]
However, with rlbabel the order of text is reversed. Suppose you have:
\textcolor{cyan}{\hebalef\hebbet}
This whole paragraph is in right-toi-left mode, so tex here simply
reverses everything:
[postscript:make color black]{bet}{alef}[postscript:make color cyan]
Whereas you really need:
[postscript:make color cyan]{bet}{alef}[postscript:make color black]
One way around this is to wrap \textcolor with a macro that adds \L and \R
\newcommand{\textcolorR}[2]{\L{\textcolor{#1}{\R{#2}}}
--
Tzafrir Cohen
mailto:[log in to unmask]http://www.technion.ac.il/~tzafrir