vscode
note :
正向搜索快捷键 ctrl+Alt+J
反向搜索快捷键: 双击页面
相关资源
latex表格生成器
latex数学符号
latex伪代码
latex模板
Code
latex 基础设置
"latex-workshop.latex.recipes": [
{
"name": "latexmk 🔃",
"tools": [
"latexmk"
]
},
{
"name": "latexmk (latexmkrc)",
"tools": [
"latexmk_rconly"
]
},
{
"name": "latexmk (lualatex)",
"tools": [
"lualatexmk"
]
},
{
"name": "pdflatex ➞ bibtex ➞ pdflatex × 2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
},
{
"name": "Compile Rnw files",
"tools": [
"rnw2tex",
"latexmk"
]
},
{
"name": "Compile Jnw files",
"tools": [
"jnw2tex",
"latexmk"
]
}
],
默认pdf阅读器
将默认PDF浏览器选项设为内置阅读器(tab)或默认浏览器(browser):
"latex-workshop.view.pdf.viewer": "tab";
背景设置代码
"background.useFront": true,
"background.useDefault": false,
"background.customImages": [
"file:///D:/VSCode/background/climate.jpg"
],
"background.styles": [
{
"content":"''",
"pointer-events":"none",
"position":"absolute",
"top": "0",
"right": "0",
"width":"100%",
"height":"100%",
"z-index":"99999",
"background.repeat":"no-repeat",
"opacity":0.1
}
],
正反向设置代码
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.viewer.command": "D:/VSCode/sumatraPDF/SumatraPDF.exe",
"latex-workshop.view.pdf.external.viewer.args": [
"-forward-search",
"%TEX%",
"%LINE%",
"-reuse-instance",
"-inverse-search",
"\"D:/VSCode/Microsoft VS Code/Code.exe\" \"D:/VSCode/Microsoft VS Code/resources/app/out/cli.js\" -gr \"%f\":\"%l\"",
"%PDF%"
],
"latex-workshop.view.pdf.external.synctex.command": "D:/VSCode/sumatraPDF/SumatraPDF.exe",
"latex-workshop.view.pdf.external.synctex.args": [
"-forward-search",
"%TEX%",
"%LINE%",
"-reuse-instance",
"-inverse-search",
"code \"D:/VSCode/Microsoft VS Code/resources/app/out/cli.js\" -gr \"%f\":\"%l\"",
"%PDF%",
],
SumatraPDF
打开 SumatraPDF,进入设置->高级选项,设置反向搜索命令行,同样注意文件路径:
InverseSearchCmdLine = "D:、VSCode\Microsoft VS Code\Code.exe" "D:\VSCode\Microsoft VS Code\resources\app\out\cli.js" -g "%f":%l