* \numexpr in \rotate error
@ 2019-10-16 15:02 context
2019-10-16 15:23 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: context @ 2019-10-16 15:02 UTC (permalink / raw)
To: ConTeXt
[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]
Hello,
the following code stopped working after today's Ctx update:
----
\setupexternalfigures[location=default]
\starttext
%\externalfigure[hacker]
\getrandomnumber\t{0}{20}
\rotate[rotation=\numexpr\t-10\relax]{\externalfigure[dummy]}
\stoptext
----
with:
"
tex error > tex error on line 6 in file
X://Users/MMi/Akce/Ctyrkoly.RDS/Texty/VyjProj/~/t.mkiv: ! Missing
\endcsname inserted
<to be read again>
\numexpr
\p_rotation_rotation ->\numexpr
18-10\relax
\grph_rotate_finish_yes ...t \p_rotation_rotation
\endcsname \setbox
\nextbo...
\grph_rotate_finish_indeed ...h_rotate_finish_yes
\fi \egroup
\syst_boxes_with_next_box ...rotate_finish_indeed
\egroup
l.6 ...=\numexpr\t-10\relax]{\externalfigure[dummy]}
1 \setupexternalfigures[location=default]
2
3 \starttext
4 %\externalfigure[hacker]
5 \getrandomnumber\T{0}{20}
6 >> \rotate[rotation=\numexpr\T-10\relax]{\externalfigure[dummy]}
7 \stoptext
8
"
(My previous Ctx version was from about 4/2019).
What's wrong?
Best regards,
Lukas
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: t.mkiv --]
[-- Type: text/x-tex; name=t.mkiv, Size: 188 bytes --]
\setupexternalfigures[location=default]
\starttext
%\externalfigure[hacker]
\getrandomnumber\T{0}{20}
\rotate[rotation=\numexpr\T-10\relax]{\externalfigure[dummy]}
\stoptext
[-- Attachment #3: t.pdf --]
[-- Type: application/pdf, Size: 41358 bytes --]
[-- Attachment #4: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: \numexpr in \rotate error
2019-10-16 15:02 \numexpr in \rotate error context
@ 2019-10-16 15:23 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2019-10-16 15:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 10/16/2019 5:02 PM, context@vivaldi.net wrote:
> Hello,
>
> the following code stopped working after today's Ctx update:
>
> ----
> \setupexternalfigures[location=default]
>
> \starttext
> %\externalfigure[hacker]
> \getrandomnumber\t{0}{20}
> \rotate[rotation=\numexpr\t-10\relax]{\externalfigure[dummy]}
> \stoptext
> ----
\starttext
\getrandomnumber\t{0}{20}
\rotate[rotation=\the\numexpr\t-10\relax]{\externalfigure[dummy]}
\rotate[rotation=\randomnumber{0}{20}]{\externalfigure[dummy]}
\stoptext
> with:
>
> "
> tex error > tex error on line 6 in file
> X://Users/MMi/Akce/Ctyrkoly.RDS/Texty/VyjProj/~/t.mkiv: ! Missing
> \endcsname inserted
>
> <to be read again>
> \numexpr
> \p_rotation_rotation ->\numexpr
> 18-10\relax
> \grph_rotate_finish_yes ...t \p_rotation_rotation
> \endcsname \setbox
> \nextbo...
> \grph_rotate_finish_indeed ...h_rotate_finish_yes
> \fi \egroup
> \syst_boxes_with_next_box ...rotate_finish_indeed
> \egroup
> l.6 ...=\numexpr\t-10\relax]{\externalfigure[dummy]}
>
>
> 1 \setupexternalfigures[location=default]
> 2
> 3 \starttext
> 4 %\externalfigure[hacker]
> 5 \getrandomnumber\T{0}{20}
> 6 >> \rotate[rotation=\numexpr\T-10\relax]{\externalfigure[dummy]}
> 7 \stoptext
> 8
> "
>
> (My previous Ctx version was from about 4/2019).
>
> What's wrong?
>
> Best regards,
>
> Lukas
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-16 15:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 15:02 \numexpr in \rotate error context
2019-10-16 15:23 ` Hans Hagen
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).