1,524 bytes added
, 08:23, 9 August 2016
{{Reference
|name=headsetupspacing
|attributes=
}}
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\headsetupspacing</td>
</tr>
</table>
== Description ==
This macro is to be used inside custom defined section commands to propagate the options set in {{cmd||setuphead}}. The options which are set locally by {{cmd||headsetupspacing}} are
<span class="cmd">[[Command/keyword:align|align]]</span>,
<span class="cmd">[[Command/keyword:tolerance|tolerance]]</span>, and
<span class="cmd">[[Command/keyword:strut|strut]]</span>.
The values for these are inherited from {{cmd||setuphead}}.
The definition of {{cmd||headsetupspacing}} is found in {{src|strc-ren.mkiv}}. There one can also find the historic synonym {{cmd||localheadsetup}}. The name {{cmd||localheadsetup}} might vanish in the future; don't use it!
== Example ==
In this example we use {{cmd||showstruts}} to emphasize that even though we set <code>strut=no</code> it is not forwarded and struts still appear. If we use {{cmd||headsetupspacing}}, however, the struts are gone.
<context mode=mkiv source="yes">
\showstruts
\setuphead
[section]
[
strut=no,
command=\printsection,
]
\starttext
\define[2]\printsection{#1 #2}
\section{First}
\define[2]\printsection{\headsetupspacing #1 #2}
\section{Second}
\stoptext
</context>
== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|{{SUBPAGENAME}}}}
[[Category:Command/Sections|headsetupspacing]]