如何在jupyter笔记本中呈现罗马数字符号?

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

此tex code

\documentclass{article}
\usepackage{amsfonts}
\begin{document}
\[ p(h|\mathcal{D})=
\frac{p(h|\mathcal{D})p(h)}{\sum_{h'\in\mathcal{H}} p(h'|\mathcal{D})}=
\frac{p(h)\mathbb{I}(\mathcal{D}\in h)/|h|^N}{%
\sum_{h'\in\mathcal{H}} p(h')\mathbb{I}(\mathcal{D}\in h')/|h'|^N}
\]
\end{document} 

生成此罗马数字符号

enter image description here

在jupyter笔记本中运行相同的代码将获得此

enter image description here

如何在jupyter笔记本中呈现罗马数字符号?

jupyter-notebook mathjax
1个回答
0
投票
\mathbb{I}

not罗马数字II,它是黑板粗体大写字母I。对于竖立的罗马数字II,请使用\mathrm{II}(或者如果您真的不希望它们之间有任何空格\mathrm{I\!I}, 。

应该

在Jupyter中得到相同的符号,但可能是字体有问题。
© www.soinside.com 2019 - 2024. All rights reserved.