0

I updated, and now get an error with the following code and lualatex or xelatex (pdflatex is OK):

\documentclass{article}
\usepackage{newtxmath}
\begin{document}
Hello
\end{document}

The error is this:

! Undefined control sequence. 
l.2619 \pdfglyphtounicode
                       {nPerp}{2AEB 2215}% .. ..

I assume this is a bug.

How do I report it?

  • I can confirm it. – Sigur Oct 3 at 23:58
  • newtxmath isn't intended to be used with luatex in any case, but as I posted already in chat \usepackage{luatex85} fixes the problem – David Carlisle Oct 3 at 23:58
  • At least you get past \documentclass :). – cfr Oct 4 at 0:22
1

the tx fonts are 8bit fonts not really ideal for luatex but you can load the luatex85 compatibility to define the pdftex compatible command names.

\documentclass{article}
\usepackage{luatex85}
\usepackage{newtxmath}
\begin{document}
Hello
\end{document}

This should perhaps be reported to the newtxmath maintainer so it gives a better error or works automatically with luatex.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.