ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Floating picture in margin with no interference with text/sections
Date: Wed, 23 Nov 2011 17:20:28 +0100	[thread overview]
Message-ID: <CAHy-LL-zV-YH4tCWQ4NeYnLzCZX1gkQrXVUq-1NQH9EV=V41zQ@mail.gmail.com> (raw)
In-Reply-To: <CAHy-LL9iK6=xz5=LS=7=doYtf6tG_AdbDRkRS0i-dQ7VJe-GgQ@mail.gmail.com>

On Wed, Nov 16, 2011 at 3:18 PM, Mikael P. Sundqvist <mickep@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
___________________________________________________________________________________


  reply	other threads:[~2011-11-23 16:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16 14:18 Mikael P. Sundqvist
2011-11-23 16:20 ` Mikael P. Sundqvist [this message]
2011-11-23 16:50   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHy-LL-zV-YH4tCWQ4NeYnLzCZX1gkQrXVUq-1NQH9EV=V41zQ@mail.gmail.com' \
    --to=mickep@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).