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? Some hints? .Floris
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
the \dontleavehmode construction works fine as it allows me to set the width. Now I try to use the thumb image as the 'button' to open the full rendered page in an external pdf at a give page. But my Linux pdf viewer just notice that there is a hyperlink, but will not even open the pdf. Let alone jumping to the intended page. mupdf does not respond to the link either Is this even possible? \goto{\externalfigure[thumb/20210213_142125-skel.png][width=30mm]}[url(__index.pdf#page=1)] .Floris
Am 11.01.24 um 20:07 schrieb Floris van Manen via ntg-context:
the \dontleavehmode construction works fine as it allows me to set the width.
Now I try to use the thumb image as the 'button' to open the full rendered page in an external pdf at a give page. But my Linux pdf viewer just notice that there is a hyperlink, but will not even open the pdf. Let alone jumping to the intended page. mupdf does not respond to the link either Is this even possible?
\goto{\externalfigure[thumb/20210213_142125-skel.png][width=30mm]}[url(__index.pdf#page=1)]
To open an external file, you need program(), not url() see https://wiki.contextgarden.net/Command/goto Hraban
Am 11.01.24 um 16:15 schrieb vm via ntg-context:
How can I wrap an externalfigure into a box that can be placed within running text?
\externalfigure[dummy][frame=on] With or without a \placefigure
Should I wrap the externalfigure into a start/stop buffer, then place it?
I don’t see why. Hraban
participants (4)
-
Floris van Manen
-
Henning Hraban Ramm
-
vm
-
Wolfgang Schuster