[NTG-context] \setuphead for all existing sections

Wolfgang Schuster schuster.wolfgang at gmail.com
Tue Apr 21 10:15:10 CEST 2015


> Am 21.04.2015 um 08:55 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr at pontex.cz>:
> 
> Hello,
> 
> On Tue, 21 Apr 2015 00:38:18 +0200, Wolfgang Schuster <schuster.wolfgang at gmail.com> wrote:
> 
>> The \setupheads command is only a synonym for \setuphead but there can be a difference between
>> 
>>    \setuphead[..,..=..,..]
>> 
>> and
>> 
>>    \setuphead[<section][..,..=..,..]
>> 
>> Wolfgang
> 
> confirmed:
> 
> ----
> \setuphead[distance=2in]
> 
> \starttext
> \section{Sec}
>   \subsection{Subsec}
> \stoptext
> ----
> 
> the code above doesn't change the section "distance", either.

The global setting is ignored because part, chapter and section already have a preset
value for the distance key which is used instead of the global value.

The section below section (subsection, subsubsection etc.) ignore the global setting
as well because subsection inherits the value from section.

Wolfgang


More information about the ntg-context mailing list