如何在 jupyter notebook 中呈现罗马数字符号?
how to render a roman number symbol in jupyter notebook?
这个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}
生成这个罗马数字符号
运行 jupyter notebook 中的相同代码得到这个
如何在 jupyter notebook 中呈现罗马数字符号?
\mathbb{I}
不是 罗马数字 II,它是黑板黑体大写 I。使用 \mathrm{II}
表示直立的罗马数字 II(或者如果你真的不希望它们之间有任何 space \mathrm{I\!I}
.
你应该在Jupyter中得到相同的符号,但可能是字体有问题
这个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}
生成这个罗马数字符号
运行 jupyter notebook 中的相同代码得到这个
如何在 jupyter notebook 中呈现罗马数字符号?
\mathbb{I}
不是 罗马数字 II,它是黑板黑体大写 I。使用 \mathrm{II}
表示直立的罗马数字 II(或者如果你真的不希望它们之间有任何 space \mathrm{I\!I}
.
你应该在Jupyter中得到相同的符号,但可能是字体有问题