Rmarkdown数学公式的图形标题

时间:2019-07-26 00:10:05

标签: r latex yaml r-markdown

我想在rmarkdown文档中有一个可参考的方程式。我需要在文档中添加些什么以获得编号和参考功能。

我能够放入等式,但无法显示参考标签。我也无法在线引用。也许Yaml需要更多信息吗?

 \begin{equation}\label{eq:1}
 \gamma= \alpha_(i n) - \beta_(f n+1)#reference (1) doesn't appear-->
 \end{equation}  
 This is a reference for equation \ref{eq:1}. This is not working. 

我想看的东西

γ=α(in)−β(fn+1)γ=α(in)−β(fn+1)             (1)

这是公式1的参考。这不起作用。
我所看到的:

γ=α(in)−β(fn+1)γ=α(in)−β(fn+1)

这是Equation的参考。这不起作用。

edit:精确输入和输出的屏幕截图。添加了html屏幕截图。

here is the yaml header

Here is a code screen shot

今天上班时,我将发布html输出。谢谢您的帮助! post knitr output

0 个答案:

没有答案