Overlapping \starthanging \stophanging with side captions
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
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
participants (2)
-
Peter Sienkowski
-
Wolfgang Schuster