Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R-jax对齐问题_R_Latex_Shiny_Mathjax - Fatal编程技术网

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}$$")