2021/1/22

vim-latex-live-preview插件实现中文预览

在网上搜索了很长时间终于把这个问题解决了。用 vim 写 latex的过程中,想要实时预览就得用到vim-latex-live-preview插件。

在预览有中文字符的tex文件总是会报错。
要想vim-latex-live-preview插件支持中文预览
只需要在 ~/.vimrc文件中加入下面两行代码就可以了。

set fileencoding=utf-8
let g:livepreview_engine = ‘xelatex’


参考链接

Written with StackEdit.

0 评论:

发表评论

注意:只有此博客的成员才能发布评论。