Command/setwidthof

From Wiki
< Command
Revision as of 11:01, 4 February 2023 by Hraban (talk | contribs) (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: