a of how to use palettes:
https://github.com/adityam/visualcounter/blob/master/visualcounter.pdf
Effectively all you need to do is add \setuppalet[name] at an appropriate
place, and then the user can easily change the colors (rather than having them
specified as par
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
reen,blue} {
\setuppalet[\recursestring]
\doloopoverlist {light,normal,dark} {
\blackrule[color=\recursestring, width=\textwidth]\par
}
}
\stoptext
Is it intended that all nine lines are black?
Many thanks for your help,
Pablo
--
http://www
Pablo Rodriguez schrieb am 27.04.2019 um 13:25:
On 4/27/19 12:21 PM, Wolfgang Schuster wrote:
Marcus Vinicius Mesquita schrieb am 27.04.2019 um 12:18:
\definepalet[layout][grid=black]
\setuppalet
[layout]
[grid=black]
Many thanks, Marcus Vinicius and Wolfgang, for your replies
On 4/27/19 12:21 PM, Wolfgang Schuster wrote:
> Marcus Vinicius Mesquita schrieb am 27.04.2019 um 12:18:
>> \definepalet[layout][grid=black]
> \setuppalet
> [layout]
> [grid=black]
Many thanks, Marcus Vinicius and Wolfgang, for your replies.
This is the only way it works:
Marcus Vinicius Mesquita schrieb am 27.04.2019 um 12:18:
\definepalet[layout][grid=black]
\setuppalet
[layout]
[grid=black]
Wolfgang
___
If your question is of interest to others as well, please add an entry
}}%
\fi}
which then also supports:
\setupcolors [x11]
\definepalet [colorful] [primary=green]
\definepalet [bleak] [primary=darkgray,colorful]
\starttext
\setuppalet [colorful]
\color[primary]{Ain’t I a colorful entity?}
\setuppalet [bleak]
\color[primary]{Ain’t I a colorful entity
is the key to set either color is color or color is black again?
i don't think mkiv has such an option (but maybe i'm wrong).
how about defining some color palettes then? this should work with both
marks.
\definepalet[coloredtext][...]
\setuppalet[coloredtext]
\startmode[black
][ colorone=blue, colortwo=green %,colorthree=red ]\setuppalet[dvb]\showpalet[dvb][]\starttext\color[colorone]{hello} \quad\color[colortwo]{hello} \quad\stoptext
test.pdf
Description: Adobe PDF document
test.pdf
Description: Adobe PDF document
[coloredtext][...]
\setuppalet[coloredtext]
\startmode[black]
\definepalet[blacktext] [red=black, blue=black,...]
\setuppalet[blacktext]
\stopmode
Best wishes, Peter
Steffen
___
If your question is of interest
with both
marks.
\definepalet[coloredtext][...]
\setuppalet[coloredtext]
\startmode[black]
\definepalet[blacktext] [red=black, blue=black,...]
\setuppalet[blacktext]
\stopmode
as colorspace info travels indepently you can say
\attribute\colormodelattribute\attributeunsetvalue
i'll add
]
\setupmarking[name][options]
\setupnarrower[options]
\setupnumbering[options]
\setupoppositeplacing[options]
\setupoutput[names]
\setuppagenumber[number][state=start|stop|keep]
\setuppagenumbering[options]
\setuppagetransitions[options]
\setuppalet[name]
\setuppaper[options]
\setuppapersize[typesetting
12 matches
Mail list logo