When I use \fontsize{foo}{bar}{baz}
to increase the font size, not all the maths symbols increase accordingly. For example, the \int
, \sqrt
(display style) and lines when drawing fractions don't increase accordingly.
e.g.
\documentclass{article}
\usepackage{amsmath,amssymb,bm,fontenc,physics,lmodern,nicefrac}
\begin{document}
{\fontsize{50}{62.500000}{\rmfamily $\displaystyle\int_\mathbb{R}^{} \sqrt{\dfrac{1}{\sqrt{2\pi\sigma}} \exp(-\dfrac{x^2}{2\sigma^2})} \dd{x} = 1 $}}
\end{document}
produces
whereas without the fontsize command everything looks as it should:
Is there a package I can add or a small fix to sort this out?
What I've tried so far
I thought adding \DeclareMathSizes{50}{45}{35}{25}
to the preamble would sort this out but it appears not.
Why the massive font?
This is actually output from using Python's matplotlib package, ultimately stemming from this issue Matplotlib some LaTeX symbols not scaling with increased figure sizes which based on this answer, is a result of what LaTeX is producing. Hence if I can figure out how to get LaTeX to produce the right out put then I can look at modifying matplotlib's behaviour. Hence a very minimal modification would be preferred.
cmex
as in my answer.