Menu

#128 \not\SomeSymbolRepresentedByAMacro_{subscript} does not work

Future
open
nobody
None
5
2023-03-15
2016-03-24
No

Consider the code

\documentclass{article}
\usepackage{unicode-math}%%% If running under lualatex or pdflatex
\newcommand{\pSymbol}{\prec}
\begin{document}
(\not\prec_a) (\not\pSymbol_a)
\end{document}

Under pdflatex (without unicode-math), both outputs coincide, giving an expected "does not precede" symbol with the subscript "a". Under xelatex, they don't; the second one is garbage.

Discussion

  • Petros Travioli

    Petros Travioli - 2016-03-25

    Possibly a bug in unicode-math rather than in xetex. Needs to be checked.

     
  • Just A. Man

    Just A. Man - 2023-03-15

    As of now, the second output looks bad (but is no longer garbage). Running xelatex on

    \documentclass{article}
    \pagestyle{empty}
    \usepackage{unicode-math}
    \newcommand{\pSymbol}{\prec}
    \begin{document}
    \(\not\prec_a\) \(\not\pSymbol_a\)
    \end{document}
    

    yields https://i.imgur.com/8SeM0hl.png .

     

Anonymous
Anonymous

Add attachments
Cancel