# How do you underline

How do you underline text?

Also how do you underline math?

• \underline{} works for both – Null Apr 2 '15 at 16:33
• In addition to Null's answer, you can use \usepackage[normalem]{ulem} with \uline{YourText} which allows line breaks as well. Or you can avoid underlining altogether as it is not very elegant solution for emphasizing! – Pouya Apr 2 '15 at 16:37
• Your question is a little bit unspecific. And why tag latex-project? BTW: underlining is in my opinion not a good typography. Better use italic. – Mensch Apr 2 '15 at 16:56
• We don't underline text (it's not a joke). – percusse Apr 2 '15 at 17:40
• Some journals I have submitted to require underlining instead of italics ... The question is legit (although (s)he could easily have found the answer by googling). – Sverre Apr 2 '15 at 17:47

Preface: You should really consider to use macros like \emph for emphasizing text. Underlining is from the typewriter-era and is not necessary anymore.
• the macro \underline which is pretty inflexible
• the package ulem (best to load with normalem option) and its macro \uline (supports linebreak)
• the package soul and its \ul