How do I globally change the size of subscripts and superscripts? (I would like to make them smaller)
1 Answer
$\Omega_{X_{k}/\kappa(x)\,x}$ fits within baseline spacing using the default fonts but adding a bit of extra height and depth does show an example that disturbs baseline spacing
\documentclass{article} \showoutput\showboxdepth3 \begin{document} Some text text text text text text text Some text text text text text text text Some text text text text text text text Aaaa $\hat\Omega_{X_{k}/\kappa(x)\,y}$ bbb ccc Some text text text text text text text Some text text text text text text text Aaaa $\hat\Omega_{X_{k}/\kappa(x)\,y}$ bbb ccc Some text text text text text text text Some text text text text text text text Some text text text text text text text \end{document} You can use smaller script and scriptscript size for 10pt base font:
Which has even spacing (but unreadable subscripts)
\RequirePackage{fix-cm} \documentclass{article} \showoutput\showboxdepth3 \DeclareMathSizes{10pt}{10pt}{4}{3} \begin{document} Some text text text text text text text Some text text text text text text text Some text text text text text text text Aaaa $\hat\Omega_{X_{k}/\kappa(x)\,y}$ bbb ccc Some text text text text text text text Some text text text text text text text Aaaa $\hat\Omega_{X_{k}/\kappa(x)\,y}$ bbb ccc Some text text text text text text text Some text text text text text text text Some text text text text text text text \end{document} - Perhaps you might want to show what happens if you
\smashit. Also, isn’t\hat{\Omega}the recommended syntax nowadays?Gaussler– Gaussler2024-12-14 16:09:23 +00:00Commented Dec 14, 2024 at 16:09 - @Gaussler
\smashcan work sometimes (but in general may cause over-printing so hard to recommend as a general solution, and it doesn't directly answer the question in the title) as for\hat{}you don't neednowadaysthe recommendation hasn't changed it has always been to use braces, but sometimes I am rebelliousDavid Carlisle– David Carlisle2024-12-14 16:11:41 +00:00Commented Dec 14, 2024 at 16:11 - That’s fine, rebel as much as you want. After Brexit, it won’t hurt the rest of us anymore.Gaussler– Gaussler2024-12-14 16:14:27 +00:00Commented Dec 14, 2024 at 16:14
- @ David Carlisle how would I do this for 11pt font. It doesn't seem to scale?Noah– Noah2024-12-14 16:17:10 +00:00Commented Dec 14, 2024 at 16:17
- @NoahLaikin the default for 11pt is
\DeclareMathSizes{\@xipt}{\@xipt}{8}{6}so\makeatletter\DeclareMathSizes{\@xipt}{\@xipt}{5}{4}\makeatother(note\@xiptis10.95ptnot11pt(so you can use10.95ptif you don't like the@David Carlisle– David Carlisle2024-12-14 16:21:49 +00:00Commented Dec 14, 2024 at 16:21


x^{2/3}instead ofx^{\frac{2}{3}}, and use\exp(...)instead ofe^{...}for large expressions. Or try to write such things in display math rather than inline math. In the cases where none of these tricks work, you can avoid extra long lines by doing\smash{$...$}. Quite often, it will turn out that there actually was enough room on the line for the expression.