szaghi / MaTiSSe

Markdown To Impressive Scientific Slides
47 stars 11 forks source link

LaTeX equations in boxes #28

Closed giacrossi closed 9 years ago

giacrossi commented 9 years ago

Is possible to add the opportunity of writing LaTeX equations in boxes? This feature could be very useful!

szaghi commented 9 years ago

It was already supported, but there was a small bug into the regex of the box(note, figure, table) contents capturing: it was set as non-greedy... this broken the latex equations that uses {} brackets (that are uses for delimiting box-like envs contents). Now the regex are greedy and the latex equations should be corrected rendered also into box and not envs (not into figure and table).

I am closing this issue, let me know if the fix does not work (in my unittest suite it does).

Thank you for testing MaTiSSe.py

giacrossi commented 9 years ago

The issue is not completely solved: for some particular equations, like this

$$ p = \rho \sum \limits_{i=1}^{N_s} \frac{Y_i}{W_i} \mathcal{R}_u T $$

I still have some problems in compilig the formula with mathjax if the formula is inserted in a box.