Open main menu

Changes

1,140 bytes added ,  11:01, 4 February 2023
new
<cd:commandgroup name="setwidthof" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\setwidthof</tt> is used to find out the width of a piece of text.
</cd:shortdesc>
<cd:variants>
<cd:command category="strings" file="blob-ini.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-string.xml" level="system" name="setwidthof" variantnumber="1">
<cd:arguments>
<cd:text ordinal="1"></cd:text>
<cd:delimiter name="to" ordinal="2"></cd:delimiter>
<cd:csname ordinal="3"></cd:csname>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\setwidthof{ABCDE}\to\MyWidth
{ABCDE} is \MyWidth\ wide.

\framed[width=\MyWidth,]{ABCDE}
\framed[width=\MyWidth,]{ABC}
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="blob-ini.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Strings"></cd:wikipage></cd:seealso>
</cd:commandgroup>