-
Beta Was this translation helpful? Give feedback.
Answered by
TonyCrane
Jun 13, 2021
Replies: 2 comments 4 replies
-
你使用的是Tex,所以你不用在传入字符串里加入$$ frac = Tex("F=G\\frac{m_{1}m_{2}}{r^{2}}") TexText是直接的LaTeX环境,编写公式需要$$ frac = TexText("$F=G\\dfrac{m_{1}m_{2}}{r^{2}}$") # 使用\dfrac启用display style来达到一样的大小 |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
TonyCrane
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你使用的是Tex,所以你不用在传入字符串里加入$$
这样使用就没有问题了:
TexText是直接的LaTeX环境,编写公式需要$$
Tex是LaTeX的align环境,编写公式不需要$$,但写文字需要\text{}
所以这个和下面使用TexText的效果是一样的: