Re: [NTG-context] \definecolor and TikZ

2012-05-24 Thread Tim Steenvoorden
\definecolor and TikZ is back again in the latest beta. The minimal example in the attachment worked in version 2012.05.14 (both MKII and MKIV). A solution was posted a few mails ago. Anyhow, as it seems to be a persistent issue, I've added a helper to mkii and mkiv so that the tikz can do

Re: [NTG-context] \definecolor and TikZ

2012-05-24 Thread Marco
On 2012-05-24 Tim Steenvoorden tim.steenvoor...@gmail.com wrote: Thanks, your solution works well. Do I have to put it in every document when using TikZ? I'm afraid it still doesn't work out of the box in 2012.05.24. It's already fixed upstream. I don't know how and when the changes propagate

Re: [NTG-context] \definecolor and TikZ

2012-05-24 Thread Tim Steenvoorden
Thanks Marco! Hope it will be in TeXLive 2012. Cheers, Tim 2012/5/24 Marco net...@lavabit.com: On 2012-05-24 Tim Steenvoorden tim.steenvoor...@gmail.com wrote: Thanks, your solution works well. Do I have to put it in every document when using TikZ? I'm afraid it still doesn't work out of

Re: [NTG-context] \definecolor and TikZ

2012-05-24 Thread Marco
On 2012-05-24 Marco net...@lavabit.com wrote: It's already fixed upstream. I don't know how and when the changes propagate into context standalone. Apparently you have to update with ./first-setup.sh --modules=all, instead of plain ./first-setup.sh to apply the changes. I thought the choice is

Re: [NTG-context] \definecolor and TikZ

2012-05-24 Thread Tim Steenvoorden
Updated again, worked like a charm! Cheers, Tim 2012/5/24 Marco net...@lavabit.com: On 2012-05-24 Marco net...@lavabit.com wrote: It's already fixed upstream. I don't know how and when the changes propagate into context standalone. Apparently you have to update with ./first-setup.sh

Re: [NTG-context] \definecolor and TikZ

2012-05-24 Thread Philipp A.
my biggest contribution to ConTeXt so far seems to be asking a stackoverflow question, and filing a tikz bugreport with attached code from the answer on stackoverflow. i’m sure i can do more myself in the future -.-

[NTG-context] \definecolor and TikZ

2012-05-20 Thread Tim Steenvoorden
Hi again, The bug about \definecolor and TikZ is back again in the latest beta. The minimal example in the attachment worked in version 2012.05.14 (both MKII and MKIV). Regards, Tim tikzcolor.tex Description: TeX document

Re: [NTG-context] \definecolor and TikZ

2012-05-20 Thread Hans Hagen
On 20-5-2012 12:59, Tim Steenvoorden wrote: Hi again, The bug about \definecolor and TikZ is back again in the latest beta. The minimal example in the attachment worked in version 2012.05.14 (both MKII and MKIV). A solution was posted a few mails ago. Anyhow, as it seems to be a persistent

Re: [NTG-context] Parameters in \definecolor

2011-11-12 Thread Marcin Borkowski
, the manual (the current draft) says that possible parameters for \definecolor are: r,g,b, red green blue Obvious;). c,m,y,k, cyan magenta yellow black As above;). s, gray (shade) Didn't think of shade, but I got that it was gray. h,t,a,p,e hexadecimal (html like

Re: [NTG-context] Parameters in \definecolor

2011-11-12 Thread Aditya Mahajan
On Sat, 12 Nov 2011, Marcin Borkowski wrote: hexadecimal (html like) transparencyfactor transparancyalternative spotcolorfactor extraspotcolorname (in pdf resource) Wow, now it's more clear. Just one question: what are the transparency alternatives? IIRC, they are documented in the metafun

Re: [NTG-context] Parameters in \definecolor

2011-11-12 Thread Hans Hagen
On 12-11-2011 20:39, Aditya Mahajan wrote: On Sat, 12 Nov 2011, Marcin Borkowski wrote: hexadecimal (html like) transparencyfactor transparancyalternative spotcolorfactor extraspotcolorname (in pdf resource) Wow, now it's more clear. Just one question: what are the transparency alternatives?

Re: [NTG-context] Parameters in \definecolor

2011-11-12 Thread Marcin Borkowski
Dnia 2011-11-12, o godz. 21:31:02 Hans Hagen pra...@wxs.nl napisał(a): On 12-11-2011 20:39, Aditya Mahajan wrote: On Sat, 12 Nov 2011, Marcin Borkowski wrote: hexadecimal (html like) transparencyfactor transparancyalternative spotcolorfactor extraspotcolorname (in pdf resource)

Re: [NTG-context] Parameters in \definecolor

2011-11-10 Thread Hans Hagen
On 10-11-2011 08:55, Marcin Borkowski wrote: Dnia 2011-11-09, o godz. 19:13:23 Wolfgang Schusterschuster.wolfg...@googlemail.com napisał(a): Am 09.11.2011 um 18:37 schrieb Marcin Borkowski: Hi all, the manual (the current draft) says that possible parameters for \definecolor are: r,g,b

[NTG-context] Parameters in \definecolor

2011-11-09 Thread Marcin Borkowski
Hi all, the manual (the current draft) says that possible parameters for \definecolor are: r,g,b, c,m,y,k, s, h,t,a,p,e While the first three (rgb), the second four (cmyk) and the third one (s) are pretty obvious for me - rgb, cmyk and greys, I suppose - I'm wondering what is the use

Re: [NTG-context] Parameters in \definecolor

2011-11-09 Thread Wolfgang Schuster
Am 09.11.2011 um 18:37 schrieb Marcin Borkowski: Hi all, the manual (the current draft) says that possible parameters for \definecolor are: r,g,b, c,m,y,k, s, h,t,a,p,e While the first three (rgb), the second four (cmyk) and the third one (s) are pretty obvious for me - rgb, cmyk

Re: [NTG-context] Parameters in \definecolor

2011-11-09 Thread Marcin Borkowski
Dnia 2011-11-09, o godz. 19:13:23 Wolfgang Schuster schuster.wolfg...@googlemail.com napisał(a): Am 09.11.2011 um 18:37 schrieb Marcin Borkowski: Hi all, the manual (the current draft) says that possible parameters for \definecolor are: r,g,b, c,m,y,k, s, h,t,a,p,e

Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Cedric Mauclair
On Wed, Oct 27, 2010 at 22:08, Michael Murphy michael.mur...@uni-ulm.de wrote: On 27/10/2010 19:18, Marius wrote: Hello, I had the same problem, so I desided to define colors by hand. \definecolor [lightgray] [h=D3D3D3] \usemodule[tikz] \unprotect \pgfu...@definecolor{black}{gray}{0

Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Cedric Mauclair
to define colors by hand. \definecolor [lightgray] [h=D3D3D3] \usemodule[tikz] \unprotect \pgfu...@definecolor{black}{gray}{0} \pgfu...@definecolor{gray}{gray}{0.5} \pgfu...@definecolor{lightgray}{gray}{0.9} \pgfu...@definecolor{white}{gray}{1} \protect Yes, this is what I've resorted

Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Marius
Here is the fixed script. On 27 October 2010 23:08, Michael Murphy michael.mur...@uni-ulm.de wrote: On 27/10/2010 19:18, Marius wrote: Hello, I had the same problem, so I desided to define colors by hand. \definecolor [lightgray] [h=D3D3D3] \usemodule[tikz] \unprotect \pgfu

Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Hans Hagen
On 28-10-2010 9:54, Cedric Mauclair wrote: On Wed, Oct 27, 2010 at 22:08, Michael Murphymichael.mur...@uni-ulm.de wrote: On 27/10/2010 19:18, Marius wrote: Hello, I had the same problem, so I desided to define colors by hand. \definecolor [lightgray] [h=D3D3D3] \usemodule[tikz] \unprotect

Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Hans Hagen
On 28-10-2010 10:24, Cedric Mauclair wrote: Actually, the opacity works great! Officially it could hook into the context transparency model but I guess that that is too much hassle. Hans -

Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence

2010-10-28 Thread Cedric Mauclair
Sadly no. I once tried to modify it to make it work and I ended up with what I proposed. Not very nice, but worked for me. Thanks for your solution. -- Cédric On Thu, Oct 28, 2010 at 13:46, Hans Hagen pra...@wxs.nl wrote: \ifdefined\PDFcolor \else  \ctxlua{function

Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence

2010-10-27 Thread Cedric Mauclair
}{color %s has unsupported model}{}, name))    texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{0}, name))  end  function pgfutil.registercolor(name, attributes)    print(name, attributes)    local cv = colors.value(attributes)    if cv then      local model = cv[1]      if model

Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence

2010-10-27 Thread Michael Murphy
On 27/10/2010 19:18, Marius wrote: Hello, I had the same problem, so I desided to define colors by hand. \definecolor [lightgray] [h=D3D3D3] \usemodule[tikz] \unprotect \pgfu...@definecolor{black}{gray}{0} \pgfu...@definecolor{gray}{gray}{0.5} \pgfu...@definecolor{lightgray}{gray}{0.9} \pgfu

[NTG-context] ConText, TikZ and definecolor: undefined control sequence

2010-10-26 Thread Michael Murphy
local prtcatcodes = tex.prtcatcodes function pgfutil.unsupported_color(name) texsprint(prtcatcodes,format(\\PackageError{pgf}{color %s has unsupported model}{}, name)) texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{0}, name)) end function pgfutil.registercolor(name

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Mojca Miklavec
On Sun, Feb 7, 2010 at 22:56, Wolfgang Schuster wrote: Am 07.02.10 07:24, schrieb Aditya Mahajan: while \color can only be used as \color[rgb]{...}. No. Both \color[rgb]{...} and {\color[rgb]...} are valid D’oh. I looked in the source and missed this but I wonder if this had been always

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Hans Hagen
On 7-2-2010 22:56, Wolfgang Schuster wrote: Am 07.02.10 07:24, schrieb Aditya Mahajan: while \color can only be used as \color[rgb]{...}. No. Both \color[rgb]{...} and {\color[rgb]...} are valid D’oh. I looked in the source and missed this but I wonder if this had been always the case

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Wolfgang Schuster
Am 08.02.10 09:19, schrieb Mojca Miklavec: D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals (and the wiki) mention only \color[name]{...}. \colored is a rather recent command. I meant the manuals and wiki mention

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Wolfgang Schuster
Am 08.02.10 09:40, schrieb Hans Hagen: D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals {and the wiki) mention only \color[name]{...}. all commands that use \groupedcommand have that property But used \color always

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Hans Hagen
On 8-2-2010 9:55, Wolfgang Schuster wrote: Am 08.02.10 09:40, schrieb Hans Hagen: D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals {and the wiki) mention only \color[name]{...}. all commands that use \groupedcommand have that

Re: [NTG-context] colors without \definecolor

2010-02-07 Thread Wolfgang Schuster
Am 07.02.10 07:24, schrieb Aditya Mahajan: while \color can only be used as \color[rgb]{...}. No. Both \color[rgb]{...} and {\color[rgb]...} are valid D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals {and the wiki) mention only

Re: [NTG-context] colors without \definecolor

2010-02-06 Thread Aditya Mahajan
On Sat, 6 Feb 2010, Wolfgang Schuster wrote: Am 05.02.10 15:49, schrieb Philipp Gesang: Is there a difference (other than syntax) between \colored[rgb] and the according \definecolor[name][rgb] -- \color[name] commands? No, \colored is \definecolor + \color except you can use it in the form

[NTG-context] texshow-web (was: colors without \definecolor)

2010-02-05 Thread Mikael Persson
message -- From: Wolfgang Schuster schuster.wolfg...@googlemail.com Date: Fri, Feb 5, 2010 at 8:31 AM Subject: Re: [NTG-context] colors without \definecolor To: mailing list for ConTeXt users ntg-context@ntg.nl Am 04.02.10 21:41, schrieb Philipp Gesang: Hi all, I understand that in order

Re: [NTG-context] texshow-web (was: colors without \definecolor)

2010-02-05 Thread Hans Hagen
On 5-2-2010 9:00, Mikael Persson wrote: 3) any other reason? it's a rather recently added command Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The

Re: [NTG-context] texshow-web (was: colors without \definecolor)

2010-02-05 Thread Mikael Persson
Thanks for you answer, Hans. Do they appear automatically in texshow or does someone have to update by hand? How long does it typically take? Is there something one can do? Mikael On Fri, Feb 5, 2010 at 9:21 AM, Hans Hagen pra...@wxs.nl wrote: On 5-2-2010 9:00, Mikael Persson wrote: 3) any

Re: [NTG-context] texshow-web (was: colors without \definecolor)

2010-02-05 Thread Hans Hagen
On 5-2-2010 16:20, Mikael Persson wrote: Thanks for you answer, Hans. Do they appear automatically in texshow or does someone have to update by hand? How long does it typically take? Is there something one can do? if something is missing one can create the xml blob that has to go into the

Re: [NTG-context] colors without \definecolor

2010-02-05 Thread Philipp Gesang
Wolfgang, all, On 2010-02-05 08:31:35, Wolfgang Schuster wrote: \colored[r=...,g=...,b=...]{...} or {\colored[r=...,g=...,b=...]...} Thank you very much, I wikified it. Is there a difference (other than syntax) between \colored[rgb] and the according \definecolor[name][rgb] -- \color[name

Re: [NTG-context] colors without \definecolor

2010-02-05 Thread Wolfgang Schuster
Am 05.02.10 15:49, schrieb Philipp Gesang: Is there a difference (other than syntax) between \colored[rgb] and the according \definecolor[name][rgb] -- \color[name] commands? No, \colored is \definecolor + \color except you can use it in the form \colored[rgb]{...} and {\colored[rgb

[NTG-context] colors without \definecolor

2010-02-04 Thread Philipp Gesang
Hi all, I understand that in order to use a color with \color[somecolor]{colored text} I first have to \definecolor[somecolor][r=.4,g=0,b=1]. Currently I'm trying to do automated colorizing with the help of some lua code and I'd like to make up rgb vectors on the spot without having

Re: [NTG-context] colors without \definecolor

2010-02-04 Thread Wolfgang Schuster
Am 04.02.10 21:41, schrieb Philipp Gesang: Hi all, I understand that in order to use a color with \color[somecolor]{colored text} I first have to \definecolor[somecolor][r=.4,g=0,b=1]. Currently I'm trying to do automated colorizing with the help of some lua code and I'd like to make up rgb

Re: [NTG-context] ConText and definecolor: undefined control sequence

2010-01-20 Thread Aditya Mahajan
On Tue, 12 Jan 2010, Ben wrote: Dear List, using the pgf build from 20100103 and texlive2009 from the Debian unstable I've just tried to do the following: \enableregime[utf] \usemodule[tikz] \starttext \startTEXpage \pgfu...@definecolor{magenta}{rgb}{1,0,1

Re: [NTG-context] \definecolor

2008-09-25 Thread Wolfgang Werners-Lucchini
isn't there a three-parameter version of \definecolor ? It doesn't work. \setupcolors[state=start] \definecolor [MyBlue][blue][p=.2] \starttext \color[MyBlue]{Bla} \stoptext \definespotcolor (three args is too messy) Ok! Then there are a lot of wiki-pages wrong. Who

Re: [NTG-context] \definecolor

2008-09-25 Thread Hans Hagen
Wolfgang Werners-Lucchini wrote: isn't there a three-parameter version of \definecolor ? It doesn't work. \setupcolors[state=start] \definecolor [MyBlue][blue][p=.2] \starttext \color[MyBlue]{Bla} \stoptext \definespotcolor (three args is too messy) Ok! Then there are a lot of wiki

Re: [NTG-context] \definecolor

2008-09-25 Thread Wolfgang Werners-Lucchini
isn't there a three-parameter version of \definecolor ? It doesn't work. \setupcolors[state=start] \definecolor [MyBlue][blue][p=.2] \starttext \color[MyBlue]{Bla} \stoptext \definespotcolor (three args is too messy) Ok! Then there are a lot of wiki-pages wrong. Who

[NTG-context] \definecolor

2008-09-24 Thread Wolfgang Werners-Lucchini
Hallo, isn't there a three-parameter version of \definecolor ? It doesn't work. \setupcolors[state=start] \definecolor [MyBlue][blue][p=.2] \starttext \color[MyBlue]{Bla} \stoptext Wolfgang ___ If your question

Re: [NTG-context] \definecolor

2008-09-24 Thread Hans Hagen
Wolfgang Werners-Lucchini wrote: Hallo, isn't there a three-parameter version of \definecolor ? It doesn't work. \setupcolors[state=start] \definecolor [MyBlue][blue][p=.2] \starttext \color[MyBlue]{Bla} \stoptext \definespotcolor (three args is too messy