#差生文具多系列
在VSCode里写Latex

你还在为Overleaf日常掉线崩溃吗?你还在改一个符号Compile一次而心累吗?快来体验本地实时编译预览Latex的快乐吧!

Mac配置:VScode + LatexWorkshop (VSCode插件) + MacTex (Latex编译器) + Skim (轻量级PDF Viewer) 图

Mac教程 [1]:
homepages.rpi.edu/home/36/wang

Windows用户只需把MacTex替换成Win系统可用的Tex (e.g., Texlive) ,搜索相应教程即可。

[1] 该教程里有个小问题:我自己用brew装skim时发现安装路径和用Installer是一样的,都在Applications/下面。如果你也有同样的情况,记得配置pdf-view的时候复制"If you install Skim via installer..."下面的代码。

下图为我花15min配置好后的运行示意图。

Follow

@rakkaus 实时预览也可以用TeX Live自带的命令:
$ latexmk -pvc
这样你可以配合自己喜欢的编辑器和PDF阅读器使用。我会把编译后的结果输出到临时文件夹,避免污染(文件名是draft.tex):
$ latexmk -pvc -output-directory=/tmp/draft/ -xelatex -file-line-error -halt-on-error -interaction=nonstopmode -synctex=1 draft.tex

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.