[NTG-context] Strange backgroundcolors with showgrid and luacode

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Sat Apr 27 16:34:48 CEST 2019


Pablo Rodriguez schrieb am 27.04.2019 um 16:07:
> I found this code in ConTeXt (syst-aux.mkiv):
>      \starttext
>      \doloopoverlist {red,green,blue} {
>           \setuppalet[\recursestring]
>           \doloopoverlist {light,normal,dark} {
>               \blackrule[color=\recursestring, width=\textwidth]\par
>           }
>       }
>      \stoptext
>
> Is it intended that all nine lines are black?

Yes, because there are no predefined palets with the names red, green or 
blue.

\definepalet
   [red]
   [ light=lightred,
    normal=middlered,
      dark=darkred]

Wolfgang



More information about the ntg-context mailing list