这是我的 Minexample
\mainlanguage [de]
\definepapersize[MyBook][A5]
\setuppapersize[MyBook][A5]
\usetypescript[times]
\setupbodyfont[times,10pt]
\setupbodyfontenvironment [default][em=italic] % use italic as em, not slanted
\setuphead[subsection][before={\blank[line]},style=bold] % Kleine subsections, besserer grid
\setuphead[section][after={\blank[line]}]
\setuplayout[grid=yes]
\showgrid
%\setupbackgrounds [header][text][frame=off,bottomframe=on]
\starttext
Last paragraph Text.....
\section{First section}
\subsection{First Subsection}
\stoptext
现在,您在网格中看到,位置不是最佳的。该部分前后各有三行。最好是前面有 3 行,后面有 1 行,或者前面有 2 行,后面有 1 行,或者类似情况。如何实现?
答案1
这详细手册对网格排版和网格上的节头位置有详细的说明。 您需要使用该grid=low
设置。
\setuplayout
[grid=yes]
\setuphead
[section]
[after=]
\setuphead
[subsection]
[before=,
grid=low]
\showgrid
\starttext
Last paragraph Text.....
\startsection [title=First section]
\startsubsection[title=First Subsection]
\stopsubsection
\stopsection
\stoptext
结果: