# Size Math font – Define different sizes for Display and Text Equations globally

I have a rather long document with plenty of maths and equations. As the equations are quite long I have chosen to use 8pt for equations in the display mode instead of the 10pt normal size.

\DeclareMathSizes{10}{8}{6}{6} globally changes all equations in math mode to 8pt font.

Is there a way to stick with 10pt in textstyle equations?, i.e. is it possible to differentiate between displaystyle and textstyle?

Help is much appreciated!

-
Welcome to TeX.sx! We typically do not include greetings but use upvoting of answers as a "Thanks". –  Peter Jansson Jan 16 '13 at 21:51
i think you mean "display and text environments"; "displaystyle" can be used (for example) to get a "full size" fraction in text, and vice versa. i'd take a look at \everydisplay for a means of determining the context. –  barbara beeton Jan 16 '13 at 22:24
Barbara, you are right. Is there a way to add a specific definition of sizes to \everydisplay? scriptstyle is to small whereas the normal style is to large.... is there a way to define sizes of a formula locally? –  Daniel Jan 16 '13 at 22:54
since i'm not intimately familiar with these inner workings, i will take some digging. that's why i just left a suggestion. if no one else comes forward, i'll dig when i have some time. –  barbara beeton Jan 16 '13 at 23:30
May be I should formulate the question in another way: How can specific sizes for normal math text, superscripts, subscripts etc... be chosen for only single equations? –  Daniel Jan 17 '13 at 23:07

I'm not clear exactly what your question is but you ask in comments of it is possible to locally affect the size of formulae. The standard LaTeX font commands affect math as well as text so you can do this:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

xxx $a=b$ yyy

zzz zzz zzz zzz zzz zzz
$a=b$
yy yy yy yy yy yy yy yy

zzz zzz zzz zzz zzz zzz
{\small$a=b$}%
yy yy yy yy yy yy yy yy

\end{document}

-