Generalunderlining spaces

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

underlining spaces

Post by dmt »

How do I have some underlines appear in the middle of a text by themselves (under spaces and not under other text).

For example:

What word ______ in the blank?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

underlining spaces

Post by Stefan Kottwitz »

Hi dmt,

you could use \underline with some horizontal whitespace, for example:

Code: Select all

\underline{\hspace{2cm}}
\underline{\hphantom{word}}
Stefan
LaTeX.org admin
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Re: underlining spaces

Post by dmt »

Thanks, perfect.
Post Reply