Henri Menke írta:
>The following should do the trick.
Thank you very much. Your code indeed fixes the snap to grid problem but it also
pushes the second subsection after the float and leaves a big empty space in the
lower part of the first page, which is not desirable. The text should fill the
The following should do the trick. However, you have to keep \setnostrut and
\setstrut around the figure because the before and after keys for captions are
not (yet) implemented.
\setuplayout[grid=yes]
\showgrid
\starttexdefinition caption:text #1
\setuplocalinterlinespace[line=2.2ex] #1
>I would like to use grid snapping in my document: main text lines
>should be aligned to grid lines but figure caption text should not.
>
>I have this code:
>
>\setuplayout[grid=yes]
>\showgrid
>
>\setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={\ss\tfx}]
>
>\starttext
Dear context users:
I would like to use grid snapping in my document: main text lines
should be aligned to grid lines but figure caption text should not.
I have this code:
\setuplayout[grid=yes]
\showgrid
\setupcaptions[width=fit,align=last,headstyle={\ss\bfx},style={\ss\tfx}]
\starttext