Date:Thu, 17 Oct 2002 19:01:38 +0200
Reply-To:Dekel Tsur <[log in to unmask]>
Sender:Hebrew TeX list <[log in to unmask]>
From:Dekel Tsur <[log in to unmask]>
Organization:Tel Aviv University
Subject:Re: problem with eLaTeX + colors
In-Reply-To:<[log in to unmask]>
Content-Type:text/plain; charset=us-ascii
Content-Disposition:inline
On Thu, Oct 17, 2002 at 06:32:52PM +0200, Tzafrir Cohen wrote:
>
> One way around this is to wrap \textcolor with a macro that adds \L and \R
>
> \newcommand{\textcolorR}[2]{\L{\textcolor{#1}{\R{#2}}}
Here is a new solution, that combine Tzafrir's solution with mine:
\def\@textcolor#1#2#3{%
\if@rl%
\beginL\protect\leavevmode{\color#1{#2}\beginR#3\endR}\endL
\else%
\protect\leavevmode{\color#1{#2}#3}
\fi}
Tzafrir, you should add this (or similar) code to your IvriTeX package,
perhaps inside \AtBeginDocument in order to deal with the case when babel
is loaded before color.