ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Floating picture in margin with no interference with text/sections
@ 2011-11-16 14:18 Mikael P. Sundqvist
  2011-11-23 16:20 ` Mikael P. Sundqvist
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael P. Sundqvist @ 2011-11-16 14:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2011-11-23 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-16 14:18 Floating picture in margin with no interference with text/sections Mikael P. Sundqvist
2011-11-23 16:20 ` Mikael P. Sundqvist
2011-11-23 16:50   ` Hans Hagen

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