[texhax] Changing font color of a saved box of text - is it possible?

Ivan Griffin ivan at skynet.ie
Tue Sep 4 13:43:34 CEST 2012



On Tue, 4 Sep 2012, Philip TAYLOR wrote:

> Not really a solution, but you could always save the material in a token
> list register rather than a box.  Alternatively you might want to
> consider using XeTeX, in which the solution is trivial :
>
> % !TeX Program=XeTeX
>
> \setbox 0 = \hbox {abcd}
> \special {color push cmyk 0 1 1 0}
> \copy 0
> \special {color pop}
> \special {color push cmyk 1 0 1 0}
> \copy 0
> \special {color pop}
> \special {color push cmyk 1 1 0 0}
> \copy 0
> \special {color pop}
> \end
>
> Philip Taylor
>


Thanks for this - I'm not very familiar with XeTeX, but this is an 
interesting solution that I will investigate.

Best Regards,
Ivan.


More information about the texhax mailing list