![网格设置:节与小节之间的空间(ConTeXt)](https://linux22.com/image/257863/%E7%BD%91%E6%A0%BC%E8%AE%BE%E7%BD%AE%EF%BC%9A%E8%8A%82%E4%B8%8E%E5%B0%8F%E8%8A%82%E4%B9%8B%E9%97%B4%E7%9A%84%E7%A9%BA%E9%97%B4%EF%BC%88ConTeXt%EF%BC%89.png)
这是我的 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
结果: