vm via ntg-context schrieb am 11.01.2024 um 16:15:
How can I wrap an externalfigure into a box that can be placed within running text? Should I wrap the externalfigure into a start/stop buffer, then place it?
There is no need any extra code because \externalfigure can be used in running text, only at the start of a paragraph you have to add \dontleavehmode. Another way is to use the \inlinefigure command which is a small wrapper around \externalfigure. \useMPlibrary[dum] \starttext \samplefile{ward} \externalfigure[dummy][location=low,height=\lineheight] \samplefile{ward} \blank \dontleavehmode\externalfigure[dummy][location=low,height=\lineheight] \samplefile{ward} \blank \samplefile{ward} \inlinefigure[dummy] \samplefile{ward} \blank \inlinefigure[dummy] \samplefile{ward} \stoptext Wolfgang