From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: change caption position temporarily
Date: Mon, 16 Jul 2012 14:19:30 +0200 [thread overview]
Message-ID: <6ABA0EDA-53EB-4A6B-8030-5F07DF440F25@gmail.com> (raw)
In-Reply-To: <87zk703vkd.fsf@micropit.couberia.bzh>
Am 16.07.2012 um 11:27 schrieb Peter Münster:
> On Mon, Jul 16 2012, d_jan wrote:
>
>> Is it possible to set the caption position for some images to another position
>> than the one defined in \setupcations ?
>> The standard in my document is location=bottom but for some images I'd prefer
>> =right.
>
> \setupcaptions[location=bottom]
> \def\PlaceRightFigure#1#2{{\setupcaptions[location=right]%
> \placefigure{#1}{#2}}}
> \starttext
> \placefigure{caption 1}{figure 1}
> \PlaceRightFigure{caption 2}{figure 2}
> \placefigure{caption 3}{figure 3}
> \stoptext
It’s easier to create a real float command which has it’s own caption settings.
\definefloat[rightfigure][rightfigure][figure]
\setupcaption[rightfigure][location=right]
\starttext
\placefigure{caption 1}{\framed{figure 1}}
\placerightfigure{caption 2}{\framed{figure 2}}
\placefigure{caption 3}{\framed{figure 3}}
\stoptext
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-07-16 12:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-16 9:11 d_jan
2012-07-16 9:27 ` Peter Münster
2012-07-16 12:19 ` Wolfgang Schuster [this message]
2012-07-20 19:29 d_jan
2012-07-20 20:10 ` Peter Münster
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=6ABA0EDA-53EB-4A6B-8030-5F07DF440F25@gmail.com \
--to=schuster.wolfgang@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).