\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
Combining Formats
You can combine multiple formatting commands:combining.tex
Emphasis Command
The\emph{} command provides semantic emphasis:
emphasis.tex
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
Common Mistakes
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.
Next: Learn how to create Lists for organizing information effectively, or explore Advanced text formatting for more sophisticated typography options.
