[NTG-context] \setuphead for all existing sections

Pablo Rodriguez oinos at gmx.es
Mon Apr 20 21:00:33 CEST 2015


On 04/20/2015 08:43 PM, Lukáš Procházka wrote:
> Hello Pablo,
> 
> \setupheads doesn't work for this - see the test:

Hi Lukáš,

sorry, I thought that the plural of \setup... had the same options than
its singular form. My fault, since I was totally wrong.

I agree that it would be useful to have the same options from \setuphead
in \setupheads.


Pablo


> ----
> \setupheads[distance=1in]
> \setuphead[subsection][distance=2in]
> 
> \starttext
>    \section{Sec}
>      \subsection{Subsec}
> \stoptext
> ----
> 
> Subsection has the specified distance of 1 in, whilst the section doesn't.
> 
> Section was altered by \setupheads, whilst subsection by \setuphead.
> 
> Wiki http://wiki.contextgarden.net/Command/setupheads says that
> \setuphead has some more options than \setupheads.
> 
> - I guess it would be nice that \setupheads handles the "distance" key, too.
> 
> Best regards,
> 
> Lukas


-- 
http://www.ousia.tk


More information about the ntg-context mailing list