【问题标题】:RMarkdown chunk output in console preview does not display latex option `\textcolor{}`控制台预览中的 RMarkdown 块输出不显示乳胶选项 `\textcolor{}`
【发布时间】:2020-02-11 04:28:38
【问题描述】:

在 Rmarkdown 中,我在乳胶代码中使用 \textcolor 选项,方法是:

$$
\textcolor{red}{This is Red}
$$

编译时将显示This is Red,但为红色。但是,“控制台中的块输出”预览选项不会加载它。有谁知道快速修复?我附上了它的样子:

【问题讨论】:

    标签: latex rstudio r-markdown


    【解决方案1】:

    在 RStudio 的 Rmd 文档中,您可以使用在 RStudio 的 Latex 方程块中识别的\color

    $$
    \color{red}{This is Red}
    $$
    

    我知道了

    它在 pdf 文档中也呈现为红色。

    【讨论】:

      猜你喜欢
      • 2014-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-23
      相关资源
      最近更新 更多