准备工作
系统及软件准备
测试通过的系统及软件:
- Ubuntu 18/20 + texlive2023 + VScode
- Windows 10/11 + texlive2023 + VScode
相关系统和软件的安装这里不再赘述,需要的朋友自行搜索,这里主要讲一下VScode的配置,windows和ubuntu下配置方法应该一样,主要参考以下链接的内容
https://zhuanlan.zhihu.com/p/670790519
本文主要采用Latexmk的编译方式,其中latex workshop的setting.json参照链接中的12.07update内容,具体代码如下
"latex-workshop.latex.autoBuild.run": "onSave",
"latex-workshop.showContextMenu": true,
"latex-workshop.intellisense.package.enabled": true,
"latex-workshop.message.error.show": false,
"latex-workshop.message.warning.show": false,
"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"-outdir=%OUTDIR%",
"%DOCFILE%"
]
},
],
"latex-workshop.latex.recipes": [
{
"name": "LaTeXmk",
"tools": [
"latexmk"
]
},
],
"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"
],
"latex-workshop.latex.autoClean.run": "onFailed",
"latex-workshop.latex.recipe.default": "lastUsed",
"latex-workshop.view.pdf.internal.synctex.keybinding": "double-click",
"editor.wordWrap": "on",
关于setting.json的打开途径:Vscode主界面按F1
键,在打开的界面上输入json
,找到Preferences:Open User Settings (JSON)
打开,在花括号内编辑
其他Vscode插件自己酌情添加
字体设置
由于模板中提供了多种字体选择,在选择Adobe字体的时候,需要提前在系统中安装相关字体,这里提供字体的下载链接,自行下载安装(需要选择 为所有用户安装,Win11也有这个选项,但是我忘了具体步骤)
Adobe字体下载
https://cs.fit.edu/code/projects/ndworld/repository/revisions/12/raw/Resources/Fonts/AdobeSongStd-Light.otf
https://cs.fit.edu/code/projects/ndworld/repository/revisions/12/raw/Resources/Fonts/AdobeHeitiStd-Regular.otf
https://cs.fit.edu/code/projects/ndworld/repository/revisions/12/raw/Resources/Fonts/Adob