Open main menu

Command/headsetupspacing

< Command
Revision as of 19:27, 13 January 2020 by Usonianhorizon (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

\headsetupspacing

Syntax (autogenerated)

\headsetupspacing


Syntax

\headsetupspacing

Description

This macro is to be used inside custom defined section commands to propagate the options set in \setuphead. The options which are set locally by \headsetupspacing are align, tolerance, and strut. The values for these are inherited from \setuphead.

The definition of \headsetupspacing is found in strc-ren.mkiv. There one can also find the historic synonym \localheadsetup. The name \localheadsetup might vanish in the future; don't use it!

Example

In this example we use \showstruts to emphasize that even though we set strut=no it is not forwarded and struts still appear. If we use \headsetupspacing, however, the struts are gone.

\showstruts

\setuphead
  [section]
  [
    strut=no,
    command=\printsection,
  ]

\starttext

\define[2]\printsection{#1 #2}
\section{First}

\define[2]\printsection{\headsetupspacing #1 #2}
\section{Second}

\stoptext

 

Help from ConTeXt-Mailinglist/Forum

All issues with: