Date:Fri, 18 Oct 2002 00:23:56 +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 11:29:53PM +0200, Tzafrir Cohen wrote:
> I have tried adding the following code:
>
> \AtBeginDocument{%
> \@ifpackageloaded{color}{%
> % Do nothing unless the style 'color' is used before the beginning
> % of the document.
> \def\@textcolor#1#2#3{% redifine the macro with bidi support
> \if@rl%
> \beginL\protect\leavevmode{\color#1{#2}\beginR#3\endR}\endL%
> \else%
> \protect\leavevmode{\color#1{#2}#3}%
> \fi%
> }%
> }%
> }
>
> Generally works, but somehow I get "hebrewhebrew" (in Hebrew 7-bit
> letters) before the word "algorithm".
Perhaps the problem is that \@ifpackageloaded works only before
\begin{document}.
Try using
\ifx\@textcolor\undefined\else%
\def\@[log in to unmask]
\fi
> Another problem: Whenever the coloring is over 1 line, it seems to color
> complete lines.
There is no simple solution for this problem.
Anyway, having a solution that works for some cases is better than the
current situation.