From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Overlapping \starthanging \stophanging with side captions
Date: Mon, 15 Apr 2013 10:30:56 +0200 [thread overview]
Message-ID: <B4ABE652-5DD6-428D-8DA3-4936FB375C32@gmail.com> (raw)
In-Reply-To: <CAJUGkfzHFxQsqy4brZRr+huJJbZCW3rmSXXBqkdzeGZ4+tN5Dw@mail.gmail.com>
Am 15.04.2013 um 10:18 schrieb Peter Sienkowski <petess@gmail.com>:
> Hi,
>
> I'm trying to have extra explanatory text on the side of figures that is not part of the figure's caption. I can get a single figure to work but am having problems when there are multiple figures one after the other.
>
> I'm new to ConTeXT and have looked at the Details Manual but have not been able to fix this.
>
> I've been using something like:
>
> \starthanging{
> \placefigure[force][fig:first]{Caption 1} {\externalfigure[first-figure][width=\textwidth]}}
> \inother[width=5cm]{Some text for the other bit}
> \stophanging
>
> \starthanging{
> \placefigure[force][fig:first]{Caption 2} {\externalfigure[second-figure][width=\textwidth]}}
> \inother[width=5cm]{Some text for the other bit 2}
> \stophanging
>
> and the two figures will overlap.
>
> Any help would be much appreciated.
Your problem is that you use the hanging environment in a way which is just wrong,
the purpose of the command is to put a image etc. at the left/right side of the next
paragraph.
\useMPlibrary[dum]
\starttext
\starthanging{\externalfigure[dummy][width=4cm]}
\input tufte
\stophanging
\stoptext
What you can try is to put the margin text *in* the float itself because the text is
flushed at the begin of the next paragraph.
\starttext
\startplacefigure[location=force,title={First dummy caption}]
\inmargin{First margin dummy}
\externalfigure[dummy][width=\textwidth]
\stopplacefigure
\startplacefigure[location=force,title={Second dummy caption}]
\inmargin{Second margin dummy}
\externalfigure[dummy][width=\textwidth]
\stopplacefigure
\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:[~2013-04-15 8:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-15 8:18 Peter Sienkowski
2013-04-15 8:30 ` Wolfgang Schuster [this message]
2013-04-16 0:13 Peter Sienkowski
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=B4ABE652-5DD6-428D-8DA3-4936FB375C32@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).