Changes

Jump to navigation Jump to search
1,039 bytes added ,  10:15, 22 October 2012
Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd..."
{{Reference
|name=definehspace
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\definehspace<!--
--><span class="first">[...]</span><!--
--><span class="second">[...]</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[...]</td>
<td>''name''</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[...]</td>
<td>''dimension''</td>
</tr>
</table>

== Description ==
Define a named dimension that can be used by {{cmd|hspace}}.

== Example ==

<context source=yes>
\definehspace[half][0.5em]

\dontleavehmode% %% blackrules break hmode, usually.
\blackrule[width=0.5em]\hspace[half]%
\blackrule[width=0.5em]\hspace[half]%
\blackrule[width=0.5em]\hspace[half]%
\blackrule[width=0.5em]
</context>

== See also ==

* {{cmd|hspace}}
* {{src|spac-hor.mkiv}}

== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|definehspace}}

[[Category:Command/Whitespace|definehspace]]

Navigation menu