iPython笔记本上的内联数学模式 [英] Inline math mode on iPython notebook

查看:254
本文介绍了iPython笔记本上的内联数学模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iPython笔记本中,如何在一行(乳胶词汇表中的内联数学模式)中编写数学公式,如 r ^ 2 。即。打印公式时是否可以不换行。

In iPython notebook, how can I write a mathematic formula such as r^2 in a line (inline math mode in latex vocabulary). ie. Is it possible to not go on a new line when the formula is printed.

如果像LaTeX一样,它应该是 \(r ^ 2 \)但它不起作用...

If like in LaTeX, it should be \(r^2\) but it doesn't work...

感谢您的帮助!

推荐答案

在降价单元格中,您可以使用$ s,例如$ R ^ 2 $。这需要来自CDN的MathJax或本地MathJax安装。如果你有互联网连接,它应该是开箱即用的。

In a markdown cell you can use $s, e.g. $r^2$. This requires MathJax from CDN or a local MathJax installation. If you have an internet connection it should work right out of the box.

参见例如排版公式示例笔记本

这篇关于iPython笔记本上的内联数学模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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