6

I try to use unicode characters in tex source:

\documentclass{article}
  
\usepackage[utf8]{inputenc}

\begin{document}

∀
 
\end{document}

The universal quantifier does not typeset with xelatex.

pdflatex says

! Package inputenc Error: Unicode char ∀ (U+2200)
(inputenc)                not set up for use with LaTeX.

What else should I use to typeset a universal quantifier given as a Unicode character?

4
  • 2
    You'll probably need to use a font that supports it.
    – daleif
    Commented Apr 22, 2021 at 9:05
  • LuaTeX seems to have a good support for a lot of fonts. I never play with it.
    – projetmbc
    Commented Apr 22, 2021 at 9:36
  • the help text for the pdftex error does tell you the command to use to define it (as in Ulrike's answer) Commented Apr 22, 2021 at 17:53
  • 2
    Special case of tex.stackexchange.com/questions/34604/…
    – user202729
    Commented Jun 2, 2022 at 15:39

2 Answers 2

11

You need to declare it, by default pdflatex supports only a subset.

\documentclass{article}

\DeclareUnicodeCharacter{2200}{\forall}

\begin{document}

$∀$

\end{document}
4

For XeLaTeX and LuaLaTeX, many mathematical characters are defined in the unicode-math package

% !TeX encoding = UTF8
% !TeX program = lualatex
\documentclass{standalone}
\RequirePackage{unicode-math}
\begin{document}
$∀∃ℝ∈𝔻⟹$
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .