I am using a custom math font using the \setmathfont
command from unicode-math. However the exponents don't render properly and are set too low. To adjust this I am using the following:
\AtBeginDocument{
\setbox0=\hbox{
\check@mathfonts{
\fontdimen16\textfont2=2.5pt
\fontdimen17\textfont2=2.5pt
\fontdimen14\textfont2=4.5pt
\fontdimen13\textfont2=4.5pt
}
}
}
However this is giving me a ton of errors such as Extra }, or forgotten $.
and Improper \prevdepth.
on my title page. Everything seem to render fine in the PDF but I got 6 additional annoying errors. Is there a way to fix these? I am using overleaf.
Thanks in advance.
\makeatletter
before the\AtBeginDocument
. And next time show a small but complete example, then one doesn't have to guess.