ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Robert Blackstone <blackstone.robert@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: How does \setupfloat work?
Date: Sat, 29 Nov 2014 13:38:37 +0100	[thread overview]
Message-ID: <5D59A607-9255-4FF9-9F81-65FA1CA9034C@gmail.com> (raw)
In-Reply-To: <mailman.119.1417258171.2379.ntg-context@ntg.nl>


On 29 Nov 2014, at 11:49 ,  Mark Szepieniec <mszepien@gmail.com> wrote
> Sorry, I should have mentioned I was able to work around it by doing
> exactly that, but I'd rather not have to edit all the \placefigure
> instances if I decide to change the width.
> 
> Also I'd like to use a different default width for graphics, so
> \setupexternalfigures[width=XXXcm] wouldn't work well either.
> 
> I realize I could define my own macros or something to solve this, but I'm
> just puzzled that setting width in \setupfloat[figure] doesn't work. Am I
> reading the manual wrong, or is is just not implemented yet or something?
> (honest question)
 
Hi Mark,
What I would probably do (again) is:

1 leave out the float dimension from the setup and use something like
\definefloat[figure][figures]
\setupfloat[figure][location=,spacebefore=,spaceafter=,sidespacebefore=,sidespaceafter=] or whatever you want in this respect

2 collect in a separate .tex-file, to be input in your document .tex-file, all figure-data in the form 
\useexternalfigure[Fig1][YourFigure1.png][width=.x\textwidth]%  etc

If you want a different uniform figure width you can then easily replace ijn this file all width=.x\textwidth by width=.y\textwidth.

3 In your document .tex-file use 
\placefigure[here][Fig1]{Title}
{\externalfigure[Fig1]}  

This will probably give you optimal flexibility.

I hope it helps.

Best regards,
Robert Blackstone






___________________________________________________________________________________
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 12:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.119.1417258171.2379.ntg-context@ntg.nl>
2014-11-29 12:38 ` Robert Blackstone [this message]
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
  -- 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=5D59A607-9255-4FF9-9F81-65FA1CA9034C@gmail.com \
    --to=blackstone.robert@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).