Can is somehow inspect the intermediate results of an mtxrun?
![](https://secure.gravatar.com/avatar/c83fb4134167a11422c23048fb8a85e3.jpg?s=120&d=mm&r=g)
I have an mtxrun on a .tex file that has problems I need to debug. The .tex file handles well, but whenMETAPOST has a go, it crashes. But after the run, I cannot inspect what source was fed to METAPOST. Can I inspect that (outside of what the log tells me)? In this case, I know METAPOST is fed: picture pic; x:=80.000; y:=200.000; w:=133.000; h:=53.000;pic := ApplicationComponentLogo( w, h, typeString) shifted (x, -y); draw pic; but the log says this is wrong: metapost log > >> unknown picture pic metapost log > >> ApplicationComponentLogo metapost log > ! Equation cannot be performed (unknown picture=numeric). metapost log > <to be read again> metapost log > ( metapost log > <*> ... h:=53.000;pic := ApplicationComponentLogo( metapost log > w, h, typeString) shifted... SoI need to inspect what is fed to METAPOST to see why METAPOST thinks pic or ApplicationComponentLogo have not been defined. G
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 3/16/2020 10:16 AM, Gerben Wierda wrote:
I have an mtxrun on a .tex file that has problems I need to debug.
The .tex file handles well, but whenMETAPOST has a go, it crashes. But after the run, I cannot inspect what source was fed to METAPOST. Can I inspect that (outside of what the log tells me)?
In this case, I know METAPOST is fed:
picture pic; x:=80.000; y:=200.000; w:=133.000; h:=53.000;pic := ApplicationComponentLogo( w, h, typeString) shifted (x, -y); draw pic;
but the log says this is wrong:
metapost log > >> unknown picture pic metapost log > >> ApplicationComponentLogo metapost log > ! Equation cannot be performed (unknown picture=numeric). metapost log > <to be read again> metapost log > ( metapost log > <*> ... h:=53.000;pic := ApplicationComponentLogo( metapost log > w, h, typeString) shifted...
SoI need to inspect what is fed to METAPOST to see why METAPOST thinks pic or ApplicationComponentLogo have not been defined. you can enable trackers, like
metapost.lua metapost.runs metapost.textexts metapost.scripts metapost.graphics metapost.tracingall metapost.terminal ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Gerben Wierda
-
Hans Hagen