LaTeX Font Warning: Command \small invalid in math mode on input line 3. \ scriptstyle denotes the font size of super-/subscripts, while.

Just put \small before the equation and \normalsize after it if you want to shrink the font, but it's usually better to use an ams multi-line equation environment than .

Type sizes and changing type size in math mode. The standard type sizes in Latex are: tiny, scriptsize, footnotesize, small, normalsize, large.

So is it possible to control the font size in math mode? >{\small} d{1}{2} % didn't work I am going to try the second package you suggest.

Some mathematical elements change their style depending on the context, There are some more maths style-related commands that change the size of the.