On 03/16/2016 03:35 PM, Pablo Rodriguez wrote:
> Dear list,
> 
> I have the following sample:
> 
>     \showgrid
>     \setuphead[chapter][after={\blank[10*big]}]
>     \starttext
>     \chapter{Knuth}
>     \input knuth
>     \chapter{Zapf}
>     \input zapf
>     \chapter{Knuth\\\&\\Zapf}
>     \input zapf\par\input zapf
>     \stoptext
> 
> How could I have the text after the chapter heading with a fixed
> distance, no matter how many lines the title itself has?

For future reference (and replying to myself), the solution may read:

    \showgrid
    \define[2]\chapterframe{\framed[frame=off, height={10em},
        align=high]{#2}}
    \setuphead[chapter][command={\chapterframe}]
    \starttext
    \chapter{Knuth}
    \input knuth
    \chapter{Zapf}
    \input zapf
    \chapter{Knuth\\\&\\Zapf}
    \input zapf\par\input zapf
    \stoptext

The code comes from the user that reported the issue at
https://github.com/ousia/context-critica/issues/1.

Just in case it may be useful to anyone,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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