ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Figure-text alignment and wrapping text more tightly
@ 2016-09-01 10:06 Florian Leupold
  2016-09-01 11:07 ` Mikael P. Sundqvist
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Leupold @ 2016-09-01 10:06 UTC (permalink / raw)
  To: ntg-context


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

Dear list,

I am interested in placing a figure on the right-hand side of the page and wrap text around it, see MWE below. This works mostly nicely. But I have got three questions:

1) Is it possible to top-align the figure with the first line of the paragraph to its left?

2) Is there a way to reduce the vertical gap between the first and second figures?

3) The keyword “low” for \placefigure seems to have an effect. But I don’t know why and could not find a reference to that in contextref.pdf. Is this the correct way to wrap text “more tightly” below the figure (compare second and third figures).

Thanks a lot for your input.

Best regards,
Florian


MWE:

\setupexternalfigures[order={pdf,png,jpg}, location={local,global,default}]
\starttext
\useexternalfigure[figure][mill]
\placefigure[right, none]{}{\externalfigure[figure]}
\input ward
\placefigure[right, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\placefigure[right, low, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\stoptext


[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

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

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Figure-text alignment and wrapping text more tightly
  2016-09-01 10:06 Figure-text alignment and wrapping text more tightly Florian Leupold
@ 2016-09-01 11:07 ` Mikael P. Sundqvist
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael P. Sundqvist @ 2016-09-01 11:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Sep 1, 2016 at 12:06 PM, Florian Leupold <fleupold@posteo.net> wrote:
> Dear list,
>
> I am interested in placing a figure on the right-hand side of the page and wrap text around it, see MWE below. This works mostly nicely. But I have got three questions:
>
> 1) Is it possible to top-align the figure with the first line of the paragraph to its left?
>
> 2) Is there a way to reduce the vertical gap between the first and second figures?
>
> 3) The keyword “low” for \placefigure seems to have an effect. But I don’t know why and could not find a reference to that in contextref.pdf. Is this the correct way to wrap text “more tightly” below the figure (compare second and third figures).
>
> Thanks a lot for your input.
>
> Best regards,
> Florian
>
>
> MWE:
>
> \setupexternalfigures[order={pdf,png,jpg}, location={local,global,default}]
> \starttext
> \useexternalfigure[figure][mill]
> \placefigure[right, none]{}{\externalfigure[figure]}
> \input ward
> \placefigure[right, none]{}{\externalfigure[figure]}
> \input ward
> \input ward
> \input ward
> \placefigure[right, low, none]{}{\externalfigure[figure]}
> \input ward
> \input ward
> \input ward
> \stoptext
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

1) I think you look for the high key.
2) Here, sidespaceafter and sidespacebefore might help
3) I'd look in the details.pdf, the low key might be explained there
(or wait for better answers here)

Compare the three pages in this example, regarding 1) and 2):

\setupexternalfigures[order={pdf,png,jpg}, location={local,global,default}]


\starttext

\useexternalfigure[figure][mill]
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\page[yes]


\setupfloats[sidespaceafter=none,sidespacebefore=none]

\useexternalfigure[figure][mill]
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\page[yes]


\setupfloats[sidespaceafter=-\baselineskip,sidespacebefore=none]

\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\stoptext


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-09-01 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-01 10:06 Figure-text alignment and wrapping text more tightly Florian Leupold
2016-09-01 11:07 ` Mikael P. Sundqvist

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