Skip to content

Fix underbrace, subscript '+' and '-', and 'nitalic dn_i' - #304

Merged
jgm merged 1 commit into
jgm:masterfrom
jdpipe:fix/arrhenius-underbrace
Nov 6, 2026
Merged

jgm merged 1 commit into
jgm:masterfrom
jdpipe:fix/arrhenius-underbrace

Conversation

@jdpipe

@jdpipe jdpipe commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

I found that the current starmath conversion of the following equation was causing bad starmath syntax to be output. The result was bizarre LibreOffice behaviour, nearly a crash but not quite -- basically no active rendering in the main Impress pane any more. The issue was related to the implementation of the \underbrace translation in texmath, which is fixed in this PR. Hopefully I updated to the main repository status first, please advise if not.

$$
\text{rate contribution}
=\underbrace{A_j\exp\!\left(-\frac{E_j}{R_{\mathrm u}T}\right)}_{k_j(T):\ \text{Arrhenius coefficient}}
\times\underbrace{\text{gas factor}}_{\text{local hydrogen/steam}}
\times\underbrace{\text{solid factor}}_{\text{inventory, presence and access}}.
$$

Correct rendering in LO after applying the patch:
image

Edit I've corrected a second issue here also now:

$$
r_j^0 = r_{j,+}^{0}-r_{j,-}^{0}
$$

This incorrectly converted to

r_j^0 = r_{{j, + }}^0 - r_{{j, -}}^0

which renders with an error. Corrected, it now becomes:

r_j^0 = r_{{j, + {}}}^0 - r_{{j, - {}}}^0

Edit 2

Another glitch comes from this equation fragment:

\frac{\mathrm d n_W}{\mathrm d t}

which rendered incorrectly as

{nitalic dn_i} over {nitalic dt}

This needed to be changed to

{nitalic d n_i} over {nitalic d t}}

Loading
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

Successfully merging this pull request may close these issues.

2 participants