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

Option for offline MathJax #40

Closed
mmlanger opened this issue Aug 29, 2018 · 4 comments
Closed

Option for offline MathJax #40

mmlanger opened this issue Aug 29, 2018 · 4 comments

Comments

@mmlanger
Copy link

First of all, thanks for this amazing extension! It's just so convenient!

While it is very easy to set the path to the default browser, It seems that it's not straightforward to change the location of mathjax, e.g. for offline use. At least as far as I know reveal.js loads mathjax from an online source, but I do have sometimes limited connection and like to create presentations with math rendering nonetheless.

Is there an easy way to change the mathjax path and I just missed it?
Could you add this as an option if it is not yet included?

@evilz
Copy link
Owner

evilz commented Oct 19, 2018

Ok, thank I just understand the problem.

I need to make this

Reveal.initialize({
	// other options ...

	math: {
		mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js',
		config: 'TeX-AMS_HTML-full'  // See http://docs.mathjax.org/en/latest/config-files.html
	},

	dependencies: [
		{ src: 'plugin/math/math.js', async: true }
	]
});

works.

I starded to think about a solution for redifine all this if needed.

Thank again

@mmlanger
Copy link
Author

Just a thought because other extensions do it the same way: you could bundle mathjax with the extension.

@evilz
Copy link
Owner

evilz commented Nov 2, 2018

For this case maybe :)

@evilz
Copy link
Owner

evilz commented Feb 6, 2019

Should be good #102

@evilz evilz closed this as completed Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants