Skip to content

Conversation

@dietmarw
Copy link
Collaborator

This pull request addresses issues with inline LaTeX rendering and updates the MathJax configuration.

  • Adds MathJax config for OpenModelica to improve LaTeX rendering in documentation.

For OpenModelica we need:

annotation(Documentation(__OpenModelica_infoHeader = "<script type=\"text/javascript\" src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_CHTML\"></script>"));

Mind MathJax 3 is not supported.

For OpenModelica we need:
```
annotation(Documentation(__OpenModelica_infoHeader = "<script type=\"text/javascript\" src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_CHTML\"></script>"));
```
Mind MathJax 3 is not supported.
@dietmarw
Copy link
Collaborator Author

See also #39

@boerrebj
Copy link
Collaborator

Great!!!
Looking forward to test it out.

@boerrebj boerrebj closed this Feb 10, 2026
Copy link
Collaborator

@boerrebj boerrebj left a comment

Choose a reason for hiding this comment

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

Great to be able to include LaTex.

@dietmarw dietmarw reopened this Feb 11, 2026
@dietmarw dietmarw merged commit 45c9d68 into OpenSimHub:master Feb 11, 2026
8 checks passed
@dietmarw dietmarw deleted the latex branch February 11, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants