GitHub 托管的 Jupyter 笔记本自动换行/换行

GitHub 托管的 Jupyter 笔记本自动换行/换行

我想将包含大量内联数学的文档作为 IPython Notebook 放到 GitHub 上。因为我不喜欢典型的 Markdown 无衬线字体,它无论如何都与 Latex 字体不匹配,所以我希望我的所有文本都使用 Latex。

问题在于,在 \text{} 元素中,Latex 似乎不会自动添加换行符来适应页面的宽度。

例如,

$\text{This is an example set of text. Now here is a bit of math text: } S = \{s_1, s_2, . . . , s_n\}, \text{ and here I would like there to be more text. Several sentences may follow, and therefore form a paragraph.}$

导致集合 S 的表达式后出现不自然的换行。

有什么方法可以:让 \text{} 元素内的文本正确换行;或者让“$...$”内的文本看起来正常;或者更改 Jupiter 笔记本 Markdown 部分内的字体?正如我之前所说,托管在 GitHub 上。

相关内容