R-jax对齐问题
在我闪亮的应用程序中,我有很多行的方程,我想通过它们的等号对齐,但似乎无法让对齐函数正常工作。我的代码如下R-jax对齐问题,r,latex,shiny,mathjax,R,Latex,Shiny,Mathjax,在我闪亮的应用程序中,我有很多行的方程,我想通过它们的等号对齐,但似乎无法让对齐函数正常工作。我的代码如下 p("$$\\begin{align} \\ x^2 &= \\text{Chi-Squared} \\ sum &= \\text{summation} \\ o &= \\text{the observed values} \\ e &= \\text{the expected values}
p("$$\\begin{align}
\\ x^2 &= \\text{Chi-Squared}
\\ sum &= \\text{summation}
\\ o &= \\text{the observed values}
\\ e &= \\text{the expected values}
\\end{align}$$")
但这不起作用,我也不知道如何正确对齐它们。如果您没有终止对齐行,我们将非常感谢您的帮助。您需要在每行末尾添加
\\\
(最后一行除外):
非常感谢,我找不到任何使用4个反斜杠的闪亮示例。谢谢你的帮助
p("$$\\begin{align}
\\ x^2 &= \\text{Chi-Squared} \\\\
\\ sum &= \\text{summation} \\\\
\\ o &= \\text{the observed values} \\\\
\\ e &= \\text{the expected values}
\\end{align}$$")