Open main menu

Changes

1,406 bytes added ,  17:02, 27 August 2020
Created page with "Documentation for \definehbox"
<cd:commandgroup name="definehbox" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\definehbox</tt> creates a shortcut for a horizontal box specification
</cd:shortdesc>
<cd:variants>
<cd:command category="boxes" file="spac-ali.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-boxes.xml" level="system" name="definehbox" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:keywords>
<cd:keywords ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:dimension"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>This command creates a TeX macro that is a shortcut for a horizontal box with a specific width and including a {{cmd|strut}}. See the example below.

This is a low-level helper that is rarely needed any more. </cd:description>
<cd:examples><cd:example title=""><context source="yes">
\definehbox[halfline][5cm]

\hboxhalfline{some text here}
\hboxhalfline{\hfill or here}
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="spac-ali.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Boxes"></cd:wikipage></cd:seealso>
</cd:commandgroup>