ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Martin Kolarík" <martin@mii.cz>
Subject: Floats and captions difficulties
Date: Sun, 12 Sep 2004 08:20:50 +0200	[thread overview]
Message-ID: <NHEGKLHCFGKJGPGBIEOMIEOBCAAA.martin@mii.cz> (raw)
In-Reply-To: <414210CD.7040902@wxs.nl>

Hi Hans,

I should want to get text around float (a side float) with the caption
positioned inside the margin. As I did not found such parameter(s) I peeked
into source code.

First, it seems to me, the \setupfloat making the sidefloat on existing
predefined float do not work. If I state:

\setupfloat[table][location=outer]
\placetable{caption}...

the table is properly placed, but the text do not float around. If I use:

\placetable[outer]{caption}...

everything is OK. Maybe I missed something, or this is an unpleasant feature
or a small bug :-)

For second, the first case, when the text does not float around, allows some
caption hacking. After studying sources sufficient for my needs is to define
minimalwidth=\rightmarginwidth and inside Command from
\setupcaptions[command=...] move the box with proper content into the
margin.

But there are the stuffs:

a) caption's width and minimalwidth do not work for sidefloat, as inner
doparfloat always uses \wd\tempfloatbox. So the modifying width of caption
is rather impossible.

b) the Command gets \hbox with another boxes inside. One should be able to
get the contents of theses boxes to reformat it (to correct width,
aligntment etc.), but this is not trivial and at least this reuired writing
a code highly dependent on current ConTeXt implementation of captions. This
is not good and again it makes the caption handling difficult.

Summary: I am able to (with some tricks) to put the caption in margin for
pagefloats, but the text is not floating around, or I am able to get the
text floating, but the caption is uncontrollable.

For me, the solution could be to adopt the behaviour of pagefloat widths
into sidefloat macro (and altough minimalwidth parameter is not the best
name for exact width, it works fine :-).

Thank you,

have a nice day,

Martin

  parent reply	other threads:[~2004-09-12  6:20 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-10 15:15 Help with LaTeX -> ConTeXt & book typesetting Ulrich Dirr
2004-09-10 20:38 ` Hans Hagen Outside
2004-09-11  7:22   ` Ulrich Dirr
2004-09-12  8:37     ` Hans Hagen Outside
2004-09-12  9:01       ` XML in heads Martin Kolarík
2004-09-12  9:17         ` XML in heads -- correction Martin Kolarík
2004-09-12 17:13       ` Help with LaTeX -> ConTeXt & book typesetting Ulrich Dirr
2004-09-13 18:28       ` struts in \quotation{..} (was: Help with LaTeX -> ConTeXt & book typesetting) Patrick Gundlach
2004-09-14  5:13         ` Ulrich Dirr
2004-09-14  9:46           ` Hans Hagen
2004-09-14  9:52         ` struts in \quotation{..} Hans Hagen
2004-09-14 10:21           ` Patrick Gundlach
2004-09-14 16:25             ` Hans Hagen
2004-09-14 16:58               ` Patrick Gundlach
2004-09-15  8:17                 ` Hans Hagen
2004-09-27 12:08                   ` Christopher Creutzig
2004-09-12  6:20   ` Martin Kolarík [this message]
2004-09-12  8:00     ` Floats and captions difficulties -- correction Martin Kolarík
2004-09-15 18:43     ` Floats and captions difficulties Martin Kolarík
2004-09-16  7:43       ` Hans Hagen
2004-09-16 11:24         ` Martin Kolařík

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=NHEGKLHCFGKJGPGBIEOMIEOBCAAA.martin@mii.cz \
    --to=martin@mii.cz \
    --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).