Difference between revisions of "Command/headsetupspacing"

From Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>headsetupspacing</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 19:27, 13 January 2020

\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: