I recently had to reinstall my tex environment (texlive under windows), and afterwards I got lots of "Missing { [or }] inserted" errors. I managed to track the cause down to the use of \texttt within subscript. More precisely, using pdflatex on the following minimal example
\documentclass{beamer}
\begin{document}
$A_\texttt{a}$
\end{document}
gives me the following errors:
Missing { inserted. $A_\texttt
Missing } inserted. $A_\texttt{a}$
I guess something must have gone wrong with the fonts, but I can't figure out what.
By the way, for this small example the pdf file is created correctly, but for larger files pdflatex aborts.
Any suggestions?
$A_{\texttt{a}}$or$A_{\mathtt{a}}$? – Mico Sep 01 '20 at 16:39_is very odd it sometimes works anyway, but any redefinition of texttt is likely to break it again. if_took it's argument like a macro the braces would be needed,\fbox\texttt{a}would be\fbox{\texttt}{a}and fail badly. – David Carlisle Sep 01 '20 at 16:49