From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Placing (numbered) figures side-by-side
Date: Fri, 4 Jul 2014 17:31:33 +0200 [thread overview]
Message-ID: <CALBOmsad46L0CJ8d3mnMGrRqGQo_n_3mTp=dC1rZs65pRsFu9g@mail.gmail.com> (raw)
In-Reply-To: <7818A4DB-6A52-4FF6-A863-59015F912E98@gmail.com>
On Fri, Jul 4, 2014 at 4:13 PM, Wolfgang Schuster
<schuster.wolfgang@gmail.com> wrote:
>
> Am 04.07.2014 um 10:21 schrieb Mojca Miklavec <mojca.miklavec.lists@gmail.com>:
>
>> Hi,
>>
>> When placing figures side-by-side I usually use
>>
>> \placefigure[force][label]{}{\startcombination[2*1]
>> {\externalfigure[A]}{Some description of A}
>> {\externalfigure[B]}{Some description of B}
>> \stopcombination}
>>
>> But this time I would like to get two separate figures with two separate titles:
>>
>> [figure] [figure]
>> Figure 1.1: Long description of A Figure 1.2: Long description of B
>>
>> with those long descriptions being "justified" (they split in multiple
>> line already), not centered.
>>
>> What is the best way to achieve that?
>
> Use the floatcombination environment.
>
> \useMPlibrary[dum]
>
> \starttext
>
> \startplacefigure[location=nonumber]
> \startfloatcombination%[width=\textwidth,distance=0pt]
> \startplacefigure[title={Some description of A}]
> %\externalfigure[A][width=4cm]
> \framed[frame=off,offset=none,width=.5\textwidth]{\externalfigure[A][width=4cm]}
> \stopplacefigure
> \startplacefigure[title={Some description of B}]
> %\externalfigure[B][width=4cm]
> \framed[frame=off,offset=none,width=.5\textwidth]{\externalfigure[B][width=4cm]}
> \stopplacefigure
> \stopfloatcombination
> \stopplacefigure
>
> \stoptext
Thank you, but there are some serious problems with the layout. I
managed to find some very dirty workaround, so I can get the desired
effect, but nonetheless:
- titles are wider than the figure, so titles from left and right
overlap; what I ended up doing was
\framed[frame=off,offset=none,width=.2\textwidth]{\externalfigure[cow][width=.4\textwidth]}
- titles are of different length (and have a different number of
lines), so I need to manually add \crlf in one of the titles to
achieve equal height and proper alignment;
- width=... and distance=... are weird; once I set some width,
distance only shifts the right figure outside of the page margin
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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-07-04 15:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-04 8:21 Mojca Miklavec
2014-07-04 14:13 ` Wolfgang Schuster
2014-07-04 15:31 ` Mojca Miklavec [this message]
2014-07-04 15:40 ` Mojca Miklavec
2014-07-04 15:53 ` Wolfgang Schuster
2014-07-04 16:05 ` Mojca Miklavec
2014-07-04 16:08 ` Wolfgang Schuster
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='CALBOmsad46L0CJ8d3mnMGrRqGQo_n_3mTp=dC1rZs65pRsFu9g@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).