使用Latex语法时如何在github上的readme.md文件中写入百分比?

问题描述 投票:0回答:2

我正在尝试将数学表达式放入 github 上的 README.md 文件中。所以我关注了 github 上的文档:https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions

$$ 概率 = 0.689 + 0.392 = 1.081 = 108.1 % $$

README.md file outcome
但是正如您所见,

%
没有显示,因为据我所知,它是为评论保留的。

尝试过

\%
%%
但仍然没有。在网上搜索但没有成功

github mathjax readme
2个回答
0
投票

如果有人对此有问题:\% 解决了它..只是因为在 stackoverflow 上没有这样的问题
所以完整的等式是:

$$ Probability = 0.689 + 0.392 = 1.081 = 108.1 \\% $$


0
投票
$$ Probability = 0.689 + 0.392 = 1.081 = 108.1\% $$
© www.soinside.com 2019 - 2024. All rights reserved.