Re: [NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-13 Thread Hans Hagen
On 7/12/2020 11:54 PM, Jairo A. del Rio wrote: El dom., 12 de jul. de 2020 a la(s) 16:20, Hans Hagen (j.ha...@xs4all.nl ) escribió: You get a list of defined color names in 'xwi' with:     attributes.colors.setlist("xwi") Nice, it works! I note the first

Re: [NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Jairo A. del Rio
El dom., 12 de jul. de 2020 a la(s) 16:20, Hans Hagen (j.ha...@xs4all.nl) escribió: > You get a list of defined color names in 'xwi' with: > > attributes.colors.setlist("xwi") > Nice, it works! I note the first method only works when \usecolors[xwi] is present; otherwise, it prints an

Re: [NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Hans Hagen
On 7/12/2020 9:58 PM, Jairo A. del Rio wrote: Hi, list. I've got a question about color schemes in ConTeXt What if want to access the entire list of, say, xwi: for k,v in pairs(xwi_list) do --Supposing xwi_list is contains xwi colors   (whatever action I want) end So far I'm manually setting

[NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Jairo A. del Rio
Hi, list. I've got a question about color schemes in ConTeXt What if want to access the entire list of, say, xwi: for k,v in pairs(xwi_list) do --Supposing xwi_list is contains xwi colors (whatever action I want) end So far I'm manually setting colors from colo-imp-xwi.mkiv, but I suspect