texlive+vscode

下载texlive镜像并挂载

sudo apt-get install perl-tk
sudo prel ./install-tl --gui

设置环境变量:

vim ~/.bashrc
export PATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH
export MANPATH=/usr/local/texlive/2017/texmf/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2017/texmf/doc/info:$INFOPATH
source .bashrc

为XETEX配置字体

sudo cp /usr/local/texlive/2017/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
sudo fc-cache -fsv

vscode下载插件LaTeX Workshop
配置:

{
    "latex-workshop.latex.toolchain": [
        {
            "command": "xelatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-pdf",
                "%DOC%"
            ]
        }
    ]
}
texlive+vscode_第1张图片
结果

你可能感兴趣的:(texlive+vscode)