# Change the size of only a part/subset of a single equation

For example, I'd like to do:

$Q^{r<1}$


but with the r<1 having a much smaller font size than the Q. Of course r<1 will naturally have a smaller size since it is a superscript, but I want to make it even smaller, without changing the size of Q.

I prefer a solution in LyX, but a TeX solution will do.

• Hmm, when I compile, the font size of r<1 is smaller than Q. What do you get?
– kan
May 5, 2013 at 12:55
• Welcome to TeX.sx! May 5, 2013 at 13:35
• Thanks kan and Torbjorn. kan you are right (I have edited my question to reflect this). May 5, 2013 at 13:47
• @Jubobs -- the cited question asks specifically how to make parts of an equation larger. this one is about making something smaller. $Q^{\scriptscriptstyle r<1}$ should do that, and i'm not sure a new user would know that. {i also don't think that it's a good idea.} May 5, 2013 at 15:58
• @Jubobs, @barbara beeton: I do not necessarily think that this is a duplicate question. The referenced duplicate explains how to make math text smaller in a systematic way, but it is possible that this question desires an "exception to the rule" kind of answer, given that the superscripted material is not a typical exponent. He may want to leave exponentiation the defaulte size, but for this kind of superscript change the size. Something like a $Q^{\scaleto{r<1}{.5ex}}$ from the scalerel package could achieve this. May 6, 2013 at 10:34

If you really need to go smaller than scriptscriptsyle, you could use scalebox (but it's getting very small to read) \documentclass{article}
\usepackage{graphicx}
\begin{document}

$Q^{r<1}$

$Q^{\scriptscriptstyle r<2}$

$Q^{\scalebox{.2}{$r<4$}}$

\end{document}


Method

1. Insert math macro (from the menu or the "\foo:=" button on the toolbar)

a. For Name type say "qp" .

b. For TeX type exactly "\mathbb Q ^\scalebox{.5 {#1" The result should look like "Q\scalebox{.5}{#1}". This will be output in the LaTeX.

c. For Lyx type say "\mathbb Q ^#1 _\circ". The result should look like "Q°#1". This will be displayed in Lyx.

2. Go to Document Settings LaTeX Preamble and add "\usepackage{graphicx}".

3. Write your document after the macro definition and use "\qp" wherever you want this tiny power of Q.

Notes

You are of course free to choose a different macro name as well as a different LyX part. I chose to use "_\circ" to clearly distinguish it from the usual "\mathbb{Q}".