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
"""
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to