编织难度$$
Difficulty knitting $$
我正在写一个RMD代码如下:
$$
\text{We start with the following equation}\
\mu=\lambda*\theta^E*PT\
\text{The following represents a model for lambda within the context of our question}\
\lambda=\lambda_0*\theta_1^M*\theta_2^{M_75}*\theta_3^{M_80}*\theta_4^{M_85}*\theta_5^{M2000}*\theta_6^{M2005}*PT\
\log(\lambda)=log(\lambda_0)+log(\theta_1)*M+log(\theta_2)*M75+log(\theta_3)*M80+log(\theta_4)*M85+log(\theta_5)*M2000+log(\theta_6)*M2005+log(PT)\
$$
在我的 R 工作室中,我得到了预期的输出:
.
然而,当我将我的文件编织到 HTML 时,我得到了一个意外的输出:
.
有人知道这里发生了什么吗?
你应该这样做:
$\text{We start with the following equation}\$
$$\mu=\lambda*\theta^E*PT\$$
$\text{The following represents a model for lambda within the context of our question}\$
$$\lambda=\lambda_0*\theta_1^M*\theta_2^{M_75}*\theta_3^{M_80}*\theta_4^{M_85}*\theta_5^{M2000}*\theta_6^{M2005}*PT\$$
$\text{My big equation}\$
$$\log(\lambda)=log(\lambda_0)+log(\theta_1)*M+log(\theta_2)*M75+log(\theta_3)*M80+log(\theta_4)*M85+log(\theta_5)*M2000+log(\theta_6)*M2005+log(PT)\$$
$ - 内联公式,$$ - “居中”公式
我正在写一个RMD代码如下:
$$
\text{We start with the following equation}\
\mu=\lambda*\theta^E*PT\
\text{The following represents a model for lambda within the context of our question}\
\lambda=\lambda_0*\theta_1^M*\theta_2^{M_75}*\theta_3^{M_80}*\theta_4^{M_85}*\theta_5^{M2000}*\theta_6^{M2005}*PT\
\log(\lambda)=log(\lambda_0)+log(\theta_1)*M+log(\theta_2)*M75+log(\theta_3)*M80+log(\theta_4)*M85+log(\theta_5)*M2000+log(\theta_6)*M2005+log(PT)\
$$
在我的 R 工作室中,我得到了预期的输出:
然而,当我将我的文件编织到 HTML 时,我得到了一个意外的输出:
有人知道这里发生了什么吗?
你应该这样做:
$\text{We start with the following equation}\$
$$\mu=\lambda*\theta^E*PT\$$
$\text{The following represents a model for lambda within the context of our question}\$
$$\lambda=\lambda_0*\theta_1^M*\theta_2^{M_75}*\theta_3^{M_80}*\theta_4^{M_85}*\theta_5^{M2000}*\theta_6^{M2005}*PT\$$
$\text{My big equation}\$
$$\log(\lambda)=log(\lambda_0)+log(\theta_1)*M+log(\theta_2)*M75+log(\theta_3)*M80+log(\theta_4)*M85+log(\theta_5)*M2000+log(\theta_6)*M2005+log(PT)\$$
$ - 内联公式,$$ - “居中”公式