loading bib module breaks colors in tikz figures (mkiv)
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
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
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
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
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
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
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
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
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!
participants (3)
-
Mojca Miklavec
-
Otared Kavian
-
Taco Hoekwater