
Obwohl ich es eingestellt habe grid=yes
, \setuplayout
verwenden Randblöcke das Raster nicht.
Beispieldatei:
\setuplayout
[
grid=yes,
cutspace=6cm,
width=fit,
backspace=6cm,
]
\showgrid
\starttext
\input knuth % Properly snapped to grid
\startmarginblock
{\tfd foobar} % Not a multiple of the line height
\input knuth % Gets knocked off the grid
\stopmarginblock
\stoptext
Notiz:Ich bestehe nicht auf der Verwendung \startmarginblock
, aber ich brauche einen rasterausgerichteten Absatz am Rand.
Antwort1
Ich weiß nicht genau, warum das jemand tun möchte, aber eine Zeilenkorrektur, der das \blank[overlay]
Entfernen des durch die Zeilenkorrektur eingefügten vertikalen Raums vorangeht, scheint zu funktionieren.
\setuplayout
[grid=yes,
cutspace=6cm,
width=fit,
backspace=6cm]
\showgrid
\starttext
\input knuth\par
\startmarginblock
\blank[overlay]
\startlinecorrection
{\tfd foobar\par}
\stoplinecorrection
\input ward\par
\startlinecorrection
{\tfd barbaz\par}
\stoplinecorrection
\input jojomayer\par
\stopmarginblock
\stoptext