[NTG-context] TikZ and wrong drawing order

Aditya Mahajan adityam at umich.edu
Thu Jun 11 19:59:47 CEST 2015


On Thu, 11 Jun 2015, Mojca Miklavec wrote:

> Hi,
>
> I would like to ask for help for either finding a fix or some clever
> workaround for the following problem.
>
> If I use a TikZ picture as item symbol and additionally use background
> text, then the first symbol in itemize environment gets covered by the
> background. Here's an example:
>
> \usemodule
>    [tikz]
>
> \definesymbol[1]
>    [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}]
>
> \definecolor
>    [backcol]
>    [s=1,a=1,t=0.1]
>
> \starttext
>
> \startframedtext[width=4cm,background=color,backgroundcolor=backcol]
> \startitemize
> \item one
> \item two
> \item three
> \stopitemize
> \stopframedtext
>
> \stoptext

Workaround (though I have no idea why this should work). Use

    background={foreground,color}

I wanted to test background={color, foreground}, but wrote the above by 
mistake and it works!!!

Aditya



More information about the ntg-context mailing list