Skip to main content
To make text bold in LaTeX, write \textbf{bold text}. Use \textit{italic text} for a fixed italic style, \emph{emphasized text} for meaning-aware emphasis, and \underline{underlined text} only when an underline is specifically required.
Copy-paste syntax: \textbf{bold}, \textit{italic}, \emph{emphasis}, \underline{underline}For the common “bold text in LaTeX” use case, the command you need is \textbf{}. It works in normal text and can contain other text-formatting commands.

Basic Text Formatting

Bold Text

Use \textbf{} to make text bold:
bold.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio

Italic Text

Use \textit{} for italics:
italic.tex

Underlined Text

Use \underline{} for underlining:
underline.tex
Avoid overusing underline: In professional typography, underlining is rarely used. Consider bold or italic for emphasis instead.

Combining Formats

You can combine multiple formatting commands:
combining.tex

Emphasis Command

The \emph{} command provides semantic emphasis:
emphasis.tex
Use \emph{} when you want to emphasize meaning. Use \textit{} when you specifically want italic style.

Additional Text Styles

Small Caps

smallcaps.tex

Typewriter (Monospace)

typewriter.tex

Sans Serif

sans-serif.tex

Slanted Text

slanted.tex

Font Size Commands

Combine with text formatting:
sizes.tex

Color Text (Optional Package)

Add color to your formatting:
color.tex

Advanced Formatting

Strikethrough

strikethrough.tex

Better Underlines

better-underline.tex

Environment-Based Formatting

For longer passages:
environments.tex

Declaration Commands

Alternative syntax using declarations:
declarations.tex

Common Use Cases

Document Structure

structure.tex

Academic Writing

academic.tex

Best Practices

Formatting guidelines:
  1. Use sparingly - Too much formatting reduces impact
  2. Be consistent - Use the same style for similar elements
  3. Semantic meaning - Use \emph for emphasis, not just italics
  4. Avoid underlines - Use bold or italic instead
  5. Consider readers - Some formats don’t work well in all media

Common Mistakes

Avoid these errors:
  1. Over-formatting - Don’t combine too many styles
  2. Underline with descenders - Looks messy with g, j, p, q, y
  3. All caps - Use \textsc{} for small caps instead
  4. Forgetting braces - \textbf{text} not \textbf text
  5. Wrong nesting - Close commands in reverse order

Quick Reference Table

Troubleshooting

Text Not Formatting

Check for:
  • Missing braces: \textbf{text} not \textbf text
  • Typos in commands
  • Missing packages for special formatting

Nested Commands Not Working

Ensure proper nesting:
example.tex

Try Text Formatting in the Editor

Open a formatting example

Paste the commands into a project and compile them to compare bold, italic, underline, and semantic emphasis.

See the online LaTeX editor

Review the browser editor workflow and current product capabilities on the online LaTeX editor page.
These formatting commands are standard LaTeX, so they work the same in Overleaf. If you are comparing editors, see the Overleaf alternative page.
Next: Learn how to create Lists for organizing information effectively, or explore Advanced text formatting for more sophisticated typography options.