Re: [NTG-context] Overlapping \starthanging \stophanging with side captions

2013-04-15 Thread Peter Sienkowski
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
___
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
___

Re: [NTG-context] Overlapping \starthanging \stophanging with side captions

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 10:18 schrieb Peter Sienkowski :

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


[NTG-context] Overlapping \starthanging \stophanging with side captions

2013-04-15 Thread Peter Sienkowski
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
___
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
___