0

How do you underline text?

Also how do you underline math?

  • 4
    \underline{} works for both – Null Apr 2 '15 at 16:33
  • 5
    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
  • 2
    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
  • 3
    We don't underline text (it's not a joke). – percusse Apr 2 '15 at 17:40
  • 1
    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
3

Preface: You should really consider to use macros like \emph for emphasizing text. Underlining is from the typewriter-era and is not necessary anymore.

You have some options:

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.