Hi, I’ve a strange problem, not for the first time, but I can’t find the actual reason: If I place an image just with \externalfigure, all is well. But in my convoluted real application, ConTeXt breaks with a combination of "Unknown relation will be considered false" and "Oh dear. I can't decide if the expression above is positive, negative, or zero. So this comparison test won't be 'true'." or "Equation cannot be performed" and "I'm sorry, but I don't know how to make such things equal." As a workaround, I can place the image somewhere (e.g. outside of the printed paper in a tiny size) first, and all is well. \useexternalfigure doesn’t help. I couldn’t find a MWE that shows the problem, sorry. In the current case, it’s about SVG symbols for my folders module. The problem doesn’t seem to be with defining the symbols in a macro, but maybe with nested context calls in Lua code (via anonymous functions). I had a similar problem years ago with images placed on layers with a macro. So I guess it might be a matter of expansion. Hraban
On 1/17/2026 3:36 PM, Henning Hraban Ramm wrote:
Hi, I’ve a strange problem, not for the first time, but I can’t find the actual reason:
If I place an image just with \externalfigure, all is well.
But in my convoluted real application, ConTeXt breaks with a combination of "Unknown relation will be considered false" and "Oh dear. I can't decide if the expression above is positive, negative, or zero. So this comparison test won't be 'true'." or "Equation cannot be performed" and "I'm sorry, but I don't know how to make such things equal."
this comes from some metapost graphic, ikely some overloaded variable or = that should be := Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Am 17.01.26 um 17:04 schrieb Hans Hagen via ntg-context:
On 1/17/2026 3:36 PM, Henning Hraban Ramm wrote:
Hi, I’ve a strange problem, not for the first time, but I can’t find the actual reason:
If I place an image just with \externalfigure, all is well.
But in my convoluted real application, ConTeXt breaks with a combination of "Unknown relation will be considered false" and "Oh dear. I can't decide if the expression above is positive, negative, or zero. So this comparison test won't be 'true'." or "Equation cannot be performed" and "I'm sorry, but I don't know how to make such things equal."
this comes from some metapost graphic, ikely some overloaded variable or = that should be :=
Ah, then it’s probably either in the SVG converter code or in the code that’s responsible for the MetaPost font in the dirtree module. There’s no MP code involved that I wrote myself. Hraban
participants (2)
-
Hans Hagen -
Henning Hraban Ramm