Command only if \testpage is active
![](https://secure.gravatar.com/avatar/4a68af71fe5327c72564458ef9d00c6b.jpg?s=120&d=mm&r=g)
Don’t use such odd values for the spaces before/after the heading which don’t make sense when you use the grid. When you have a heading with more text or a bigger font size try to change the value for the grid-key in \setuphead.
Wolfgang
Ok, I tried. Best result so far is: \setuplayout[grid=yes] \showgrid \setuphead[subsection] [before={\testpage[5]\blank[2*line]}] \setuphead[grid=high] \starttext \dorecurse{15}{Linefill\\} \input tufte \subsection{Hallo} \input tufte \subsection{Hallo} \input tufte \input tufte \stoptext But it is not good as my original, and the so the values make sense: \setuplayout[grid=yes] \showgrid \setuphead[subsection] [after=\vskip-1.6mm, before={\testpage[5]\vskip1.6mm}]] \starttext \dorecurse{18}{Linefill\\} \input tufte \subsection{Hallo} \input tufte \subsection{Hallo} \input tufte \input tufte \stoptext The second example has better (nicer) distances. The reason is: The title should not be perfectly on the grid, only the text. Is there a way to achieve that without those "odd" values, and so without the grid-error? Huseyin
participants (1)
-
"H. Özoguz"