Underlining Text in LaTeX
Learn how to underline text in LaTeX using the basic underlining command.
Basic Underlining
To underline text in LaTeX, use the \\underline
command. Simply wrap the text you want to underline in curly braces after the command:
Underlining a single word
\text{This is an \underline{underlined} word}
Underlining multiple words
\text{\underline{This entire phrase is underlined}}
Underlining part of a word
\text{The word under\underline{lin}ed has only part underlined}
Complete Example
Here's a complete example you can use in your document:
\documentclass{article}
\begin{document}
This is a \underline{simple} example of \underline{underlining text} in LaTeX.
You can underline \underline{single words} or \underline{entire phrases}.
You can even underline \underline{part} of a longer word.
\end{document}
Tip: In professional documents, consider using italics or bold text for emphasis instead of underlining. Underlining is often reserved for hyperlinks in modern documents.
Underlining Text in LaTeX
Learn how to underline text in LaTeX using the basic underlining command.
Basic Underlining
To underline text in LaTeX, use the \\underline
command. Simply wrap the text you want to underline in curly braces after the command:
Underlining a single word
\text{This is an \underline{underlined} word}
Underlining multiple words
\text{\underline{This entire phrase is underlined}}
Underlining part of a word
\text{The word under\underline{lin}ed has only part underlined}
Complete Example
Here's a complete example you can use in your document:
\documentclass{article}
\begin{document}
This is a \underline{simple} example of \underline{underlining text} in LaTeX.
You can underline \underline{single words} or \underline{entire phrases}.
You can even underline \underline{part} of a longer word.
\end{document}
Tip: In professional documents, consider using italics or bold text for emphasis instead of underlining. Underlining is often reserved for hyperlinks in modern documents.