[NTG-context] Re: [ flowing figures ]

2024-01-11 Thread Henning Hraban Ramm

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: [ flowing figures ]

2024-01-11 Thread 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)]


.Floris
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: [ flowing figures ]

2024-01-11 Thread Henning Hraban Ramm

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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: [ flowing figures ]

2024-01-11 Thread Wolfgang Schuster

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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___