LaTex & VS Code

LaTex & VS Code

VS Code 安装插件 LaTeX Workshop

.vscode/settings.json

{
  "editor.fontSize": 18,
  "window.zoomLevel": 0,
  // 选中的字体前景和背景颜色设定
  "workbench.colorCustomizations": {
    //"editor.selectionBackground": "#007947",
    //"editor.selectionHighlightBackground": "#C52930"
    // Totally Transparent
    "editor.selectionHighlightBackground": "#ffffff00",
    //"editor.findMatchHighlightBackground": "#ffffff00",
    // Borders
    "editor.findMatchBorder": "#ffff00",
    "editor.findMatchHighlightBorder": "#C52930",
    //"editor.selectionHighlightBorder": "#ffffff",
    //"editor.selectionHighlightBorder": "#007947",
    "editor.selectionHighlightBorder": "#00ff00",
    //"editor.lineHighlightBorder": "#272727",
    // Selection
    "editor.selectionBackground": "#007947cc",
    "editor.wordHighlightBackground": "#771835",
    // Misc
    //"editorCursor.foreground": "#00ff00",
    //"editor.lineHighlightBackground": "#181818",
    //"editor.lineHighlightBackground": "#00000060",
    "editor.findMatchBackground": "#000000",
    // Debugger
    "statusBar.debuggingBackground": "#410d18",
    "statusBar.debuggingForeground": "#dddddd"
  },
  // tab转换为空格
  "editor.detectIndentation": false, //关闭检测第一个tab后面就tab
  //"editor.renderControlCharacters": true, //制表符显示->
  //"editor.renderWhitespace": "all",     //空格显示...
  "editor.tabSize": 2, //tab为两个空格
  "editor.insertSpaces": true, //转为空格
  "editor.cursorSmoothCaretAnimation": true,
      // Latex workshop
      "latex-workshop.latex.tools": [
        {
          "name": "latexmk",
          "command": "latexmk",
          "args": [
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "-pdf",
          "%DOC%"
          ]
        },
        {
          "name": "xelatex",
          "command": "xelatex",
          "args": [
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "%DOC%"
            ]
        },          
        {
          "name": "pdflatex",
          "command": "pdflatex",
          "args": [
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "%DOC%"
          ]
        },
        {
          "name": "bibtex",
          "command": "bibtex",
          "args": [
          "%DOCFILE%"
          ]
        }
      ],
  "latex-workshop.latex.recipes": [
        {
          "name": "xelatex",
          "tools": [
          "xelatex"
                      ]
                },
        {
          "name": "latexmk",
          "tools": [
          "latexmk"
                      ]
        },

        {
          "name": "pdflatex -> bibtex -> pdflatex*2",
          "tools": [
          "pdflatex",
          "bibtex",
          "pdflatex",
          "pdflatex"
                      ]
        }
      ],
  "latex-workshop.view.pdf.viewer": "tab",  
  "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"
    ]
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值