mathjax / MathJax

Beautiful and accessible math in all browsers
http://www.mathjax.org/
Apache License 2.0
10.2k stars 1.16k forks source link

TeX extensions: Improve `\style` to inherit better (was: Mathjax not rendering styles) #438

Open jnoreiga opened 11 years ago

jnoreiga commented 11 years ago

When I have the following latex mathjax isn't rendering styles. It's a problem with generating styles in general

\style{font-size:72px;font-family:Verdana}{\sqrt{12{\color[rgb]{1.0, 1.0, 0.0}3}{\mathit4}_{1^{\mathbf23}}}}

dpvc commented 11 years ago

Currently \style really only works of you apply it to a single letter, number, or symbol. You could use the \large, \Large, \LARGE, \huge, or \Huge commands to get larger font sizes more reliably. Because MathJax needs to know a lot of details about the fonts that it uses, and this is done by having data files specific to the font involved, it is not easy to change the font family used by MathJax, so there is no current mechanism for that.

pkra commented 11 years ago

Of course, you can also wrap your TeX in a div with style information and MathJax will adapt to it as much as possible.

jnoreiga commented 11 years ago

I have clients that would like to apply styles for only parts of the equation.

Their other complaint is that you see the unrendered equation and then after some time the equation is rendered.

pkra commented 11 years ago

Please search the MathJax User group for advice on how to hide TeX before/during typesetting, .e.,g https://groups.google.com/forum/#!msg/mathjax-users/nI1eIEjk-ak/oVyy1nwtboYJ. .

pkra commented 10 years ago

I'm not sure about the status of this bug. It seems the remaining issue we're likely to fix is "\style should apply to generic TeX expressions (not just single characters)" (and we should probably document that behavior).

dpvc commented 10 years ago

Yes, I think the remaining issue is to get \style to inherit better.