# 1. 下载Textlive
wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
# 2. 解压
tar -zxvf install-tl-unx.tar.gz
# 3. 安装
sudo perl install-tl
# 安装过程比较久
# 安装TeXStudio
sudo add-apt-repository ppa:sunderme/texstudio
sudo apt-get update
sudo apt install texstudio
VS Code配置
打开设置,搜索latex-workshop.latex.recipes
根据需要配置不同的编译路径
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": [
"xelatex"
]
},
{
"name": "xelatex->bibtex->exlatex*2",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
}],
"latex-workshop.latex.tools":[
{
"name":"xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}, {
"name":"bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}
],
安装vscode latex workshop插件
配置pdf同步阅读器
参考
- https://tug.org/texlive/quickinstall.html
- https://zhuanlan.zhihu.com/p/65931654
- https://codeantenna.com/a/P1KetRKms7#_Tex_Live_2021_3
- https://code.launchpad.net/~sunderme/+archive/ubuntu/texstudio
- https://ubuntuhandbook.org/index.php/2019/12/how-to-install-texstudio-2-12-18-in-ubuntu-19-10-20-04/
- https://www.texstudio.org/