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

Mathjax? #72

Open
gypsydave5 opened this issue Sep 16, 2020 · 3 comments
Open

Mathjax? #72

gypsydave5 opened this issue Sep 16, 2020 · 3 comments

Comments

@gypsydave5
Copy link

Hey - I was expecting the default org export behaviour of adding a script tag to import mathjax and some settings when latex support is needed on a page, but I notice that this doesn't happen with the static blog?

Is this deliberate? Can/should it be fixed?

@bastibe
Copy link
Owner

bastibe commented Sep 17, 2020

You need to add it yourself in org-static-blog-page-header.

@hellwolf
Copy link
Contributor

hellwolf commented Nov 6, 2022

I added these to the org-static-blog-page-header and it worked for me:

<script type=\"text/javascript\"
             src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML\">
           </script>
           <script type=\"text/x-mathjax-config\">
             MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'],['\\\\(','\\\\)']]}});
           </script>"

@bastibe
Copy link
Owner

bastibe commented Nov 7, 2022

By the way, you may want to consider using https://katex.org/ instead of Mathjax, which is mostly compatible but much faster.

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

No branches or pull requests

3 participants