配置vscode 环境
在插件中查找安装LaTex Workshop.
使用ctrl+shift+p打开文件查询查找setting.json,复制粘贴以下设置:
"latex-workshop.latex.tools": [
{
"name":"xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}, {
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}, {
"name": "latexmk",
"command": "latexmk",
"args": [
"-xelatex",
"-synctex=1",
"-interaction=nonstopmode",
"%DOCFILE%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "latexmk",
"tools": [
"latexmk"
]
}
],
"latex-preview.command": "latexmk",
如果遇见编译问题显示:
kpathsea: Running mktexfmt xelatex.fmt
I can't find the format file 'xelatex.fmt'!
以管理员身份运行cmd,输入:
fmtutil-sys --all
针对{align*}报错的修改
将"$$$$"换为
\begin{equation}\nonumber
\begin{aligned}
\end{aligned}
\end{equation}