[NTG-context] playing colors more

Hans van der Meer H.vanderMeer at uva.nl
Tue Mar 1 15:09:29 CET 2011


Why is the second color in the palet not showing up? I foolowed the example in the manual (section 6 page 6). Strange: adding a third color in the palet (see comment) now shows the first two! Off by one error in a loop?

Hans van der Meer

\setuppapersize[A5][A5]
\switchtobodyfont[20pt]

\definepalet[dvb][
	colorone=blue,
	colortwo=green   %,colorthree=red
	]
\setuppalet[dvb]
\showpalet[dvb][]

\starttext
\color[colorone]{hello} \quad
\color[colortwo]{hello} \quad

\stoptext


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110301/df2aec08/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 4962 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110301/df2aec08/attachment-0002.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110301/df2aec08/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 4996 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110301/df2aec08/attachment-0003.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110301/df2aec08/attachment-0005.html>


More information about the ntg-context mailing list