Marco,

thanks a lot, it gives me exactly what I wanted!

But to be honest, I expected a single option for this :-)

Jan

> On 2013–06–03 honyk wrote:
> 
> > How can I keep numeration and title together?
> 
> You can create a custom head alternative. The following code is
> copied from the source, I only replace the \par with
> \kern\headnumberdistance. Have a look at strc-ren.mkiv for other
> layouts.
> 
> \setuphead
>   [section]
>   [alternative=middle_nolinebreak]
> 
> \defineheadalternative
>   [middle_nolinebreak]
>   [alternative=vertical,
>    renderingsetup=headrenderings:middle_nolinebreak]
> 
> \startsetups[headrenderings:middle_nolinebreak]
>   \vbox {
>     \headsetupspacing
>     \veryraggedcenter
>     \let\\\endgraf
>     \let\crlf\endgraf
>     \ifconditional\headshownumber
>       \strut
>       \headnumbercontent
>         \kern\headnumberdistance
>     \fi
>     \begstrut
>     \headtextcontent
>     \endstrut
>   }
> \stopsetups
> 
> \starttext
>   \section{The First Section}
> \stoptext
> 
> Marco

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to