Italic text in LaTeX
\textit{...} sets text in italics; \emph{...} marks emphasis, which LaTeX shows as italic in upright text and as upright inside italic text.
LaTeX command
\textit{italic text}Not the symbol you meant? Draw it to find the command →
Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →
Use \emph when you mean emphasis, such as a stressed word or a term being defined. Because it switches back to upright inside italics, emphasis still shows in an italic theorem or quotation. Use \textit when you want italics for another reason, such as a book title or a foreign phrase.
The switch \itshape turns italics on until the end of its group, for a longer passage: {\itshape ...}. \textsl gives slanted type, an upright font leaned over, which is not the same as italic. Bold italic is \textbf{\textit{...}}.
In maths, single letters are already italic as variables. A word in maths should be upright with \text or \mathrm; for an italic name made of several letters, \mathit keeps the letters together as one word rather than spacing them as a product.
Other forms
\emph{emphasis}emphasis, usually italic{\itshape italic text}a switch\textbf{\textit{bold italic}}bold and italic\textsl{slanted}slanted, not italicExamples
$\textit{et al.}$an italic phrase
$\text{The proof does \emph{not} assume continuity.}$emphasis in a sentence
$\textbf{\textit{bold italic}}$bold and italic together
$\mathit{diff} \neq diff$\mathit keeps a word together
Tips and common mistakes
- Prefer
\emphfor emphasis; it stays visible inside italic text. - Use
\textitfor titles and foreign phrases, where the italics are not emphasis. \textslis slanted, not italic; the two look different.- Write words in maths with
\textor\mathrm, not as italic letters. - All of these are built into LaTeX; no package is needed.
Working from handwritten notes?
LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.
See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).
Convert your maths to LaTeX →FAQ
How do I italicize text in LaTeX?
Write \textit{your text}, or \emph{your text} for emphasis.
What is the difference between \emph and \textit?
\textit always sets italics. \emph sets emphasis: italic in upright text, upright inside italic text.
How do I make text bold and italic?
Nest the two: \textbf{\textit{your text}}.
Why is a word in my equation italic?
Letters in maths are variables and set in italics. Wrap words in \text{...} to keep them upright.