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

Improved customization of MathJax #494

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

torfjelde
Copy link

@torfjelde torfjelde commented May 28, 2023

With respect to the MathJax support in org-reveal, I've encountered a few pain points:

  1. I'd like to be able to specify a MathJax configuration to use (both globally, i.e. a default one, and locally, i.e. per-buffer basis). For example, I make heavy use of the physics package, so it would be nice to make this available in all my Reveal.js presentations too (which can be done through the MathJax config).
  2. It would be nic to be able to switch between different MathJax versions.

This PR attempts to address the above while maintaining the current behaviors.

Configurations can now be specified by:

  • In buffer: #+REVEAL_MATHJAX_CONFIG
  • Through customization: org-reveal-mathjax2-config or org-reveal-mathjax3-config, depending on which MathJax version we're working with.

Version of MathJax is specified by::

  • In buffer: #+REVEAL_MATHJAX_VERSION: 2.7.5
  • Custom variablle: org-reveal-mathjax-version
  • If REVEAL_MATHJAX_URL is specified, and org-reveal-extract-mathjax-version-from-url is non-nil, we will attempt to extract the version from the URL.
  • Otherwise, defaults to 2.7.5, as is currently done.

I personally find this quite useful, so figured I'd make a PR:)

Also, love the package! Rely on it for all my presentation needs, so thank you so much for your work!

EDIT: If there's interest in this, I can of course also add a README section about this 👍

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.

1 participant