首先下载安装tex live
https://www.tug.org/texlive/
下载,安装,貌似从镜像站下载回快点,懒得搞,
不急就等着就好了(还是挺久的,最好晚上睡觉放那儿挂机安装)
安装好打开终端测试一下
tex -v
latex -v
xelatex -v
pdflatex -v
vscode安装latex workshop插件
搜一下第一个就是了
配置settings:
{
"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.latex.recipes": [
{
"name": "xelatex ->bibtex -> xelatex*2",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
},
{
"name": "xelatex",
"tools": [
"xelatex"
]
},
{
"name": "pdflatex",
"tools": [
"pdflatex"
]
}
],
"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",
"*.gz"
],
// "latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.latex.autoClean.run": "onBuilt",
"latex-workshop.latex.autoBuild.run": "never", //若不注释掉就每次手动ctrl+alt+b编译
// "window.zoomLevel": -1,
// "debug.console.fontSize": 12,
// "markdown.preview.fontSize": 12,
// "terminal.integrated.fontSize": 12,
// "editor.fontSize": 15,
// "editor.minimap.enabled": false,
// "editor.wordWrap": "on",
// "latex-workshop.message.update.show": false
}
然后加载模版就可以正式开始写论文了
附上电子科技大学毕业论文模板:
https://github.com/x-magus/ThesisUESTC
补充官方版:
https://github.com/shifujun/UESTCthesis
可以用git进行版本管理
.gitignore file for LyX and LaTeX projects
推荐一个在线表格生成器:
https://www.tablesgenerator.com/