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

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

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