-
Notifications
You must be signed in to change notification settings - Fork 231
Different scale for inline equations and block equations
From http://stackoverflow.com/questions/8544333/mathjax-scale-options-for-inline-block
There is nothing built in for this, but you could use something like
<script type="text/x-mathjax-config">
MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
MathJax.InputJax.TeX.prefilterHooks.Add(function (data) {
if (!data.display) {data.math = "\\\\large{"+data.math+"}"}
});
});
</script>
to add \large
in front of every in-line math expression (and set the scaling back to 100%).
If the in-line math isn't large enough, then then may be something in your CSS or your font settings that is causing that. For example, if you are having to use <code>
around the math to prevent your mathematics from being tampered with by some markup engine, then the font associated with <code>
elements will be the one that controls the size of the math (rather than the text that surrounds it). That could be controlled by the CSS for code blocks, but it can also be set in most browsers as a separate font. It seems that most browsers are configured with that font being smaller than the regular font (I don't really understand why) and so that could be causing your problem as well.