caption for moved sidefloat in the margin
Hi again, I’m reading through the details manual and set up some figures as sidefloats that are offset to the margin. This works well. Now I’d like to have their captions in the margin, below the figure. If I set location=innermargin, then the caption is beside the image, i.e. somewhere at the edge. If I don’t, I can’t get it to move to the left edge of the image. How can I do that? Hraban """ \useMPlibrary[dum] \setuplayout[ backspace=5cm, width=12cm, ] \definefloat[marginfigure] \setupfloat[marginfigure][ leftmargindistance=-\leftmargintotal, rightmargindistance=-\rightmargintotal, default={inner,none,low,high}, ] \setupcaption[marginfigure][ style={\ss\tfx}, align={flushleft}, width=\leftmarginwidth, %location={innermargin,low}, ] \starttext \showframe \startplacemarginfigure[ location={inner,3*hang}, title={My caption should be flushleft and aligned with the image.}, ] \externalfigure[dummy][width=.66\textwidth] \stopplacemarginfigure \samplefile{lorem} \stoptext """
On 7/30/2023 2:37 PM, Henning Hraban Ramm wrote:
Hi again,
I’m reading through the details manual and set up some figures as sidefloats that are offset to the margin. This works well.
Now I’d like to have their captions in the margin, below the figure. If I set location=innermargin, then the caption is beside the image, i.e. somewhere at the edge. If I don’t, I can’t get it to move to the left edge of the image.
How can I do that? see mikaels bachotex presentation
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Am 30.07.23 um 14:46 schrieb Hans Hagen:
On 7/30/2023 2:37 PM, Henning Hraban Ramm wrote:
Hi again,
I’m reading through the details manual and set up some figures as sidefloats that are offset to the margin. This works well.
Now I’d like to have their captions in the margin, below the figure. If I set location=innermargin, then the caption is beside the image, i.e. somewhere at the edge. If I don’t, I can’t get it to move to the left edge of the image.
How can I do that? see mikaels bachotex presentation
https://www.gust.org.pl/bachotex/2023-pl/presentations/msundqvist-1-2023.pdf Thank you, that’s great! I’m learning a lot (should leave the book writing to Mikael, I guess). Didn’t progress to the float placement yet… Hraban
Am 30.07.23 um 14:46 schrieb Hans Hagen:
On 7/30/2023 2:37 PM, Henning Hraban Ramm wrote:
Hi again,
I’m reading through the details manual and set up some figures as sidefloats that are offset to the margin. This works well.
Now I’d like to have their captions in the margin, below the figure. If I set location=innermargin, then the caption is beside the image, i.e. somewhere at the edge. If I don’t, I can’t get it to move to the left edge of the image.
How can I do that? see mikaels bachotex presentation
Well, sorry, but it doesn’t cover my case. It shows: * \textwidth floats with caption in the margin * margin floats with caption below * \textwidth + margin with caption above or below but not: side float e.g. 2/3 \textwidth, moved into the margin, text flowing around, caption in the margin below the image. It seems like sidefloat and the desired caption placement exclude each other. Must I resolve to layer trickery? Hraban
participants (2)
-
Hans Hagen
-
Henning Hraban Ramm