ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* loading bib module breaks colors in tikz figures (mkiv)
@ 2009-05-08 20:45 Mojca Miklavec
  2009-05-08 20:53 ` Mojca Miklavec
  2009-05-09  7:21 ` Otared Kavian
  0 siblings, 2 replies; 9+ messages in thread
From: Mojca Miklavec @ 2009-05-08 20:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Till Tantau

Hello,

Not that I understand why this happens (bug trigger looks extremely
weird), but if I load bib module, the colors in TikZ graphic are lost.
Commenting out bib module returns the color back. (I remember
reporting lack of colors not so long ago, though I'm not sure if it
was in pdftex or luatex.)

I'm using
- ConTeXt MKIV 2009.05.08 21:48
- LuaTeX beta-0.40.1
- approximately CVS version of TikZ

\usemodule [bib]
\usemodule [tikz]

\starttext
\starttikzpicture
\filldraw[fill=green!20,draw=green!50!black] (0,0) -- (60:3cm) arc
(60:120:3cm) -- cycle;
\stoptikzpicture
\stoptext

Can anyone please confirm the bug? (I often mess with my system too much ...)

Thanks,
    Mojca

To Till only: I have a feeling that the command
    \node[label=87:$φ$] at (65:1cm) {};
an the image above places the label to a different place from where it
used to place it a few weeks ago (recompiling an old document has
placed the label to a different place).

This is the sequence of command to reproduce the problem using the
latest software versions:

rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
./first-setup.sh --context=beta --extras=t-tikz
# go for a coffee
cd tex
. setuptex
luatools --generate
context --make en
cd folder-with-your-test-files
context testfile.tex
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: loading bib module breaks colors in tikz figures (mkiv)
  2009-05-08 20:45 loading bib module breaks colors in tikz figures (mkiv) Mojca Miklavec
@ 2009-05-08 20:53 ` Mojca Miklavec
  2009-05-09  7:21 ` Otared Kavian
  1 sibling, 0 replies; 9+ messages in thread
From: Mojca Miklavec @ 2009-05-08 20:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Till Tantau

On Fri, May 8, 2009 at 22:45, Mojca Miklavec wrote:
>
> To Till only: I have a feeling that the command
>    \node[label=87:$φ$] at (65:1cm) {};
> an the image above places the label to a different place from where it
> used to place it a few weeks ago (recompiling an old document has
> placed the label to a different place).

More precisely: the version in TeX Live has a different placement, but
it's quite possible that the old behaviour is worse (buggy). I
remember having problems with placement (a tiny difference in angle
used to place the label to a completely different position).

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: loading bib module breaks colors in tikz figures (mkiv)
  2009-05-08 20:45 loading bib module breaks colors in tikz figures (mkiv) Mojca Miklavec
  2009-05-08 20:53 ` Mojca Miklavec
@ 2009-05-09  7:21 ` Otared Kavian
  2009-05-09  7:51   ` Taco Hoekwater
  2009-05-09  7:51   ` Taco Hoekwater
  1 sibling, 2 replies; 9+ messages in thread
From: Otared Kavian @ 2009-05-09  7:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 8 mai 09, at 22:45, Mojca Miklavec wrote:

> […]
>
> Can anyone please confirm the bug? […]

Hi Mojca,

I tested your file on Mac OS X 10.5.6 with
mkiv, LuaTeX version 40,
LuaTeX revision 0, (LuaTeX date stamp 2009050515),
ConTeXt version 2009.05.08 09:21

and the color of the sector is black while with mkii it is light green  
(as intended).

> […] (I often mess with my system too much ...)

so this time BachoTeX is not to blame…

Best regards: OK
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: loading bib module breaks colors in tikz figures (mkiv)
  2009-05-09  7:21 ` Otared Kavian
@ 2009-05-09  7:51   ` Taco Hoekwater
  2009-05-09 15:56     ` Mojca Miklavec
  2009-05-11  8:19     ` Taco Hoekwater
  2009-05-09  7:51   ` Taco Hoekwater
  1 sibling, 2 replies; 9+ messages in thread
From: Taco Hoekwater @ 2009-05-09  7:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Otared Kavian wrote:
> 
> On 8 mai 09, at 22:45, Mojca Miklavec wrote:
> 
>> […]
>>
>> Can anyone please confirm the bug? […]
> 

There is an extra '\unprotect' in t-bib.mkiv (line 21),
causing the exclamation marker to remain having \catcode 11
for the rest of the doucment.

I can't upload right now, but you can verify that that fixes
it by adding \protect right after the \usemodule[bib]

Best wishes,
Taco




___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: loading bib module breaks colors in tikz figures (mkiv)
  2009-05-09  7:21 ` Otared Kavian
  2009-05-09  7:51   ` Taco Hoekwater
@ 2009-05-09  7:51   ` Taco Hoekwater
  1 sibling, 0 replies; 9+ messages in thread
From: Taco Hoekwater @ 2009-05-09  7:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Otared Kavian wrote:
> 
> On 8 mai 09, at 22:45, Mojca Miklavec wrote:
> 
>> […]
>>
>> Can anyone please confirm the bug? […]
> 

There is an extra '\unprotect' in t-bib.mkiv (line 21),
causing the exclamation marker to remain having \catcode 11
for the rest of the doucment.

I can't upload right now, but you can verify that that fixes
it by adding \protect right after the \usemodule[bib]

Best wishes,
Taco
PS Best minimal file/bug recipe ever!




___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: loading bib module breaks colors in tikz figures (mkiv)
  2009-05-09  7:51   ` Taco Hoekwater
@ 2009-05-09 15:56     ` Mojca Miklavec
  2009-05-09 16:35       ` Otared Kavian
  2009-05-11  8:19     ` Taco Hoekwater
  1 sibling, 1 reply; 9+ messages in thread
From: Mojca Miklavec @ 2009-05-09 15:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Till Tantau

On Sat, May 9, 2009 at 09:51, Taco Hoekwater wrote:
> Otared Kavian wrote:
>>
>> On 8 mai 09, at 22:45, Mojca Miklavec wrote:
>>
>>> […]
>>>
>>> Can anyone please confirm the bug? […]
>>
>
> There is an extra '\unprotect' in t-bib.mkiv (line 21),
> causing the exclamation marker to remain having \catcode 11
> for the rest of the doucment.
>
> I can't upload right now, but you can verify that that fixes
> it by adding \protect right after the \usemodule[bib]

Great, thanks a lot. This fixes the problem.

I wanted to test a related problem I had in past (missing color in
tikz in mkiv; without loading bib module), but the other document
fails in two other ways with mkiv, so I'll be grateful for this fix
for now and try to fight the rest of bugs separately.

Thanks,
    Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: loading bib module breaks colors in tikz figures (mkiv)
  2009-05-09 15:56     ` Mojca Miklavec
@ 2009-05-09 16:35       ` Otared Kavian
  2009-05-09 16:45         ` Mojca Miklavec
  0 siblings, 1 reply; 9+ messages in thread
From: Otared Kavian @ 2009-05-09 16:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 9 mai 09, at 17:56, Mojca Miklavec wrote:

> […]
> I wanted to test a related problem I had in past (missing color in
> tikz in mkiv; without loading bib module), but the other document
> fails in two other ways with mkiv, so I'll be grateful for this fix
> for now and try to fight the rest of bugs separately.
>
> Thanks,
>    Mojca

Hi Mojca,

Some time ago, I think you or someone else, reported a bug with mkiv  
and tickz, but it seems that this problem is fixed now (at least with  
LuaTeX, Version beta-0.40.1-2009050813 (Web2C 7.5.7), ConTeXt  ver:  
2009.05.08 21:48 MKIV)

The reported bug was about the following example:

%%% begin bug-tickz
\usemodule[tikz]
\setupcolors[state=start]
\starttext
\tikz\shade[ball color=red!40!yellow] (0,0) circle (.15cm);
\blank[2*big]
\tikz\shade[ball color=red!40!yellow] (0,0) circle (2cm);
\blank[2*big]
\tikz\shade[ball color=red!40!yellow] (3,0) circle (2cm);
\stoptext
%%% end bug-tickz

Best regards: OK

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: loading bib module breaks colors in tikz figures (mkiv)
  2009-05-09 16:35       ` Otared Kavian
@ 2009-05-09 16:45         ` Mojca Miklavec
  0 siblings, 0 replies; 9+ messages in thread
From: Mojca Miklavec @ 2009-05-09 16:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, May 9, 2009 at 18:35, Otared Kavian wrote:
>
> Some time ago, I think you or someone else, reported a bug with mkiv and
> tickz, but it seems that this problem is fixed now (at least with LuaTeX,
> Version beta-0.40.1-2009050813 (Web2C 7.5.7), ConTeXt  ver: 2009.05.08 21:48
> MKIV)
>
> The reported bug was about the following example:
>
> %%% begin bug-tickz
> \usemodule[tikz]
> \setupcolors[state=start]
> \starttext
> \tikz\shade[ball color=red!40!yellow] (0,0) circle (.15cm);
> \blank[2*big]
> \tikz\shade[ball color=red!40!yellow] (0,0) circle (2cm);
> \blank[2*big]
> \tikz\shade[ball color=red!40!yellow] (3,0) circle (2cm);
> \stoptext
> %%% end bug-tickz
>
> Best regards: OK

Yes, thanks a lot, that's exactly the case I was referring to. (Maybe
the reason for failure was exactly the same back then, just the
\unprotect being in some other file.)

It's so nice when bugs "just resolve" themselves with time without
human interaction ... I wish all the bugs were such :) :) :)

This indeed works now, though ironically I still cannot compile the
document from where I extracted the example, for at least two
different reasons, one of them being in my own module :)

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: loading bib module breaks colors in tikz figures (mkiv)
  2009-05-09  7:51   ` Taco Hoekwater
  2009-05-09 15:56     ` Mojca Miklavec
@ 2009-05-11  8:19     ` Taco Hoekwater
  1 sibling, 0 replies; 9+ messages in thread
From: Taco Hoekwater @ 2009-05-11  8:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Taco Hoekwater wrote:
> 
> I can't upload right now, but you can verify that that fixes
> it by adding \protect right after the \usemodule[bib]

New bib module here:

 http://modules.contextgarden.net/module/detail?name=bib

Best wishes,
Taco

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-05-11  8:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-08 20:45 loading bib module breaks colors in tikz figures (mkiv) Mojca Miklavec
2009-05-08 20:53 ` Mojca Miklavec
2009-05-09  7:21 ` Otared Kavian
2009-05-09  7:51   ` Taco Hoekwater
2009-05-09 15:56     ` Mojca Miklavec
2009-05-09 16:35       ` Otared Kavian
2009-05-09 16:45         ` Mojca Miklavec
2009-05-11  8:19     ` Taco Hoekwater
2009-05-09  7:51   ` Taco Hoekwater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).