Changes

Jump to navigation Jump to search
1,710 bytes added ,  14:58, 18 November 2021
Created page with "Documentation for \textrule"
<cd:commandgroup name="textrule" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\textrule</tt> creates a line with rules around some text.
</cd:shortdesc>
<cd:variants>
<cd:command category="rules" file="pack-mrl.mkiv" interfacedate="2020-06-19T13:41" interfacefile="i-textrule.xml" level="document" name="textrule" variantnumber="1">
<cd:arguments>
<cd:keywords optional="yes" ordinal="1">
<cd:keywordsdoc>The argument designates the positioning of the bit of added vertical whitespace </cd:keywordsdoc>
<cd:constant type="top"></cd:constant>
<cd:constant type="middle"></cd:constant>
<cd:constant default="yes" type="bottom"></cd:constant>
</cd:keywords>
<cd:keywords delimiters="braces" optional="yes" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>Place some text, with a rule to left and right of it.

Option "middle" is the option to use when it is place between a \textrule[top] and a \textrule[bottom].

</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\setupwhitespace[big]

asdf
\textrule[top]{Colourless}
asdf

bsdf
\textrule{Green}
bsdf

csfd
\textrule[middle]{Blue}
csfd

esdf
\textrule[bottom]{Ideas}
esdf
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="pack-mrl.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Rules"></cd:wikipage>
<cd:commandref name="starttextrule"></cd:commandref>
<cd:commandref name="setuptextrules"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu