
即使我設置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