Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support MathJax extension, e.g. physics package #1662

Closed
wants to merge 1 commit into from
Closed

Support MathJax extension, e.g. physics package #1662

wants to merge 1 commit into from

Conversation

huanyushi
Copy link
Contributor

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (refactoring and improving code)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Description

MathJax provides many extensions that help us input mathematical expressions more conveniently. Among them, the physics package is particularly important for STEM majors, as it allows us to easily input matrices, Dirac notation, adjust bracket sizes, and more.

I modified _includes/js-selector.html to add support for the physics package. Additionally, I also set MathJax to use global SVG font caching, which helps improve performance, especially on websites with multiple pages containing mathematical formulas. This reduces the time required to regenerate fonts each time a page is loaded.

I also added an example using the physics package in _posts/2019-08-08-text-and-typography.md.

More extensions of MathJax can be found here

Additional context

Fixed #622

support physics package
@huanyushi huanyushi closed this by deleting the head repository Apr 11, 2024
@huanyushi
Copy link
Contributor Author

I made some modifications. Could the administrator please help me delete this pull request? The new pull request is #1663

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.

how to add mathjax extension
1 participant