• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

MathJax/LaTex BB Code

#1
I can't seem to find anything in the RM for this. I can't imagine there's a huge demand by forum goers wanting to embed math into their posts, but I'm one that does.

Here's a CDN based system that can be used to embed math into web pages.

http://docs.mathjax.org/en/latest/start.html

And here's a description of LaTeX.

https://en.wikibooks.org/wiki/LaTeX/Mathematics

I imagine that a BB Code would replace the LaTeX delimiter with [math][/math] or [latex][/latex] type codes.

Anyway, just putting it out there that there seems to be a lack of an add-on/BB Code of this type. Maybe someone looking to practice some coding might be interested in a project like this?
 
#3
Would this get it working on XenForo?

https://www.checkmyworking.com/2012/01/how-to-get-beautifully-typeset-maths-on-your-blog/

If you have the ability to edit the HTML of your blog’s header, paste the following code just below the line with the <title> tag on it:
Code:
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']],
                       displayMath: [['\\[','\\]'], ['$$','$$']]}});
</script>
<script type="text/javascript"
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
Warning: This could mess up code big time, cause XenForo's title isn't coded like on some blog. Where's is XenForo's title and and any free or paid tutorials on how to put in the code safely?
 
Last edited: