Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integral symbol too small, interval values seem too big/placed incorrectly #66

Closed
Pomax opened this issue Sep 17, 2014 · 7 comments
Closed

Comments

@Pomax
Copy link

Pomax commented Sep 17, 2014

Comparison shot between MathJax and KaTeX for definite integrals:

image

@sophiebits
Copy link
Contributor

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.

@Pomax
Copy link
Author

Pomax commented Sep 17, 2014

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?

@sophiebits
Copy link
Contributor

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:

image

@Pomax
Copy link
Author

Pomax commented Sep 17, 2014

with displaystyle worked into the autoconverter:

image

cben added a commit to cben/KaTeX that referenced this issue Sep 29, 2014
until the question of display math API (KaTeX#66) is decided either way...
cben added a commit to cben/KaTeX that referenced this issue Sep 29, 2014
until the question of display math API (KaTeX#66) is decided either way...
cben added a commit to cben/KaTeX that referenced this issue Oct 1, 2014
until the question of display math API (KaTeX#66) is decided either way...
timelyportfolio added a commit to timelyportfolio/katexR that referenced this issue Feb 5, 2015
@kevinbarabash
Copy link
Member

@Pomax please re-open if this is still an issue for you.

@sophiebits
Copy link
Contributor

(We added a new flag…)

katex.render("c = \\pm\\sqrt{a^2 + b^2}", element, { displayMode: true });

@kevinbarabash
Copy link
Member

That flag centers stuff on the test page. Not sure how it will affect @Pomax's layouts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants