Changes

Jump to navigation Jump to search
2,643 bytes added ,  08:21, 19 November 2021
Created page with "Documentation for \hspace"
<cd:commandgroup name="hspace" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\hspace</tt> inserts horizontal space
</cd:shortdesc>
<cd:variants>
<cd:command category="whitespace" file="spac-hor.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-hspace.xml" level="document" name="hspace" variantnumber="1">
<cd:arguments>
<cd:keywords optional="yes" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:keywords>
<cd:keywords optional="yes" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="small">.25em</cd:constant>
<cd:constant type="medium">.5em</cd:constant>
<cd:constant type="big">1em</cd:constant>
<cd:constant type="normal">spaceamount</cd:constant>
<cd:constant default="yes" type="default">spaceamount</cd:constant>
<cd:constant type="none"></cd:constant>
<cd:constant type=".5">.1250em (aka <tt>\hairspace</tt>)</cd:constant>
<cd:constant type="1">.1667em (aka <tt>\thinspace</tt>)</cd:constant>
<cd:constant type="2">.2222em (aka <tt>\medspace</tt>)</cd:constant>
<cd:constant type="3">.2777em (aka <tt>\thickspace</tt>)</cd:constant>
<cd:constant type="speech">a language-specific amount, taken from the "quotation" language parameter</cd:constant>
<cd:constant type="quote">a language-specific amount, taken from the "quotation" language parameter</cd:constant>
<cd:constant type="interquotation">.125em</cd:constant>
<cd:constant type="quotation">0pt</cd:constant>
<cd:constant type="sentence">0pt</cd:constant>
<cd:constant type="intersentence">.25em</cd:constant>
<cd:constant type="final"></cd:constant>
<cd:constant type="cd:name"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>Insert a named amount of horizontal space. A number of dimensions are already predefined; more can be defined with {{cmd|definehspace}}.
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\definehspace[oneem][1 em]
\definehspace[twoem][2 em]

asdf\hspace[oneem]asdf\crlf
asdf\hspace[twoem]asdf
</context>
</cd:example><cd:example title=""><context source="yes">

asdf\hspace[speech]: more text

\language[fr]

asdf\hspace[speech]: more text

</context>
</cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="spac-hor.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Whitespace"></cd:wikipage>
<cd:commandref name="definehspace"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu