[texhax] Makros in \color

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Jun 16 21:16:21 CEST 2010


Am 16.06.2010 20:59, schrieb Arno Trautmann:

> So the color will change as the counters change. This works. Trying it
> with 2 counters:
> 
> \color[RGB]{0 \themycount \themycount},
> 
> I get errors from the \color-parser, I think:
> 
> ! Argument of \c at lor@@RGB has an extra }.
> <inserted text>
>                 \par
> l.45 \begin{document}
> 
> Using the beamer class, this is a minimal example (other classes give
> different error messages, but I guess it’s the same problem):
> 
> \documentclass{beamer}
> 
> \usepackage{color}
> \newcounter{mycount}
> \setcounter{mycount}{100}
> \begin{document}
> \color[RGB]{100 \themycount \themycount} test

\color[RGB]{100 \themycount\space \themycount} test


Herbert



More information about the texhax mailing list