ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Moving up a Figure
@ 2023-06-03 16:35 Jeroen via ntg-context
  2023-06-03 18:22 ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Jeroen via ntg-context @ 2023-06-03 16:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jeroen


[-- Attachment #1.1: Type: text/plain, Size: 400 bytes --]

With the following example, the figure is placed a little lower than the
first text line. The top of the figure is at about the middle of the first
line. Is there a way to move-up the figure slightly to align it with the
top of the text line?

\useMPlibrary[dum]

\starttext

\startplacefigure
  [number=no,
   location=right]
  \externalfigure[dummy]
\stopplacefigure

\samplefile{tufte}

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 500 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Moving up a Figure
  2023-06-03 16:35 [NTG-context] Moving up a Figure Jeroen via ntg-context
@ 2023-06-03 18:22 ` Mikael Sundqvist via ntg-context
  2023-06-05  2:02   ` Jeroen via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2023-06-03 18:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

Hi,

On Sat, Jun 3, 2023 at 6:36 PM Jeroen via ntg-context
<ntg-context@ntg.nl> wrote:
>
> With the following example, the figure is placed a little lower than the first text line. The top of the figure is at about the middle of the first line. Is there a way to move-up the figure slightly to align it with the top of the text line?
>
> \useMPlibrary[dum]
>
> \starttext
>
> \startplacefigure
>   [number=no,
>    location=right]
>   \externalfigure[dummy]
> \stopplacefigure
>
> \samplefile{tufte}
>
> \stoptext

Maybe

location={right,high}

is what you look for?

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Moving up a Figure
  2023-06-03 18:22 ` Mikael Sundqvist via ntg-context
@ 2023-06-05  2:02   ` Jeroen via ntg-context
  2023-06-05  6:08     ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Jeroen via ntg-context @ 2023-06-05  2:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jeroen


[-- Attachment #1.1: Type: text/plain, Size: 1395 bytes --]

Not fully, it indeed moves up the figure but a little too much. Is there a
more granular method?

Op za 3 jun 2023 om 20:24 schreef Mikael Sundqvist via ntg-context <
ntg-context@ntg.nl>:

> Hi,
>
> On Sat, Jun 3, 2023 at 6:36 PM Jeroen via ntg-context
> <ntg-context@ntg.nl> wrote:
> >
> > With the following example, the figure is placed a little lower than the
> first text line. The top of the figure is at about the middle of the first
> line. Is there a way to move-up the figure slightly to align it with the
> top of the text line?
> >
> > \useMPlibrary[dum]
> >
> > \starttext
> >
> > \startplacefigure
> >   [number=no,
> >    location=right]
> >   \externalfigure[dummy]
> > \stopplacefigure
> >
> > \samplefile{tufte}
> >
> > \stoptext
>
> Maybe
>
> location={right,high}
>
> is what you look for?
>
> /Mikael
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2308 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Moving up a Figure
  2023-06-05  2:02   ` Jeroen via ntg-context
@ 2023-06-05  6:08     ` Mikael Sundqvist via ntg-context
  2023-06-05 13:12       ` Alan Braslau via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2023-06-05  6:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

Hi,

On Mon, Jun 5, 2023 at 4:03 AM Jeroen via ntg-context
<ntg-context@ntg.nl> wrote:
>
> Not fully, it indeed moves up the figure but a little too much. Is there a more granular method?

Not that I know of, but maybe {right,halfline} will do?

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Moving up a Figure
  2023-06-05  6:08     ` Mikael Sundqvist via ntg-context
@ 2023-06-05 13:12       ` Alan Braslau via ntg-context
  2023-06-05 17:36         ` Aditya Mahajan via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Braslau via ntg-context @ 2023-06-05 13:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Alan Braslau

On 05/06/23 05/06/23, 00:08, Mikael Sundqvist via ntg-context wrote:
> On Mon, Jun 5, 2023 at 4:03 AM Jeroen via ntg-context
> <ntg-context@ntg.nl>  wrote:
>> Not fully, it indeed moves up the figure but a little too much. Is there a more granular method?
> Not that I know of, but maybe {right,halfline} will do?

Maybe try "location={right,-1*hang},"

Alan

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Moving up a Figure
  2023-06-05 13:12       ` Alan Braslau via ntg-context
@ 2023-06-05 17:36         ` Aditya Mahajan via ntg-context
  2023-06-06 17:39           ` Jeroen via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan via ntg-context @ 2023-06-05 17:36 UTC (permalink / raw)
  To: Alan Braslau via ntg-context; +Cc: Aditya Mahajan

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

On Mon, 5 Jun 2023, Alan Braslau via ntg-context wrote:

> On 05/06/23 05/06/23, 00:08, Mikael Sundqvist via ntg-context wrote:
> > On Mon, Jun 5, 2023 at 4:03 AM Jeroen via ntg-context
> > <ntg-context@ntg.nl>  wrote:
> >> Not fully, it indeed moves up the figure but a little too much. Is there a
> >> more granular method?
> > Not that I know of, but maybe {right,halfline} will do?
> 
> Maybe try "location={right,-1*hang},"

For finer control, you can use `\movesidefloat`:

\movesidefloat[x=-..., y=...]
\startplacefigure
  [..]
\stopplacefigure

Aditya


[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: [NTG-context] Moving up a Figure
  2023-06-05 17:36         ` Aditya Mahajan via ntg-context
@ 2023-06-06 17:39           ` Jeroen via ntg-context
  0 siblings, 0 replies; 7+ messages in thread
From: Jeroen via ntg-context @ 2023-06-06 17:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jeroen


[-- Attachment #1.1: Type: text/plain, Size: 1674 bytes --]

This one works very nicely, though the movesidefloat gives nicely complete
control.

\samplefile{tufte}
\startplacefigure
  [location={right,halfline},
  number=no]
  \externalfigure[autocad.png][width=0.6\textwidth]
\stopplacefigure
\samplefile{tufte}

Below the figure there is quite some space before the first line of text
starts, is there a way for the next text line to start immediately below
the future?

Op ma 5 jun 2023 om 19:38 schreef Aditya Mahajan via ntg-context <
ntg-context@ntg.nl>:

> On Mon, 5 Jun 2023, Alan Braslau via ntg-context wrote:
>
> > On 05/06/23 05/06/23, 00:08, Mikael Sundqvist via ntg-context wrote:
> > > On Mon, Jun 5, 2023 at 4:03 AM Jeroen via ntg-context
> > > <ntg-context@ntg.nl>  wrote:
> > >> Not fully, it indeed moves up the figure but a little too much. Is
> there a
> > >> more granular method?
> > > Not that I know of, but maybe {right,halfline} will do?
> >
> > Maybe try "location={right,-1*hang},"
>
> For finer control, you can use `\movesidefloat`:
>
> \movesidefloat[x=-..., y=...]
> \startplacefigure
>   [..]
> \stopplacefigure
>
> Aditya
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2702 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-06-06 17:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-03 16:35 [NTG-context] Moving up a Figure Jeroen via ntg-context
2023-06-03 18:22 ` Mikael Sundqvist via ntg-context
2023-06-05  2:02   ` Jeroen via ntg-context
2023-06-05  6:08     ` Mikael Sundqvist via ntg-context
2023-06-05 13:12       ` Alan Braslau via ntg-context
2023-06-05 17:36         ` Aditya Mahajan via ntg-context
2023-06-06 17:39           ` Jeroen via ntg-context

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).