Command/textwidth

Unofficial ConTeXt Wiki mirror

Last modified: 2014-08-31

Description

The \textwidth command contains a value that represents the width of the current line on the page. The value is contextual in that if the current line is within a columnar environment, then \textwidth returns the value of the current column width. (If this does not work out for you, try \hsize instead.)

Example

The following example scales a long line of text to prevent it from breaking over multiple lines.

See Also