Javascript 为什么';t\\n是否在mathjax中显示换行符?
我的印象是,您应该使用Javascript 为什么';t\\n是否在mathjax中显示换行符?,javascript,html,mathjax,Javascript,Html,Mathjax,我的印象是,您应该使用\\处理mathjax的换行符,但是我无法让它工作。我做错了什么 \[ 1 x^2\\ 1 y^2\\ 1 z^2\\ \] 正如中所指出的,这在mathjax 3.0中不起作用 作为一种解决方法,我发现以下标记正确地转换为使用pandoc的HTML: you can use this: \begin{equation} \displaylines{I = \int \rho R^{2} dV \\ Y = 1} \end{equation} or alternat
\\
处理mathjax的换行符,但是我无法让它工作。我做错了什么
\[
1 x^2\\
1 y^2\\
1 z^2\\
\]
正如中所指出的,这在mathjax 3.0中不起作用
作为一种解决方法,我发现以下标记正确地转换为使用pandoc的HTML:
you can use this:
\begin{equation}
\displaylines{I = \int \rho R^{2} dV \\ Y = 1}
\end{equation}
or alternatively an align block, e.g:
$$
\begin{alignat}{2}
I & = \int \rho R^{2} dV & + P \\
Y & = 1 & + x
\end{alignat}
$$
使用:pandoc--from=markdown--to=html5--mathjax=”https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex mml chtml.js“-s file.md-o file.html
正如中所指出的,这在mathjax 3.0中不起作用
作为一种解决方法,我发现以下标记正确地转换为使用pandoc的HTML:
you can use this:
\begin{equation}
\displaylines{I = \int \rho R^{2} dV \\ Y = 1}
\end{equation}
or alternatively an align block, e.g:
$$
\begin{alignat}{2}
I & = \int \rho R^{2} dV & + P \\
Y & = 1 & + x
\end{alignat}
$$
使用:
pandoc--from=markdown--to=html5--mathjax=”https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex mml chtml.js“-s file.md-o file.html
您应该使用html断行,因为MathJax只处理数学模式,不处理反斜杠:
<p>
<span class="math display">
\(1 x x^2 \)</br>
\(1 y y^2 \)</br>
\(1 z z ^2 \)</br>
</span>
</p>
\(1 x^2\)
\(1 y^2\)
\(1 z^2\)
您应该使用HTML断行,因为MathJax只处理数学模式,不处理反斜杠:
<p>
<span class="math display">
\(1 x x^2 \)</br>
\(1 y y^2 \)</br>
\(1 z z ^2 \)</br>
</span>
</p>
\(1 x^2\)
\(1 y^2\)
\(1 z^2\)
这是v3中的回归这是v3中的回归