在 Typora 中显示数学符号

Ali*_*ice 3 markdown

我阅读了leetcode的官方解决方案来反转整数

将以下内容复制到我的降价笔记后

在此处输入图片说明

但得到

在此处输入图片说明

我使用通常功能强大的typora。

为什么内容无法显示在网站上?

its*_*box 5

您复制的文本包含Katex公司,这是不被支持Typora。所以你应该使用 Latex 语法来呈现数学表达式。

在 Typora 中,您只需按 $$ 和 Return 键即可输入数学块。但就您而言,您需要内联数学。按command/ctrl + ,并确保选中内联数学

截图图片

要使用内联数学,请将您的内容放在 $. 例如$f(x)=x_{1}^{2}+x_{2}^{2}$结果

截图图片

如果您在 Typora 中编写以下内容

To explain, lets assume that $\text{rev}$ is positive.

1. If $temp=rev\cdot10+pop$ causes overflow, then it must be that $rev\geq\frac{INTMAX}{10}$
2. If $rev>\frac{INTMAX}{10}$, then $temp=rev\cdot10+pop$ is guaranteed to overflow.
3. If $rev==\frac{INTMAX}{10}$, then $temp=rev\cdot10+pop$ will overflow if and only if $pop>7$

Similar logic can be applied when $\text{rev}$ is negative.
Run Code Online (Sandbox Code Playgroud)

看起来像,

截屏

这里\cdot结果乘法点(),\geq结果\frac{}{}结果分数。

查看所有Latex 数学符号点字符之间的区别