R Markdown 和 Windows 中的多行乳胶方程

2024-04-11

下面的代码在linux上运行良好:

---
title: "LaTeX test"
author: "Ignacio"
output: html_document
---


## Latex

$$ 
\begin{aligned}

y_j \sim N(\theta_j , \sigma_j^2) \\

\sigma_j = \nu/\sqrt{n_j}   \\

\theta = \mu +\tau \times \eta \\

\eta \sim N(0,1) \\

\mu + \tau\times\eta = \theta \sim N(\mu , \tau^2)

\end{aligned}
$$

在 Windows 上,rstudio 正确呈现方程:

但是,当我编织文件并使用 chrome 或 ie 打开 HTML 时,乳胶未正确呈现:

有没有办法来解决这个问题?


如果其他人遇到这个问题,@YihuiXie 是对的。删除空行可以解决问题:

---
title: "LaTeX test"
author: "Ignacio"
output: html_document
---


## Latex

$$
\begin{aligned}
y_j \sim N(\theta_j , \sigma_j^2) \\
\sigma_j = \nu/\sqrt{n_j}   \\
\theta = \mu +\tau \times \eta \\
\eta \sim N(0,1) \\
\mu + \tau\times\eta = \theta \sim N(\mu , \tau^2)
\end{aligned}
$$
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

R Markdown 和 Windows 中的多行乳胶方程 的相关文章

随机推荐