<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Because it is math mode, \scriptsize is a text command.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm quite surprised that actually compiles as \verb|mmm| normally dies when used in arguments.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Perhaps you should start by explaining what your end goal is here? Why are you writing verbatim in math mode? And even in super-/subscripts.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If it is just the font, use \mathtt{...}<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><br>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0)">/Lars Madsen</span><br>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0)">Institut for Matematik / Department of Mathematics</span><br>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0)">Aarhus Universitet / Aarhus University</span><br>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0)">Mere info:
</span><a href="http://au.dk/daleif@imf" tabindex="0"><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0)">http://au.dk/daleif@math</span></a><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0)">
/ More information: </span><a target="_blank" href="http://au.dk/en/daleif@imf" tabindex="0"><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; line-height:normal; color:rgb(0,0,0)">http://au.dk/en/daleif@math</span></a><br>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> texhax <texhax-bounces+daleif=imf.au.dk@tug.org> on behalf of Doug McKenna <doug@mathemaesthetics.com><br>
<b>Sent:</b> 07 May 2020 10:39<br>
<b>To:</b> texhax <texhax@tug.org><br>
<b>Subject:</b> Why does LaTeX issue \scriptsize warnings in math mode?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">I've been trying to put a LaTeX verbatim quote in a superscript or subscript. Here's a simple MWE:<br>
<br>
<br>
% !TEX TS-program = pdflatex<br>
<br>
\documentclass{letter}<br>
\begin{document}<br>
<br>
\verb|normal|, $10^{\scriptsize \verb|foo|}$, $A_{\scriptsize \verb|bar|}$, or $2^{2^{-{\tiny \verb|foobar|}}}$<br>
<br>
\end{document}<br>
<br>
<br>
It seems to work quite well or at least as expected, except that LaTeX issues the following warning messages which, given that it seems to work, don't make much sense:<br>
<br>
<br>
LaTeX Font Warning: Command \scriptsize invalid in math mode on input line 6.<br>
<br>
LaTeX Font Warning: Command \scriptsize invalid in math mode on input line 6.<br>
<br>
LaTeX Font Warning: Command \tiny invalid in math mode on input line 6.<br>
<br>
<br>
What is it that one needs to do better or correctly to keep such warnings at bay?<br>
<br>
<br>
Doug McKenna<br>
Mathemaesthetics, Inc.<br>
<br>
</div>
</span></font></div>
</body>
</html>