I am trying to learn to work with numexpr and am having some trouble with the basics, and etex_man has not been detailed enough to help in this case.
Here is an MWE:
\documentclass{article}
\begin{document}
Hi \numexpr 6 + 1 \relax
\end{document}
The error when I call pdflatex from TexLive 2018 is "You can't use `\numexpr' in horizontal mode. Hi \numexpr." Similar error if I switch to vertical or math mode.
So clearly I am missing something basic. Could someone enlighten me?
Thanks in advance
\numexpr
is added in e-TeX as a new alternative to<internal integer>
. You find the extended grammar rules in the e-TeX manual. – siracusa May 27 at 19:50