On Mon, Mar 19, 2007 at 04:47:16PM +0200, Micha Feigin wrote:
> I seem to have some problems using \colorbox from the xcolor package (or the
> color package) with hebrew text in latex.
>
> The solution I found was:
>
> \L{\colorbox{gray!30}{\R{<hebrew text>}}}
>
> which seems rather awkward (the need to add \L and \R). Without these the text
> doesn't show up. Is this a know problem, and is there a more elegant way to
> solve this?
The problem is that th color is added with some postscript commands in
some sort of post-processing.
Normally you have:
\colorbox{color}{some text}
translated to:
<start color>some text<reset color>
where <start color> and <reset color> are postscript directives.
In a "Hebrew" context you get:
\colorbox{color}{HEBREW TEXT}
will become (on paper)
<reset color>TXET WERBEH<start color>
Thus the trick you use guarantees the correct order of postscript
directives around Hebrew text.
--
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il | | a Mutt's
[EMAIL PROTECTED] | | best
ICQ# 16849755 | | friend
t
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]