Date:Wed, 25 Jul 2001 17:51:05 +0300
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: using postscript
In-Reply-To:<Pine.GSO.3.95-heb-2.07.1010725120127.8255B-200000@csd>; from
Tzafrir Cohen on Wed, Jul 25, 2001 at 12:58:15PM +0300
Content-Type:text/plain; charset=iso-8859-1
On Wed, Jul 25, 2001 at 12:58:15PM +0300, Tzafrir Cohen wrote:
> postscript instructions in packages like 'color' are interperted by the
> postscript interpeter, and long after the tex engine has done its part.
>
> Here is a small sample ducument (I also attach it):
>
> \documentclass{article}
> \usepackage[hebrew]{babel}
> \usepackage{color}
> \usepackage{colortbl}
>
> \begin{document}
> טקסט רגיל \textcolor{red}{אדום} ועוד קצת טקסט רגיל
> \end{document}
>
> In the produced postscript the part that is colored red is "טקסט רגיל"
> instead of "אדום".
Here is a simple hack:
Define \newcommand{\htextcolor}[2]{{\color{black}#2\color{#1}}}
in the preamble, and then use \htextcolor instead of \textcolor.
However, the hack will not work if the colored text takes more than one line.