Merge pull request #1 from VoidShooter/master

支持在模板VScode编辑器中进行编辑、编译;增加使用VScode的设置方法及配置文件
This commit is contained in:
jiandahao 2019-05-20 17:18:17 +08:00 committed by GitHub
commit 263014eb77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 94 additions and 1 deletions

View File

@ -17,4 +17,7 @@ LaTeX 论文写作填坑/拓展指南 & 模板简介可参考Helper_manual/Helpe
- 打印中文信息的命令更改为\makeChineseInfo,在盲审模式下不显示中英文个人信息。
- 修改英文信息中下划线的长度。
## 使用VScode编辑论文模板方法
- 下载安装VScode搜索安装LaTeX WorkShop插件
- 选择“文件-首选项-设置”进入设置界面搜索“setting.json”打开添加项目中“setting.json”文件内容
- 使用VScode时选择LATEX-COMMANDS-Build LaTeX project-RecipeBIT_thesis保存文档后编辑器会根据设置自动编译更新。

90
settings.json Normal file
View File

@ -0,0 +1,90 @@
{
"latex-workshop.latex.recipes": [{
"name": "xelatex",
"tools": [
"xelatex"
]
}, {
"name": "latexmk",
"tools": [
"latexmk"
]
},
{
"name": "pdflatex -> bibtex -> pdflatex*2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
}
{
"name": "BIT_thesis",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
}
],
"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.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"
],
}