ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] [ flowing figures ]
@ 2024-01-11 15:15 vm via ntg-context
  2024-01-11 15:39 ` [NTG-context] " Wolfgang Schuster
  2024-01-11 15:41 ` Henning Hraban Ramm
  0 siblings, 2 replies; 5+ messages in thread
From: vm via ntg-context @ 2024-01-11 15:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: vm

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: [ flowing figures ]
  2024-01-11 15:15 [NTG-context] [ flowing figures ] vm via ntg-context
@ 2024-01-11 15:39 ` Wolfgang Schuster
  2024-01-11 19:07   ` Floris van Manen via ntg-context
  2024-01-11 15:41 ` Henning Hraban Ramm
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2024-01-11 15:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users, vm via ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: [ flowing figures ]
  2024-01-11 15:15 [NTG-context] [ flowing figures ] vm via ntg-context
  2024-01-11 15:39 ` [NTG-context] " Wolfgang Schuster
@ 2024-01-11 15:41 ` Henning Hraban Ramm
  1 sibling, 0 replies; 5+ messages in thread
From: Henning Hraban Ramm @ 2024-01-11 15:41 UTC (permalink / raw)
  To: vm via ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: [ flowing figures ]
  2024-01-11 15:39 ` [NTG-context] " Wolfgang Schuster
@ 2024-01-11 19:07   ` Floris van Manen via ntg-context
  2024-01-11 19:15     ` Henning Hraban Ramm
  0 siblings, 1 reply; 5+ messages in thread
From: Floris van Manen via ntg-context @ 2024-01-11 19:07 UTC (permalink / raw)
  To: Wolfgang Schuster, mailing list for ConTeXt users; +Cc: Floris van Manen

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: [ flowing figures ]
  2024-01-11 19:07   ` Floris van Manen via ntg-context
@ 2024-01-11 19:15     ` Henning Hraban Ramm
  0 siblings, 0 replies; 5+ messages in thread
From: Henning Hraban Ramm @ 2024-01-11 19:15 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-11 19:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-11 15:15 [NTG-context] [ flowing figures ] vm via ntg-context
2024-01-11 15:39 ` [NTG-context] " Wolfgang Schuster
2024-01-11 19:07   ` Floris van Manen via ntg-context
2024-01-11 19:15     ` Henning Hraban Ramm
2024-01-11 15:41 ` Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).