Skip to content

Conversation

@ebouchut
Copy link
Collaborator

Equations in the open-loop feature page are broken when they use MTB, which is a glossary item.

MTB needs to be “broken down” to prevent the preprocessor from finding it
If not, the preprocessor inserts the tooltip HTML code, which breaks the equation.

See #892

I use a workaround to explode the glossary acronym into multiple parts
(at least 2) to hide it from the glossary acronym preprocessor.
That is, replace each occurrence of MTB in the equations with \mathit{MT}\mathit{B}.

ℹ️ Where \mathit{MT} italicizes MT.

As `MTB` is a glossary item, it needs to be “broken down”
to prevent the preprocessor from finding it,
and inserting the tooltip HTML code which breaks the equation.

See LoopKit#892
I used this bulky workaround to explode the glossary acronym into multiple parts
(at least 2) to hide it from the glossary acronym preprocessor.
Replace `MTB` with `\mathit{MT}\mathit{B}`.

ℹ️ Where `\mathit{MT}` italicizes `MT`.
@ebouchut ebouchut self-assigned this Aug 31, 2025
@ebouchut ebouchut added the typo Typo Fixes label Aug 31, 2025
Copy link
Collaborator Author

@ebouchut ebouchut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@ebouchut ebouchut merged commit 2c96ecf into LoopKit:main Aug 31, 2025
@ebouchut ebouchut deleted the ebouchut/fix/broken-equation-open-loop branch August 31, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typo Typo Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant