ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Stefan Müller" <warrence.stm@gmx.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Frame around float and its caption, how to?
Date: Sun, 25 Sep 2011 20:57:58 +0200	[thread overview]
Message-ID: <4E7F79B6.5000908@gmx.de> (raw)
In-Reply-To: <5DF7F999-4242-4F9C-926B-D042356B89EC@googlemail.com>

Thank you for taking a look at this.  Too bad your solution is only 
MkII.  The document I'm currently working on is to be written in APA 
style and unfortunately the frame around figure+caption is required... 
I'm not really interested in changing to MkII... ;)  I hope there can 
also be a not too involed solution for this in MkIV.

Best regards,
Stefan

On 25.09.2011 18:32, Wolfgang Schuster wrote:
>
> Am 25.09.2011 um 18:10 schrieb Stefan Müller:
>
>> Hi list,
>>
>> I'm using 201100920 00:09 MkIV standalone.  Some time ago Marcin Borkowski asked [1] on this list about framing floats together with their captions.  It seems to be unanswered and now I stumbled upon a similar problem.  I want to have a figure with a caption together in a frame as wide as the surrounding text, aka \textwidth and the caption filling the available horizontal space.  I.e. I want something like
>>
>> \setupcaption[width=\textwidth]
>> \starttext
>> \placefigure[here]{\input tufte}{\externalfigure[cow]}
>> \stoptext
>>
>> with a frame around it.
>
> Found this in my mail archive:
>
> % engine=pdftex
>
> \setupexternalfigures[location={local,global,default}]
>
> \setupfloats[frame=on,frameoffset=1mm]
>
> \starttext
>
> \section{A figure with a background}
>
> \placefigure
>   {none}
>   {\placelegend
>      {\externalfigure[mill][scale=2000]}
>      {\placefloatcaption[figure]{A dutch mill}}}
>
> \stoptext
>
> It works only with MkII because \placefloatcaption isn’t yet rewritten for the new MkIV code.
>
> Wolfgang
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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-09-25 18:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-25 16:10 Stefan Müller
2011-09-25 16:32 ` Wolfgang Schuster
2011-09-25 18:57   ` Stefan Müller [this message]

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=4E7F79B6.5000908@gmx.de \
    --to=warrence.stm@gmx.de \
    --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).