$$在Rstudio降价文件中做什么? [英] What does $$ do in Rstudio markdown document?

查看:82
本文介绍了$$在Rstudio降价文件中做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心在Rstudio markdown文档的markdown部分中的某个地方键入了 $$ ,发现所有下游markdown编码均已关闭.我花了一些时间才将问题追溯到以深红色显示的 $$ .

I accidentally typed $$ somewhere in the markdown portion of my Rstudio markdown document and found that all downstream markdown coding had been turned off. It took me a while to trace the problem to the $$, which appeared in dark-red color.

我的问题是 $$ 是做什么的?我查看了降价文档,但未找到对 $$ 的任何引用.

My question is what does $$ do? I have looked in markdown documentations and have not found any references to $$.

推荐答案

$$ 是数学标记.请参阅pandoc手册中的相关部分.在两个 $$ 标记之间编写的所有内容都将解释为tex数学(此处为一些文档).请注意,您也可以使用单个 $ 符号. $$ 将产生一个块元素(一个段落),而 $ 将产生一个内联元素.因此, $$ 通常用于方程式.

$$ is a markup for math. See the relevant section in the pandoc manual. Everything written between two $$ markup will be interpreted as tex math (here is some documentation). Note that you can also use a single $ sign. $$ will produce a block element (a paragraph) while $ will produce an inline element. Thus, $$ is often used for equations.

尝试例如:

Here is an inline formula: $\frac{\alpha}{n}$ that shows...

Here is a standalone equation: $$x \approx \frac{\alpha}{n}$$

这篇关于$$在Rstudio降价文件中做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆