[NTG-context] \numexpr in \rotate error

context at vivaldi.net context at vivaldi.net
Wed Oct 16 17:02:51 CEST 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.mkiv
Type: text/x-tex
Size: 188 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20191016/68fc31ca/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.pdf
Type: application/pdf
Size: 41358 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20191016/68fc31ca/attachment-0001.pdf>


More information about the ntg-context mailing list