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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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