ConTeXt: Raster im Randblock verwenden

ConTeXt: Raster im Randblock verwenden

Obwohl ich es eingestellt habe grid=yes, \setuplayoutverwenden 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

Beispieldatei rendern

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

Bildbeschreibung hier eingeben

verwandte Informationen