ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How does \setupfloat work?
Date: Sat, 29 Nov 2014 18:48:26 -0500 (EST)	[thread overview]
Message-ID: <alpine.OSX.2.02.1411291829110.10021@nqv-znpobbx> (raw)
In-Reply-To: <CAE4-1rVBN_LnsVWJZuQcV0d7ZvFgHrCBbenWZZP-6QefmpCejw@mail.gmail.com>

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
___________________________________________________________________________________
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-29 23:48 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 [this message]
2014-11-30  0:06     ` Mark Szepieniec
     [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=alpine.OSX.2.02.1411291829110.10021@nqv-znpobbx \
    --to=adityam@umich.edu \
    --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).