David Roderick schrieb am 14.10.2024 um 13:12:
Thank you for fixing this. I espy another feature which is required. I save the png's into a subdirectory called images_0007 which is a subdirectory of where my tex files are located. I run context from the latter (main or lower) working directory. Your script looks for the png's in this lower (main) directory:
\startplacefigure[location=here,reference=Picture 1178610960,title={}]% rId6 \externalfigure[image1.png] \stopplacefigure
should be: \startplacefigure[location=here,reference=Picture 1178610960,title={}]% rId6 \externalfigure[images_00007/image1.png][hfactor=fit] \stopplacefigure
If you could fix this it would be greatly appreciated, and methinks useful.
You don't have to include the subdirectory in \externalfigure when you set the search path at the begin of the document with \setupexternalfigures[directory=images_00007] Even the file extension can be left out. %%%% begin example \setupexternalfigures[directory=images_00007] \starttext \startplacefigure[reference=Picture 1178610960] \externalfigure[image1][hfactor=fit] \stopplacefigure \stoptext %%%% end example Wolfgang