Opens.js: How to write Mathjax inline formulas?

So far, every mathematical formula that I wrote using MathJax in opens.js puts it on its own line. I want them to be able to write them on the same line as say text in the <p> , and control line breaks for formulas.

The MathJax dependency specified in the dependencies array of the object passed to the Reveal.initialize call:

 { src: '/plugin/math/math.js', async: true } 

This is the same as shown in the opens.js github documentation. In other words, I did not configure MathJax in any other way.

Thanks!

+6
source share
1 answer

Make sure you use line separators in the string $...$ or \(...\) , and do not display the math $$...$$ or \[...\] separators, which (among other things) cause display math on a separate line.

+8
source

Source: https://habr.com/ru/post/954734/


All Articles