![](https://secure.gravatar.com/avatar/e79f226aa442b589932230491affa641.jpg?s=120&d=mm&r=g)
wow ... the power of programming. st. Am 25.07.2008 um 13:22 schrieb Wolfgang Schuster:
On Fri, Jul 25, 2008 at 10:52 AM, Steffen Wolfrum
wrote: Am 25.07.2008 um 10:39 schrieb Wolfgang Schuster:
On Fri, Jul 25, 2008 at 10:33 AM, Steffen Wolfrum
wrote: Am 25.07.2008 um 10:25 schrieb Wolfgang Schuster:
On Fri, Jul 25, 2008 at 10:15 AM, Steffen Wolfrum
wrote: ... yes, but Hans said so (see my email quoting him)!!!
What did he mean? Do you know an other solution?
\defineblankmethod [nobreak] {\penalty\plustenthousand} \defineblankmethod [endgraf] {\endgraf}
\definehead[myhead][section] \setuphead[myhead][after={\blank[endgraf,nobreak,big]}]
Not sure about the order in the blank command but this should work.
Hmm, I think I have tried all possible combination now but it does not work. Did you try?
\starttext
\defineblankmethod [nobreak] {\penalty\plustenthousand} \defineblankmethod [endgraf] {\endgraf}
\definehead[myhead][section] \setuphead[myhead][after={\blank[nobreak,endgraf,big]}]
\input tufte \par \input knuth \par \input tufte \par \input knuth \par
\myhead{Sektion}
\index{Index}
test
\stoptext
Steffen
You're looking for http://wiki.contextgarden.net/Registers#Technical_note
ok, but this was just one easily reproducible example of troubling situations.
For another is \vskip, as sometimes the distance between two heading must be smaller than the normal space above or below:
\subsection ... \vskip-14pt \subsubsection ...
In this situation I always experience the same problem: you have a heading at bottom of page :o(
I just didn't manage to show this with an minimal example.
\newsignal\sectionsignal
\setuphead [section] [before={\blank[big]}, after={\blank[2*big]\vskip\sectionsignal}]
\def\subsectionbefore {\ifdim\lastskip=\sectionsignal %\blank[-medium]% \vskip-\medskipamount \else \blank[big]% \fi}
\setuphead [subsection] [before=\subsectionbefore, after={\blank[big]}]
\showgrid
\starttext \section{Section} \subsection{Subsection} text \section{Section} text \subsection{Subsection} \stoptext
Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________