[1]Ubuntu 使用 Latex锨络,使用VS Code 中文
https://zhuanlan.zhihu.com/p/65931654[2]使用VSCode編寫LaTeX
https://zhuanlan.zhihu.com/p/38178015[3]Demo測(cè)試:一個(gè)簡(jiǎn)單的LaTex例子
https://blog.csdn.net/qq_16587307/article/details/92829098
1. 安裝Latex環(huán)境[1]
1.1 安裝latex
sudo apt-get install texlive-latex-base
1.2 安裝中文環(huán)境
sudo apt-get install latex-cjk-all
1.3 安裝額外包
sudo apt-get install texlive-latex-extra
1.4 安裝圖形界面texmaker
sudo apt-get install texmaker
1.5 安裝xelatex
sudo apt-get install texlive-xetex
1.6 安裝publisher
sudo apt-get install texlive-publishers
2. 安裝vscode
sudo dpkg -i <vs code名字>.deb
3. 安裝插件Latex Workshop
打開VS code碉怔,在插件欄搜索 latex workshop,點(diǎn)擊 install
4. 配置插件峰档,使它支持中文
打開設(shè)置掖看,搜索 latex-workshop.latex.recipes
點(diǎn)擊 Edit in settings.json
將 settings.json 內(nèi)的代碼替換為下列行[2]:
{
? ? "latex-workshop.latex.recipes": [
? ? ? ? {
? ? ? ? ? ? "name": "xelatex",
? ? ? ? ? ? "tools": [
? ? ? ? ? ? ? ? "xelatex"
? ? ? ? ? ? ],
? ? ? ? },
? ? ? ? {
? ? ? ? ? ? "name": "pdflatex",
? ? ? ? ? ? "tools": [
? ? ? ? ? ? ? ? "pdflatex"
? ? ? ? ? ? ]
? ? ? ? },
? ? ? ? {
? ? ? ? ? ? "name": "xe->bib->xe->xe",
? ? ? ? ? ? "tools": [
? ? ? ? ? ? ? ? "xelatex",
? ? ? ? ? ? ? ? "bibtex",
? ? ? ? ? ? ? ? "xelatex",
? ? ? ? ? ? ? ? "xelatex"
? ? ? ? ? ? ]
? ? ? ? },
? ? ? ? {
? ? ? ? ? ? "name": "pdf->bib->pdf->pdf",
? ? ? ? ? ? "tools": [
? ? ? ? ? ? ? ? "pdflatex",
? ? ? ? ? ? ? ? "bibtex",
? ? ? ? ? ? ? ? "pdflatex",
? ? ? ? ? ? ? ? "pdflatex"
? ? ? ? ? ? ]
? ? ? ? }
? ? ],
? ? "latex-workshop.latex.tools": [
? ? ? ? {
? ? ? ? ? ? // 編譯工具和命令
? ? ? ? ? ? "name": "xelatex",
? ? ? ? ? ? "command": "xelatex",
? ? ? ? ? ? "args": [
? ? ? ? ? ? ? ? "-synctex=1",
? ? ? ? ? ? ? ? "-interaction=nonstopmode",
? ? ? ? ? ? ? ? "-file-line-error",
? ? ? ? ? ? ? ? "-pdf",
? ? ? ? ? ? ? ? "%DOCFILE%"
? ? ? ? ? ? ]
? ? ? ? },
? ? ? ? {
? ? ? ? ? ? "name": "pdflatex",
? ? ? ? ? ? "command": "pdflatex",
? ? ? ? ? ? "args": [
? ? ? ? ? ? ? ? "-synctex=1",
? ? ? ? ? ? ? ? "-interaction=nonstopmode",
? ? ? ? ? ? ? ? "-file-line-error",
? ? ? ? ? ? ? ? "%DOCFILE%"
? ? ? ? ? ? ]
? ? ? ? },
? ? ? ? {
? ? ? ? ? ? "name": "bibtex",
? ? ? ? ? ? "command": "bibtex",
? ? ? ? ? ? "args": [
? ? ? ? ? ? ? ? "%DOCFILE%"
? ? ? ? ? ? ]
? ? ? ? }
? ? ],
? ? "latex-workshop.view.pdf.viewer": "tab",
}
3. Demo測(cè)試[3]
圖示代碼來自:一個(gè)簡(jiǎn)單的LaTex例子