LaTeX Error: Unicode character <c> (U+<hex>) not set up for use with LaTeX
pdfLaTeX has no glyph for a character in your text. Write it as a LaTeX command, delete it if invisible, or compile with XeLaTeX or LuaLaTeX.
Help centre › LaTeX errors › Files and fonts · Error: the build stops or the output is wrong
What the log says
! LaTeX Error: Unicode character ≤ (U+2264)
not set up for use with LaTeX.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.3 Differences were significant (p ≤What it means
pdfLaTeX reads your file as UTF-8 but can typeset only the characters its fonts and encodings know: Latin letters with the usual accents and a set of common symbols. The character named in the message (with its Unicode code point) is not one of them. XeLaTeX and LuaLaTeX use system fonts and can typeset almost any character the chosen font contains.
Causes and fixes
Most common first. Each example is a complete document; the first fails with this message, the second is the same document fixed.
1. A symbol was typed or pasted instead of written as a command
Maths symbols (≤ ≥ × ± → ∑ α) pasted from a word processor or a PDF are the usual case. Write them as LaTeX: $\le$, $\ge$, $\times$, $\pm$, $\rightarrow$, $\alpha$. The code point in the message identifies the character when it is hard to see.
\documentclass{article}
\begin{document}
Differences were significant (p ≤ 0.05).
\end{document}\documentclass{article}
\begin{document}
Differences were significant ($p \le 0.05$).
\end{document}2. An invisible character came in with pasted text
Zero-width spaces (U+200B), soft hyphens and similar characters copied from web pages or PDFs are invisible in the editor. Go to the line in l.<n>, delete the characters around the place shown and retype them.
\documentclass{article}
\begin{document}
The samplesize was 120.
\end{document}\documentclass{article}
\begin{document}
The sample size was 120.
\end{document}3. The text is in a script pdfLaTeX's default fonts do not cover
Vietnamese, Greek, Cyrillic, Arabic, Hebrew, Chinese, Japanese and Korean need fonts that contain those letters. The simplest fix is to compile with XeLaTeX or LuaLaTeX, which use system fonts (set the font with fontspec if the default lacks the script). Staying on pdfLaTeX needs the right font encoding and babel language for each script.
4. A name or reference contains a rare letter
An author name or title with a letter outside the common accented set (for example from a .bib file) gives this error in the bibliography. Write the letter with an accent command (\v{s}, \c{c}, \={a}) or compile with XeLaTeX.
In Manulyx
On pdfLaTeX the editor offers a one-click Fix that switches the project to XeLaTeX and compiles again; the engine can also be changed by hand in the project's Settings.
Write in Manulyx for free · Journal templates
More in files and fonts
- LaTeX Error: File `<name>' not foundLaTeX cannot find a file you asked for: an \input or image name that is misspelled or missing, or a package or class that is not installed.
- LaTeX Font Warning: Font shape `<shape>' undefinedThe font has no such combination of family, weight and shape (bold small caps, say), so LaTeX substitutes another. Change font encoding or font.
- LaTeX Error: Unknown graphics extension: <ext>\includegraphics was given an image format pdfLaTeX cannot read, such as .tif, .gif, .bmp or .svg. Convert the image to PDF, PNG or JPEG.
- LaTeX Error: Invalid UTF-8 byte sequenceThe file is not saved as UTF-8 (often Latin-1 or Windows-1252, from an old editor or a .bib export). Re-save it as UTF-8.
Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors