Fwd: Re: Why does LaTeX issue \scriptsize warnings in math mode?

Peter Flynn peter at silmaril.ie
Thu May 7 11:54:51 CEST 2020



--- Forwarded message ---
From: Peter Flynn peter at silmaril.ie
Date: 7 May 2020 10:54:23
Subject: Re: Why does LaTeX issue \scriptsize warnings in math mode?
To: Doug McKenna doug at mathemaesthetics.com

> Isn't it \scriptstyle in math mode?
>
> P
>
> On 7 May 2020 09:41:06 Doug McKenna <doug at mathemaesthetics.com> wrote:
>
>> I've been trying to put a LaTeX verbatim quote in a superscript or 
>> subscript.  Here's a simple MWE:
>>
>>
>> % !TEX TS-program = pdflatex
>>
>> \documentclass{letter}
>> \begin{document}
>>
>> \verb|normal|, $10^{\scriptsize \verb|foo|}$, $A_{\scriptsize \verb|bar|}$, 
>> or $2^{2^{-{\tiny \verb|foobar|}}}$
>>
>> \end{document}
>>
>>
>> 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:
>>
>>
>> LaTeX Font Warning: Command \scriptsize invalid in math mode on input line 6.
>>
>> LaTeX Font Warning: Command \scriptsize invalid in math mode on input line 6.
>>
>> LaTeX Font Warning: Command \tiny invalid in math mode on input line 6.
>>
>>
>> What is it that one needs to do better or correctly to keep such warnings 
>> at bay?
>>
>>
>> Doug McKenna
>> Mathemaesthetics, Inc.





More information about the texhax mailing list.