Hi All,
How can I display on screen the content (value) of variable or length I've defined?.
For example:
\newlength{\mylength}
\settowidth{\mylength}{\textwidth}
so I want to see what's in \mylength. Does latex also print the units of a length?.
Thanks,
Mike.
Text Formatting ⇒ Displaying the content of a variable or length
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Displaying the content of a variable or length
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Displaying the content of a variable or length
Thanks for the prompt reply,
Mike.
Mike.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Displaying the content of a variable or length
So it it seems that you can mark the topic accordingly. In this case I did that for you.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10