美文网首页
本地版Overleaf:用Visual Studio Code编

本地版Overleaf:用Visual Studio Code编

作者: 威玲旺卡 | 来源:发表于2021-06-27 06:20 被阅读0次
Screenshot from 2021-06-26 23-58-44.png

简介:这是一个本地版Overleaf Personal的模拟, 使用Visual Studio Code编辑预览Latex,并且查看Local History。第二部分包括同步到Github的配置,可以实现Overleaf Premium的同样服务。除了省钱外,还能解决Overleaf如果加入过多High-Resolution的图片的大文档后,编译极度缓慢的问题。

基本功能

  • 安装textlive-full (ubuntu 20.04 sudo apt-get install textlive-full)
  • vscode安装插件:latex workshop

比起疯狂commit到git,local history是一个实际有效查看revisions的方法:

  • vscode安装插件:Local History

至此已经有预览编译后窗口显示pdf功能和版本查看,实现了overleaf的personal功能,此外如果是在vscode的暗黑模式下,希望把pdf调成黑底白字。加入如下配置命令。

\pagecolor{black}
\color{white}

同步到git

重要的版本可以commit后自动push到git,vscode设置git的自动push设置如下:

在加入github的repository之后,在vscode的setting中搜索git,再将post commit command设置为push,这样每一个重要版本commit之后就会自动同步到github了。

禁止auto build

设置里默认auto build是onsave,可以在setting里禁止它。

2021年6月27日
威玲旺卡(署此名即可转载)

相关文章

网友评论

      本文标题:本地版Overleaf:用Visual Studio Code编

      本文链接:https://www.haomeiwen.com/subject/xsbtultx.html