Command/setwidthof

From Wiki
Jump to navigation Jump to search


\setwidthof

Summary

The command \setwidthof is used to find out the width of a piece of text.

Settings

\setwidthof...\to\command
...text
\todelimiter
\commandcsname

Description

Examples

Example 1

\setwidthof{ABCDE}\to\MyWidth
{ABCDE} is \MyWidth\ wide.

\framed[width=\MyWidth,]{ABCDE}
\framed[width=\MyWidth,]{ABC}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: