
grid=yes
에서 설정했는데도 \setuplayout
여백블록은 그리드를 사용하지 않습니다.
예시 파일:
\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
메모:을 사용하라고 고집하지는 않지만 \startmarginblock
여백에 격자 정렬된 단락이 필요합니다.
답변1
왜 누군가가 이것을 하고 싶어하는지 모르겠지만, \blank[overlay]
선 수정에 의해 삽입된 수직 공간을 죽이기 위해 선행된 선 수정이 효과가 있는 것 같습니다.
\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