jdevuyst / termcat

Termcat is a markup language for scientific and technical writing.
11 stars 1 forks source link

Sizing of mathematical expressions #10

Open sparkofreason opened 10 years ago

sparkofreason commented 10 years ago

Is it possible to control sizing of mathematical expressions? When I render the termcat below, it gets very tiny.

_S = (-∑~ _j=1^n ( (_p_j)|(_m_j) (ln) (_p_j)|(m_j) ) )|N

jdevuyst commented 10 years ago

For me the code you pasted is displayed in a normal font, as if LaTeX's or MathML's 'displaystyle' were used.

screenshot

Are you seeing something different?

It's not currently possible to change the value of 'displaystyle', however. This is something I hope to add at some point.

That's a nice expression by the way. Made me realize there's much room for improvement with respect to how Termcat currently handles parentheses.

sparkofreason commented 10 years ago

I'm seeing it rendered as below. Note how the RHS appears smaller. I would like it to render as you showed it.

entropy

jdevuyst commented 10 years ago

That's not very legible indeed.

If you right click on the formula, does it show you the MathJax menu (the last item should be MathJax Help)? If so then I think that MathJax is simply selecting a sub-optimal font.

Unfortunately I don't have a quick fix.

If you feel adventurous then you could have a look at http://docs.mathjax.org/en/latest/configuration.html and experiment with the settings. You could also try including something like somewhere in the Termcat document and see if this leads to a better font being selected (MathJax tries to choose a font that matches the surrounding text).

What operating system and browser are you using by the way?