1、安装latex插件
extension: latex workshop——>install
重启vscode生效
2、配置:
打开settings.json
方法一:搜索输入recipe
方法二:Ctrl+shift+P,输入preferences:open settings
其实就是选择编译方案,在最前面的是最先选择的编译方案
(粘贴进去保存)
{"latex-workshop.latex.recipes": [
{
"name": "pdflatex", //放在最前面为默认编译方案
"tools": [
"pdflatex"
]
},
{
"name": "pdflatex -> bibtex -> pdflatex*2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
}
],
"latex-workshop.latex.tools": [
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
},
{
"name": "texify",
"command": "texify",
"args": [
"--synctex",
"--pdf",
"--tex-option=\"-interaction=nonstopmode\"",
"--tex-option=\"-file-line-error\"",
"%DOC%.tex"
]
},
{
// 编译工具和命令
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}
],
"latex-workshop.view.pdf.viewer": "tab"
}
新建一个folder, 新建.tex文件
测试一下
\documentclass{article}
\begin{document}
\section{111}
ddd
\end{document}
编译过程
就可以看到结果了
然后直接用IEEE的模板来试一下吧
使用方法可以参考https://blog.csdn.net/winycg/article/details/80890600
error记录
(1)
就是说bibtex是用来管理参考文献的,没有引用参考文献当然会报错。
未完待续……