The \settowidth command, which sets a width equal to the width of some text, is described at Get width of a given text as length and How to set the width of the label of a description to the width of a string of text in ConTeXt?. What is the plain TeX equivalent of this command?
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
|||
|
|
|
There is none other than doing the same thing by copying the LaTeX definition:
Now
so transformed into
and the trick is done, assuming you already allocated
|
|||||||
|
|
You can set your wanted content into a box with
where
after which you can use that, as in
Now you can ask for its dimensions with
(where the prefix So to answer the question,
|
|||
|
|