I'm not an expert at this subject, but after some experimentation and detective work, I've found the following:
Your guesses about \UnicodeMathSymbol{"022B0}
, \prurel
and \mathrel
seems to be based on the content of the file [...]texmf-dist/tex/latex/unicode-math/unicode-math-table.tex
, which contains the following line:
\UnicodeMathSymbol{"022B0}{\prurel}{\mathrel}{element precedes under relation}%
That file is part of the package unicode-math
.
According with the documentation of that package:
A simple beginning is:
\usepackage{unicode-math}
\setmathfont{xits-math.otf}
So I tried the following MWE:
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{xits-math.otf}
\begin{document}
$a\prurel b$, $c ⊰ d$
\end{document}
which had to be compiled with xelatex
or lualatex
(because it uses .otf
fonts, only supported with those engines), and produced:
The conclusion is then that the macro in question (\prurel
) is simply a way to get the symbol from an appropiate math font which contains it, which in this case is xits-math.otf
(but the documentation of unicode-math
lists other compatible fonts), and it will not work if you don't have an appropiate font.
In addition, since apparently that symbol is implemented only in otf
fonts, you would require xelatex
or luatex
to compile your document. I don't know if this qualifies as "collateral damages" :-)
Here's an attempt (better than the first one).
\documentclass{article}
\usepackage{graphicx}
\newcommand{\xle}{%
\mathrel{\vphantom{\le}%
\smash{\vcenter{\hbox{\oalign{%
\noalign{\kern.2ex}
\rotatebox[origin=l]{25}{$\scriptstyle\to$}\cr
\noalign{\kern-.95ex}
\kern-.03em
\rotatebox[origin=l]{-25}{$\scriptstyle\to$}\cr
\noalign{\kern.35ex}
\smash{$-$}\cr
}}}}%
}
}
\begin{document}
\fbox{$A\xle B$}\fbox{$A \le C$}
\end{document}
Best Answer
You're lucky: the minus sign and
\vartriangleleft
have the same width.With other math fonts it may not work flawlessly, I'm afraid.
For
acmart
we need to clip the minus sign: