On Sat, Mar 24, 2007 at 11:58:16AM -0400, Tzafrir Cohen wrote: > 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.
.. which, in a perfect world, would be done by a babel-aware colorbox. -- Dan Kenigsberg http://www.cs.technion.ac.il/~danken ICQ 162180901 ================================================================= 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]