【发布时间】:2018-09-09 21:49:22
【问题描述】:
我在 jupyter notebook 中使用 Julia。
我想为我的工作结果生成一个 pdf。但是,在生成pdf时,数学表达式λ=3的λ丢失了,因此pdf中的输出为=3。
这里是 jupyter notebook 代码
In[1]: λ=3
Out[1]: 3
这里是用 jupyter notebook 生成的 pdf
In[1]: =3
Out[1]: 3
使用nteract 生成的pdf 不是这种情况,其中表达式λ=3 被完全打印出来。但是,使用nteract 生成的 pdf 的整体外观不如使用jupyter notebook 生成的 pdf。
这里是使用nteract 生成的打印pdf(看起来与代码本身完全相同):
In[1]: λ=3
Out[1]: 3
有人知道如何用jupyter notebook 打印这样的字符吗?
在此先感谢
【问题讨论】:
-
复制一些最少的代码会有所帮助。
-
我尝试了接受的答案,不幸的是它对我不起作用。然后我找到了一种通过使用
$\lambda$这种符号来跳过这个问题的方法,幸运的是它对我有用。所以,简而言之,不要使用unicode字母,而是回复latex语法生成希腊字母。
标签: pdf unicode jupyter-notebook julia mathematical-expressions