diff --git a/README.md b/README.md index f43b449..d738916 100644 --- a/README.md +++ b/README.md @@ -17,4 +17,7 @@ LaTeX 论文写作填坑/拓展指南 & 模板简介可参考Helper_manual/Helpe - 打印中文信息的命令更改为\makeChineseInfo,在盲审模式下不显示中英文个人信息。 - 修改英文信息中下划线的长度。 - +## 使用VScode编辑论文模板方法 +- 下载安装VScode,搜索安装LaTeX WorkShop插件 +- 选择“文件-首选项-设置”进入设置界面,搜索“setting.json”打开,添加项目中“setting.json”文件内容 +- 使用VScode时,选择LATEX-COMMANDS-Build LaTeX project-Recipe:BIT_thesis,保存文档后编辑器会根据设置自动编译更新。 diff --git a/settings.json b/settings.json new file mode 100644 index 0000000..fce2e73 --- /dev/null +++ b/settings.json @@ -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" + ], + } \ No newline at end of file