Mac下使用vscode设置latex

打印 上一主题 下一主题

主题 991|帖子 991|积分 2973

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
由于安装mactex默认的是pdftex,该表明器不支持中文所以必要xetex表明器
在settings.json的设置文件中必要加上下面这段代码设置文件
  1. {
  2.    "editor.mouseWheelZoom": true,
  3.     "latex-workshop.latex.tools": [
  4.         {
  5.             "name": "xelatex",
  6.             "command": "xelatex",
  7.             "args": [
  8.                 "-synctex=1",
  9.                 "-interaction=nonstopmode",
  10.                 "-file-line-error",
  11.                 "-pdf",
  12.                 "%DOCFILE%"
  13.             ]
  14.         },
  15.         {
  16.             "name": "pdflatex",
  17.             "command": "pdflatex",
  18.             "args": [
  19.                 "-synctex=1",
  20.                 "-interaction=nonstopmode",
  21.                 "-file-line-error",
  22.                 "%DOCFILE%"
  23.             ]
  24.         },
  25.         {
  26.             "name": "bibtex",
  27.             "command": "bibtex",
  28.             "args": [
  29.                 "%DOCFILE%"
  30.             ]
  31.         }
  32.     ],
  33.     "latex-workshop.latex.recipes": [
  34.         {
  35.             "name": "xelatex",
  36.             "tools": [
  37.                 "xelatex"
  38.             ],
  39.         },
  40.         {
  41.             "name": "pdflatex",
  42.             "tools": [
  43.                 "pdflatex"
  44.             ]
  45.         },
  46.         {
  47.             "name": "xe->bib->xe->xe",
  48.             "tools": [
  49.                 "xelatex",
  50.                 "bibtex",
  51.                 "xelatex",
  52.                 "xelatex"
  53.             ]
  54.         },
  55.         {
  56.             "name": "pdf->bib->pdf->pdf",
  57.             "tools": [
  58.                 "pdflatex",
  59.                 "bibtex",
  60.                 "pdflatex",
  61.                 "pdflatex"
  62.             ]
  63.         }
  64.     ],
  65. }
复制代码
该设置代码可以将pdftex转变为更为丰富的xetex。同时还有多种个性化设置
  1. {
  2.     "workbench.colorTheme": "Default Light Modern"
  3.     // 禁止自动编译
  4.     "latex-workshop.latex.autoBuild.run": "never",
  5.     // 编译后自动清理无用文件
  6.     "latex-workshop.latex.autoClean.run": "onBuilt",
  7.     "latex-workshop.latex.clean.subfolder.enabled": true,
  8.     // 自动使用上一次的编译器
  9.     "latex-workshop.latex.recipe.default": "lastUsed",
  10.     // 根据使用的包自动补全
  11.     "latex-workshop.intellisense.package.enabled": true,
  12.     // 不弹窗显示错误和告警信息
  13.     "latex-workshop.message.error.show": false,
  14.     "latex-workshop.message.warning.show": false,
  15. }
复制代码
如有别的个性化设置会连续更新。

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

风雨同行

金牌会员
这个人很懒什么都没写!
快速回复 返回顶部 返回列表