GitHub 託管的 Jupyter 筆記本自動換行/換行

GitHub 託管的 Jupyter 筆記本自動換行/換行

我想將包含大量內嵌數學的文檔作為 IPython Notebook 放到 GitHub 上。因為我不喜歡典型的 Markdown sans-serif 字體,它與 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 上。

相關內容