\documentclass{standalone}
%\usepackage{amssymb}%%% Useless here.
\usepackage{unicode-math}
\setmainfont[Ligatures=TeX]{TeX Gyre Termes}%%% we need Times or a Times clone.
\setsansfont{TeX Gyre Heros}[Scale=0.88]%%% Somewhat ok.
\setmonofont{TeX Gyre Cursor}%%% No explicit turning on ligatures for the monospaced font.
\setmathfont[Ligatures=TeX]{TeX Gyre Termes Math}
\usepackage{amsmath}%%% or mathtools, no difference
%\usepackage{amssymb}%%% Won't compile if placed here.
\begin{document}
Text: \checkmark. Math: \(\checkmark\).
\end{document}
to xelatex or lualatex results in
As you see, the text-mode
\checkmark
is not displayed, probably because TeX Gyre Termes doesn't have ✓ (U+2713). With pdflatex, we would have included amssymb to get the symbol ✓ when writing \checkmark
. However, with xelatex/lualatex, using amssymb doesn't lead anywhere to the best of my attempts so far. So, what do we do with xelatex/lualatex? I checked https://www.fileformat.info/info/unicod ... upport.htm, but I have no idea which fonts are Times clones and would visibly jive properly with TeX Gyre Termes. Moreover, even if we knew a suitable font, how do we redefine
\checkmark
such that it uses another font in text mode while leaving the font used in math mode as it is?