前言
使用了一段时间的 Typst 来记录数学笔记之后,再回头看 Latex 中的的大量 \
,{}
和 begin...end
,它们是如此可怕。
latex:
typst:
output:
目标
我日常是使用 org mode + denote
来记笔记,参照 org-static-blog 糊了个博客生成工具。
因此希望:
- 在
org mode
中能使用$$
来写 typst 的数学语法,并可以在org mode
中进行高亮 - 在
org export
过程中将 math block 的 typst 语法转换成 html。目前 Typst 还不支持 html export,但是有大佬已经写了 ox-typst,可以借鉴里面的接口。
为什么不直接用 Typst 记笔记?
- 博客工具是基于 org mode 和 denote 的,且 Typst 目前还不支持 html export
- 懒得迁移
- Emacs 中一些自己写的小工具是其他编辑器无法替代的
不知道道友是否有类似想法,或者已经有人在尝试了吗?