From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Styling captions inside \startcombination ... \stopcombination
Date: Mon, 16 Mar 2015 13:12:46 +0100 [thread overview]
Message-ID: <CALBOmsbxuUZnM96xo2t1D4J3p6-ABSerfeuMtBj8YqH=ta6TYA@mail.gmail.com> (raw)
In-Reply-To: <55042534.9020705@wxs.nl>
On Sat, Mar 14, 2015 at 1:10 PM, Hans Hagen <pragma@wxs.nl> wrote:
> On 3/14/2015 10:50 AM, Mojca Miklavec wrote:
>>
>> Hello,
>>
>> I'm using the following code to make the figure captions smaller:
>> \setupcaptions[style={\switchtobodyfont[8pt]}]
>>
>> Now I'm looking for the magic keywoard to also decrease the size of
>> captions inside combinations, as in the following case for example
>> (otherwise the "subcaptions" are too big in comparison):
>>
>> \setupcaptions[style={\switchtobodyfont[8pt]}]
>> \setupexternalfigures[location={default}]
>> \starttext
>> \placefigure{Cows in \ConTeXt}
>> {\startcombination[2*1]
>> {\mirror{\externalfigure[cow][width=4cm]}}{First cow}
>> {\externalfigure[cow][width=4cm]}{Second cow}
>> \stopcombination}
>> \stoptext
>
>
> the obvious:
>
> \setupcombinations[style={\switchtobodyfont[8pt]}]
I'm sorry and thank you. Blush. I feel ashamed that I actually looked
into the source code and found the following inside pack-com.mkiv:
\setupcombination
[\c!width=\v!fit,
\c!height=\v!fit,
\c!distance=\emwidth,
\c!location=\v!bottom, % can be something {top,left}
\c!before=\blank,
\c!after=,
\c!inbetween={\blank[\v!medium]},
%\c!style=,
%\c!color=,
\c!nx=2, % new
\c!ny=1, % new
\c!align=\v!middle]
However I failed to notice the commented-out command "style=". Luckily
I can blame the syntax highlighting that makes the comments more
hidden than the rest of the code ;)
Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2015-03-16 12:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-14 9:50 Mojca Miklavec
2015-03-14 12:10 ` Hans Hagen
2015-03-15 21:25 ` Alan BRASLAU
2015-03-16 12:12 ` Mojca Miklavec [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='CALBOmsbxuUZnM96xo2t1D4J3p6-ABSerfeuMtBj8YqH=ta6TYA@mail.gmail.com' \
--to=mojca.miklavec.lists@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).