New MembersUnderline Math and Underline Text

You would like to introduce yourself before starting to post? That's a nice idea and here is the forum for you...
Post Reply
Philosophaie
Posts: 17
Joined: Sat Mar 21, 2015 8:59 pm

Underline Math and Underline Text

Post by Philosophaie »

How do you Underline Math and how do you Underline Text?

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Underline Math and Underline Text

Post by Stefan Kottwitz »

You can use \underline in both cases:

Code: Select all

\documentclass{article}
\begin{document}
\underline{Text}

$\underline{x^2+1}$
\end{document}
Stefan
LaTeX.org admin
Post Reply