Overleaf
在国内经常会出现连接中断问题,尤其是页数超过10
页之后,隔半分钟就得看一次绿色logo,这对专注模式肝论文的打击太大了,所以使用本地环境编译LaTex是很有必要的
texlive.iso
install-tl-advanced.bat
Latex Workshop
,并安装json
文件打开json
文件中{
// Latex workshop
"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"%DOC%"
]
},
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xelatex",
"tools": [
"xelatex"
]
},
{
"name": "latexmk",
"tools": [
"latexmk"
]
},
{
"name": "pdflatex -> bibtex -> pdflatex*2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
}
],
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.latex.clean.fileTypes": [
"*.aux",
"*.bbl",
"*.blg",
"*.idx",
"*.ind",
"*.lof",
"*.lot",
"*.out",
"*.toc",
"*.acn",
"*.acr",
"*.alg",
"*.glg",
"*.glo",
"*.gls",
"*.ist",
"*.fls",
"*.log",
"*.fdb_latexmk"
]
}
tex
文件,左侧栏会有TEX
的图标出现TEX
,选择Build
,从recipe
中选一个方案编译就可以了View LaTex PDF
即可在侧边框查看
LaTex Workshop
插件已经集成了正向搜索和反向搜索,并不需要安装那些乱七八糟的
Tex
文档中,选中一个位置,快捷键ctrl + alt + j
,对应的位置会在pdf
文档中有红色的标记pdf
文档中,按ctrl + 鼠标左键
,指哪打哪哔哩哔哩:https://www.bilibili.com/video/av95317601
https://www.yifer.net/latex/latex_in_vscode.html