Integral symbol too small, interval values seem too big/placed incorrectly
Pomax opened this issue · comments
If you add \displaystyle at the beginning of your expression you'll get the larger version. We should add an option to control this directly from JS though.
that's not really an option; this is based on http://pomax.github.io/bezierinfo, which has way too much latex to prime individual blocks for a specific interpreter. Would it be possible to tap into the css <link>
to see what the media
attribute is (like media=print
or media=screen
) and if used, default to displaystyle?
What style to use is more a function of where in the text the math appears – inline math traditionally uses "text style", whereas equations that appear on their own lines use "display style". For example, this input:
Once I tried to find $\int_0^1 x^2\,dx$.
Once I tried to find \[ \int_0^1 x^2\,dx. \]
produces this output in LaTeX:
@Pomax please re-open if this is still an issue for you.
(We added a new flag…)
katex.render("c = \\pm\\sqrt{a^2 + b^2}", element, { displayMode: true });
That flag centers stuff on the test page. Not sure how it will affect @Pomax's layouts.