Jesse Alama <[EMAIL PROTECTED]> writes:

> Aditya Mahajan <[EMAIL PROTECTED]> writes:
>
>> On Tue, 19 Feb 2008, Jesse Alama wrote:
>>
>>> Aditya Mahajan <[EMAIL PROTECTED]> writes:
>>>
>>>>> The example features some \definecolor's which I just did away with
>>>>> (sadly) by simply substituting their defining values for their
>>>>> occurences.  (This is unfortunate, but perhaps necessary until some
>>>>> other mechanism is produced.)  The problem is that the text box to the
>>>>> right of the picture is supposed to be colored, and with rounded
>>>>> corners.  But the box is missing.  Look at p. 20 of
>>>>
>>>> The TikZ manual make a lot of uses of the xcolor syntax
>>>> (e.g. \color{red!20}). There is no equivalent ConTeXt syntax. You need
>>>> to define a color, say lightred, as follows
>>>>
>>>> \definecolor[lightred][r=0.2]
>>>>
>>>> For tikz key-value options, pgf works behind the scene to define
>>>> appropriate colors, so xcolor syntax works for them. So
>>>> \fill[fillcolor=red!20] will work as expected. However, when using
>>>> \color inside any box, you need to follow ConTeXt syntax. So
>>>> \color[red!20] will not work, you need to define a context color and
>>>> then use that.
>>>
>>> I'm still not able to get fillcolor to work with the information box:
>>>
>>>  \starttikzpicture[scale=4,information text/.style={fill=red}]
>>>  \draw[xshift=1.85cm] node[right,text width=6cm,information text]
>>>  {
>>>  The \color[green]{angle $\alpha$} is
>>>    $30^\circ$ in the example ($\pi/6$ in radians). The \color[red]{sine
>>>      of $\alpha$}, which is the height of the red line, is
>>>  \startformula
>>>  \color[red]{\sin \alpha} = 1/2.
>>>  \stopformula
>>>  By the Theorem of Pythagoras ...
>>>  };
>>>
>>> Is ConTeXt correctly parsing the key "information tex/.style"?
>>
>> Works fine here. The text/.style syntax is new in Tikz. Are you using
>> the cvs version of tikz?
>
> No, I'm using the module from the garden, corresponding to the 1.18
> release.  I just installed the CVS version, and, after recompiling, I
> see that the backgrounds are still missing.  One possible explanation:
> I'm using the old TPM file that's on the modules page.  That should be
> updated to reflect the file structure of the new CVS version, right?

I spoke too soon -- it looks like things work just fine.  Thanks for
your help!

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to