Re: [NTG-context] Floating picture in margin with no interference with text/sections

2011-11-23 Thread Mikael P. Sundqvist
On Wed, Nov 16, 2011 at 3:18 PM, Mikael P. Sundqvist mic...@gmail.com wrote:
 Dear list,

 I use mkiv which was installed today. Two questions.

 1) Is it possible to put floating pictures in the margin without
 locking them in the current section? See the following example:

 %%% Start example
 \setuplayout[
 rightmargin=5cm,
 width=fit,
 ]

 %\setuphead[section][
 %aligntitle=float,
 %]

 \starttext
 \showframe
 \section{This is a short section}
 It contains one figure.
 \placefigure[inright,top][none]{A caption.}{\externalfigure[cow][width=4cm]}
 \section{This is another short section}
 It contains the same figure.
 \placefigure[inright,top][none]{A
 caption.}{\externalfigure[cow][width=4cm,height=6cm]}

 \section{This is a third section}
 \input knuth
 \stoptext
 %%% Stop example

 The result is given by
 http://tmp.oblandat.se/fig1.pdf
 If I uncomment (what I thought was the solution) the \setuphead part I get
 http://tmp.oblandat.se/fig2.pdf
 which looks better, but not as I want it. I want the sections and the
 text to look just as if there were no figures at all, and I want the
 figures to be stacked in the margin, the first one at the top of the
 margin, and the second one just below the first one. Is this possible?

 2) If I really must not want a new page right after a section head
 (this happens in my long document, but no minimal example is given),
 is there any penalty or something i can set? This happens fairly often
 with the standard setup, it seems.

 Best regards, Mikael


Dear list,

I hate to reply to myself, but one week and no reply, so I do it.

Anyone knows if 1) is possible?

As for 2) maybe the \setuplayout[preset=strict] just suggested in
another thread does what I want?

Best regards, 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
___


Re: [NTG-context] Floating picture in margin with no interference with text/sections

2011-11-23 Thread Hans Hagen

On 23-11-2011 17:20, Mikael P. Sundqvist wrote:


Anyone knows if 1) is possible?


\placefigure[margin][none]{A 
caption.}{\externalfigure[cow][width=4cm,height=6cm]}


but it has to be improved (pretty old mechanism)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Floating picture in margin with no interference with text/sections

2011-11-16 Thread Mikael P. Sundqvist
Dear list,

I use mkiv which was installed today. Two questions.

1) Is it possible to put floating pictures in the margin without
locking them in the current section? See the following example:

%%% Start example
\setuplayout[
rightmargin=5cm,
width=fit,
]

%\setuphead[section][
%aligntitle=float,
%]

\starttext
\showframe
\section{This is a short section}
It contains one figure.
\placefigure[inright,top][none]{A caption.}{\externalfigure[cow][width=4cm]}
\section{This is another short section}
It contains the same figure.
\placefigure[inright,top][none]{A
caption.}{\externalfigure[cow][width=4cm,height=6cm]}

\section{This is a third section}
\input knuth
\stoptext
%%% Stop example

The result is given by
http://tmp.oblandat.se/fig1.pdf
If I uncomment (what I thought was the solution) the \setuphead part I get
http://tmp.oblandat.se/fig2.pdf
which looks better, but not as I want it. I want the sections and the
text to look just as if there were no figures at all, and I want the
figures to be stacked in the margin, the first one at the top of the
margin, and the second one just below the first one. Is this possible?

2) If I really must not want a new page right after a section head
(this happens in my long document, but no minimal example is given),
is there any penalty or something i can set? This happens fairly often
with the standard setup, it seems.

Best regards, 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
___