Skip
repetitive navigational links
L-Soft  -  Home of  the  LISTSERV  mailing list  manager LISTSERV(R) 14.5
Skip repetitive navigational links
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2002)Back to main IVRITEX pageJoin or leave IVRITEXReplyPost a new messageSearchProportional fontNon-proportional fontLog in
Date:         Thu, 17 Oct 2002 23:29:53 +0200
Reply-To:     Hebrew TeX list <[log in to unmask]>
Sender:       Hebrew TeX list <[log in to unmask]>
From:         Tzafrir Cohen <[log in to unmask]>
Subject:      Re: problem with eLaTeX + colors
In-Reply-To:  <[log in to unmask]>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 17 Oct 2002, Dekel Tsur wrote: > 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. > 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". Another problem: Whenever the coloring is over 1 line, it seems to color complete lines. So it is not yet commited to the CVS. -- Tzafrir Cohen mailto:[log in to unmask] http://www.technion.ac.il/~tzafrir


Back to: Top of message | Previous page | Main IVRITEX page

LISTSERV.TAU.AC.IL CataList email list search Powered by LISTSERV email list manager