Can someone tell me what I am doing wrong or simply tell me how I can use the coptic letter "Me" in math mode?
I want to use a coptic letter in a mathematical expression in my TeX document. From my very limited understanding of how all these things work I read that "XeTeX and LuaTeX support Unicode".
Not entirely sure what that actually means I came across the (XeTeX and LuaTex) commands \char"xxxx
, \symbol{xxxx}
and ^^^^xxxx
only to find out that I have no idea how to actually use them. I tried out this little code example:
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\begin{document}
Trying to display the symbols ©, ❤ and the coptic letter "Me": \\
\char"00a9, \char"2764, \char"2C98 \\
\par
And now again in math mode: \\
$\char"00a9, \char"2764, \char"2C98 $
\end{document}
Which yielded the following output:
Similarly, with the second command I get:
Trying to display the symbols ©, ❤ and the coptic letter "Me": \\
\symbol{00a9}, \symbol{2764}, \symbol{2C98} \\
\par
And now again in math mode: \\
$\symbol{00a9}, \symbol{2764}, \symbol{2C98}$
and for the last one I even get an error message:
Trying to display the symbols ©, ❤ and the coptic letter "Me": \\
^^^^00a9, ^^^^2764, ^^^^2C98 \\
\par
And now again in math mode: \\
$^^^^00a9, ^^^^2764, ^^^^2C98$
yields
! ^^^^ needs four hex digits. ^^^^ 00a9, ^^^^2764, ^
^^
notation (and must be uppercase if used as a number with"
) so^^^^00a9
is an error.\tracinglostchars=2
to all your.tex
files. IMO it's a bug in TeX, inherited by XeTeX, that missing characters not only allow the program to complete successfully, but also have the warning hidden in the log file by default.