ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Overlapping \starthanging \stophanging with side captions
@ 2013-04-15  8:18 Peter Sienkowski
  2013-04-15  8:30 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Sienkowski @ 2013-04-15  8:18 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 783 bytes --]

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.

thanks
Pete

[-- Attachment #1.2: Type: text/html, Size: 1221 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Overlapping \starthanging \stophanging with side captions
  2013-04-15  8:18 Overlapping \starthanging \stophanging with side captions Peter Sienkowski
@ 2013-04-15  8:30 ` Wolfgang Schuster
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2013-04-15  8:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Overlapping \starthanging \stophanging with side captions
@ 2013-04-16  0:13 Peter Sienkowski
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Sienkowski @ 2013-04-16  0:13 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 759 bytes --]

Wolfgang, thank you very much for your answer about placing text.

Using:

\startplacefigure[location=force,title={First dummy caption}]
\inmargin{First margin dummy}
\externalfigure[dummy][width=\textwidth]
\stopplacefigure

The text in the \inmargin section appears at the bottom of the figure. This
works for about one line of text. For some of the figures I'm trying to put
3-4 lines in a wide margin and would like the text to appear at the top or
the middle of the figure.

I asked a question over at Stackexchange on this:

http://tex.stackexchange.com/questions/107856/placing-text-in-the-margin-next-to-a-figure-using-context

Using \starthanging \stophanging put the text in the correct place but then
the figures ran into each other.

regards
Pete

[-- Attachment #1.2: Type: text/html, Size: 2270 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-16  0:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-15  8:18 Overlapping \starthanging \stophanging with side captions Peter Sienkowski
2013-04-15  8:30 ` Wolfgang Schuster
2013-04-16  0:13 Peter Sienkowski

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).