ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mark Szepieniec <mszepien@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How does \setupfloat work?
Date: Sun, 30 Nov 2014 01:06:07 +0100	[thread overview]
Message-ID: <CAE4-1rWuBuL9hEmLHycc_Fs8c1hjDBB7ei-MyDDjtCYp7n0Cng@mail.gmail.com> (raw)
In-Reply-To: <alpine.OSX.2.02.1411291829110.10021@nqv-znpobbx>


[-- Attachment #1.1: Type: text/plain, Size: 1101 bytes --]

On Sun, Nov 30, 2014 at 12:48 AM, Aditya Mahajan <adityam@umich.edu> wrote:

> On Sat, 29 Nov 2014, Mark Szepieniec wrote:
>
>  So I guess my problem is resolved, but I'd still like to understand better
>> why my earlier solution of doing
>>
>> \setupfloat[figure][width=2cm]
>>
>> didn't set a default for later instances of \placefigure. I feel like I
>> might be missing some aspect of the ConTeXt philosophy, or I'm misreading
>> the manual, or it's just a bug...?
>>
>
> \setupfloat[figure] sets the values of \startplacefigure (and
> \placefigure), and not for \externalfigure. The width value for
> startplacefigure is not used anywhere.
>
> The default value of \setupfloats[width=...] is used when the float box is
> empty. So, the only scenario where the value of \setupfloats[width=...]
> will matter is the following:
>
> \starttext
> \setupfloats[width=2cm]
> \placefloat{}{}
>
> \setupfloats[width=10cm]
> \placefloat{}{}
> \stoptext
>
> Aditya
>
>
Thanks Aditya, that's very helpful and things make more sense now. Is this
stuff documented somewhere or did you consult the source code?

[-- Attachment #1.2: Type: text/html, Size: 1743 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2014-11-30  0:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-29 19:22 Christoph Reller
2014-11-29 20:46 ` Mark Szepieniec
2014-11-29 23:48   ` Aditya Mahajan
2014-11-30  0:06     ` Mark Szepieniec [this message]
     [not found] <mailman.119.1417258171.2379.ntg-context@ntg.nl>
2014-11-29 12:38 ` Robert Blackstone
  -- strict thread matches above, loose matches on Subject: below --
2014-11-29  9:49 Mark Szepieniec
2014-11-29 10:03 ` Hans Hagen
2014-11-29 10:21   ` Mark Szepieniec

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=CAE4-1rWuBuL9hEmLHycc_Fs8c1hjDBB7ei-MyDDjtCYp7n0Cng@mail.gmail.com \
    --to=mszepien@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).