Re: [NTG-context] Figure-text alignment and wrapping text more tightly

2016-09-01 Thread Mikael P. Sundqvist
On Thu, Sep 1, 2016 at 12:06 PM, Florian Leupold  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
___

[NTG-context] Figure-text alignment and wrapping text more tightly

2016-09-01 Thread Florian Leupold
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



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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
___