I get this error:
Missing character: There is no ⇒ (U+21D2) in font [lmmono12-regular]:!
I use xelatex and the package unicode-math as suggested at
Entering Unicode characters in LaTeX
Should I install another font? I use Ubuntu 22.04 and texlive.
I get this error:
Missing character: There is no ⇒ (U+21D2) in font [lmmono12-regular]:!
I use xelatex and the package unicode-math as suggested at
Entering Unicode characters in LaTeX
Should I install another font? I use Ubuntu 22.04 and texlive.
If you have a monospace font with the character you do not need math at all.
\documentclass{article}
\usepackage{fontspec}
\setmonofont{Noto Sans Mono}
\begin{document}
\begin{verbatim}
a ⇒ b → α
\end{verbatim}
\end{document}
(but Noto Sans Mono doesn't have the arrow either)
so you can insert math:
\documentclass{article}
\usepackage{unicode-math}
\usepackage{newunicodechar}
\newunicodechar{⇒}{\makebox[1em]{$⇒$}}
\newunicodechar{α}{\makebox[1em]{$α$}}
\begin{document}
\begin{verbatim}
a ⇒ b → α
\end{verbatim}
\end{document}
\texttt{⇒}so unicode-math is not involved (verbatim is same issue) – David Carlisle Jun 05 '23 at 10:13