7

I'm getting this exact error message (including linebreaks)

! ^^^^ needs four hex digits.
l.5 \newcommand{\boldpsi}{^
                          ^^^^1d6d9}

for this piece of code:

\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{texgyrepagella-math.otf}
\newcommand{\boldpsi}{^^^^^1d6d9}
\begin{document}
$\boldpsi$
\end{document}

I checked this answer but 5 carets seem the way to go.

1 Answers1

10

Five carets work with XeTeX, but not with LuaTeX, which only accepts two, four or six.

Unfortunately, the answer still had the five caret notation. (Edited, now.)

egreg
  • 1,121,712
  • In fact, the answer is about an older version of LuaTeX that still accepted five carets with five hex digits. It is only in the comments where you find that since LuaTeX 0.85 five carets are no longer supported. – Sir Cornflakes Apr 26 '22 at 15:11
  • @jk-ReinstateMonica I read it and I overlooked the five carets part. Now I edited both answers – egreg Apr 26 '22 at 15:18