我正在尝试从 markdown (从 jupyter 笔记本)创建一个 epub2,其中包含使用 pandoc 嵌入的 latex 公式。我能看到的唯一选择是使用 --webtex 将 latex 渲染为图形,但每当我尝试时,我都会遇到一些超时
[WARNING] Could not fetch resource 'https://latex.codecogs.com/png.latex?...'
现在我想知道如何用本地处理器(例如 Latexit)替换 webtex。或者还有其他办法吗?
最佳答案
另一种选择是使用 GladTeX ( https://github.com/humenda/GladTeX ) 作为 pandoc 过滤器。
管道将类似于:
pandoc -s input_file.md -t json | gladtex -P - | pandoc -s -f json -o output-file.epub
您也可以逐步执行或使用gladtex进行进一步配置(请参阅mangladtex
)
关于jupyter-notebook - pandoc 的 --webtex 的独立替代品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60996097/