【问题标题】:R shiny MathJax Alignment issueR闪亮的MathJax对齐问题
【发布时间】:2015-04-19 10:10:23
【问题描述】:

我的闪亮应用程序中有很多行方程,我想通过它们的等号对齐,但似乎无法让对齐功能正常工作。我的代码如下。

p("$$\\begin{align}
     \\ x^2 &=  \\text{Chi-Squared}
      \\ sum &= \\text{summation}
      \\ o &=  \\text{the observed values}
      \\ e &=  \\text{the expected values}
      \\end{align}$$")

但这不起作用,我不知道如何正确对齐它们。任何帮助将不胜感激

【问题讨论】:

    标签: r latex shiny mathjax


    【解决方案1】:

    您尚未终止对齐行。您需要在每行末尾添加\\\\(最后一行除外):

    p("$$\\begin{align}
         \\ x^2 &=  \\text{Chi-Squared} \\\\
         \\ sum &= \\text{summation} \\\\
         \\ o &=  \\text{the observed values} \\\\
         \\ e &=  \\text{the expected values}
         \\end{align}$$")
    

    【讨论】:

    • 非常感谢,我找不到任何使用 4 个反斜杠的闪亮示例。感谢您的帮助
    猜你喜欢
    • 2015-04-29
    • 2014-06-30
    • 2015-04-26
    • 1970-01-01
    • 2018-07-30
    • 1970-01-01
    • 2016-06-05
    • 2015-05-11
    • 1970-01-01
    相关资源
    最近更新 更多