Hi, This morning I used \rotate to correct some slightly sloped graphics and noticed a weird behavior. In case of the rotation angle interval (-1,0) the negative sign is simply ignored, so the rotation goes to the opposite direction. Donno if negative values for the rotation angle are allowed (they normally work). But it's easier to handle it this way (sign for direction of rotation). @Wolfgang: as workaround, only use positive values or add -360 ;) (and sorry for my wrong interpretation of your table mail) @Taco: are you still collecting the ConTeXt bugs? Best wishes, Peter \setuplayout[grid=yes] \starttext \showgrid \def\Foobar{\blackrule[width=\textwidth,height=0.5\lineheight]} \framed{\rotate[rotation=-0.5]{\Foobar}} % -0.x is not working (sign is ignored) \snaptogrid\hbox\bgroup \framed{\rotate[rotation=359.5]{\Foobar}} % ok \egroup \snaptogrid\hbox\bgroup \framed{\rotate[rotation=0.5]{\Foobar}} % ok \egroup \snaptogrid\hbox\bgroup \framed{\rotate[rotation=-359.5]{\Foobar}} % ok \egroup \stoptext
Peter Rolf wrote:
Hi,
This morning I used \rotate to correct some slightly sloped graphics and noticed a weird behavior. In case of the rotation angle interval (-1,0) the negative sign is simply ignored, so the rotation goes to the opposite direction.
Donno if negative values for the rotation angle are allowed (they normally work). But it's easier to handle it this way (sign for direction of rotation).
@Wolfgang: as workaround, only use positive values or add -360 ;) (and sorry for my wrong interpretation of your table mail) @Taco: are you still collecting the ConTeXt bugs?
i sent you a patch ... was a tricky side effect ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
Peter Rolf wrote:
Hi,
This morning I used \rotate to correct some slightly sloped graphics and noticed a weird behavior. In case of the rotation angle interval (-1,0) the negative sign is simply ignored, so the rotation goes to the opposite direction.
Donno if negative values for the rotation angle are allowed (they normally work). But it's easier to handle it this way (sign for direction of rotation).
@Wolfgang: as workaround, only use positive values or add -360 ;) (and sorry for my wrong interpretation of your table mail) @Taco: are you still collecting the ConTeXt bugs?
Right now not really, I have no time. That does not mean that people cannot add bugs at the tracker themselves, though: http://foundry.supelec.fr/tracker/?atid=161&group_id=21&func=browse Best wishes, Taco
Taco Hoekwater schrieb:
Hans Hagen wrote:
Peter Rolf wrote:
Hi,
This morning I used \rotate to correct some slightly sloped graphics and noticed a weird behavior. In case of the rotation angle interval (-1,0) the negative sign is simply ignored, so the rotation goes to the opposite direction.
Donno if negative values for the rotation angle are allowed (they normally work). But it's easier to handle it this way (sign for direction of rotation).
@Wolfgang: as workaround, only use positive values or add -360 ;) (and sorry for my wrong interpretation of your table mail) @Taco: are you still collecting the ConTeXt bugs?
Right now not really, I have no time. That does not mean that people cannot add bugs at the tracker themselves, though:
http://foundry.supelec.fr/tracker/?atid=161&group_id=21&func=browse
ok, will do so. But this time Hans was faster ;)
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 ___________________________________________________________________________________
Hans Hagen schrieb:
Peter Rolf wrote:
Hi,
This morning I used \rotate to correct some slightly sloped graphics and noticed a weird behavior. In case of the rotation angle interval (-1,0) the negative sign is simply ignored, so the rotation goes to the opposite direction.
Donno if negative values for the rotation angle are allowed (they normally work). But it's easier to handle it this way (sign for direction of rotation).
@Wolfgang: as workaround, only use positive values or add -360 ;) (and sorry for my wrong interpretation of your table mail) @Taco: are you still collecting the ConTeXt bugs?
i sent you a patch ... was a tricky side effect
Thanks Hans, patch works fine. Also we have another 'brrr' (\realnumber) in the source :D Peter
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Peter Rolf
-
Taco Hoekwater