# MathJax/LaTex BB Code

Discussion in 'Resource and Add-on Requests' started by Matthew S, Mar 12, 2016.

1. ### Matthew SMember

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  or  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?

Jason76 likes this.
2. ### Jason76Member

Right, it seems like WordPress has a hundred such plugins, all free.

3. ### Jason76Member

Would this get it working on XenForo?

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

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: Apr 14, 2017