humenda / GladTeX

embed LaTeX formulas into LaTeX
https://humenda.github.io/GladTeX
GNU Lesser General Public License v3.0
27 stars 7 forks source link

GladTeX 2.1.1 degrades displaymath to inlinemath #4

Closed humenda closed 7 years ago

humenda commented 7 years ago

The following document is the source:

<p><EQ ENV="displaymath">r_{c_{z_t}c_{z_k}} = \frac{\bar{r}_{t_n k_m}}{\sqrt{\frac{1}{n} + \frac{(n-1)}{n}\bar{r}_{tt}}\sqrt{\frac{1}{m}+\frac{(m-1)}{m}\bar{r}_{kk}}}</EQ></p>

Using gladtex -a -d images, the outcome is as follows:

<p><a href="images/outsourced-descriptions.html#r_c_zt_c_zk_.frac_.bar_r__tnkm__.sqrt_.frac_1__n_.frac_-n1-__n_.bar_r__t_.sqrt_.frac_1__m_.frac_-m1-__m_.bar_r__k_"><img src="images/eqn000.png" style="vertical-align: -18px; margin: 0;" height="15px" width="224px" alt="r_{c_{z_t}c_{z_k}} = \frac{\bar{r}_{t_n k_m}}{\sqrt{\frac{1}{n} + \frac{(n-1)}{n}\bar{r}_{tt}}\sqrt{..." class="inlinemath" /></a></p>

This leads to additional compression of the formulas and in unreadable formulas.