• 通过VS CODE+LaTeX 双向搜索机制 提高论文书写、排版效率


    VScode中(LaTeX)编译环境配置留档。

    • ctrl + shift + p ( ightrightarrows) Preferences :open settings(json)
    {
      "latex-workshop.showContextMenu":true,                //右键菜单
      "latex-workshop.intellisense.package.enabled": true,  //根据加载的包,自动完成命令或包  
      "latex-workshop.latex.autoBuild.run": "never",        //禁止保存文件时自动build  
      "latex-workshop.latex.recipes": [  
        {  
          "name": "xelatex",  
          "tools": [  
            "xelatex"  
          ]  
        }, 
        {  
          "name": "latexmk",  
          "tools": [  
            "latexmk"  
          ]  
        },  
        {  
          "name": "PDFlatex",  
          "tools": [  
            "pdflatex"  
          ]  
        },    
        {  
          "name": "xelatex -> bibtex -> xelatex",  
          "tools": [  
            "xelatex",  
            "bibtex",  
            "xelatex",  
          ]  
        },
        {  
          "name": "pdflatex ->žž bibtex ->žž pdflatex2",  
          "tools": [  
            "pdflatex",  
            "bibtex",  
            "pdflatex",  
            "pdflatex"  
          ]  
        }  
      ],  
      "latex-workshop.latex.tools":[  
        {  
          "name": "xelatex",  
          "command": "xelatex",  
          "args": [  
            "-synctex=1",  
            "-interaction=nonstopmode",  
            "-file-line-error",  
            "%DOC%"  
          ],  
          "env": {}  
          }, 
        {  
          "name": "latexmk",  
          "command": "latexmk",  
          "args": [  
            "-synctex=1",  
            "-interaction=nonstopmode",  
            "-file-line-error",  
            "-pdf",  
            "-outdir=%OUTDIR%",  
            "%DOC%"  
          ],  
          "env": {}  
          },  
          {  
          "name": "pdflatex",  
          "command": "pdflatex",  
          "args": [  
            "-synctex=1",  
            "-interaction=nonstopmode",  
            "-file-line-error",  
            "%DOC%"  
          ],  
          "env": {}  
          },   
          {  
          "name": "bibtex",  
          "command": "bibtex",  
          "args": [  
            "%DOCFILE%"  
          ],  
          "env": {}  
          }  
      ],  
      "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",  
        "*.nav",  
        "*.snm",  
        "*.synctex.gz"  
      ],  
       // 设置预览方式
       "latex-workshop.view.pdf.viewer":"external",
       "latex-workshop.view.pdf.ref.viewer":"external",
       // 设置外部PDF预览器
       "latex-workshop.view.pdf.external.viewer.command": "D:/SumatraPDF/SumatraPDF.exe",
       "latex-workshop.view.pdf.external.viewer.args": [
           "%PDF%"
       ],
       // 配置Syntex的正向搜索(这是官网的)
       "latex-workshop.view.pdf.external.synctex.command": "D:/SumatraPDF/SumatraPDF.exe",
       "latex-workshop.view.pdf.external.synctex.args": [
           "-forward-search",
           "%TEX%",
           "%LINE%",
           "-reuse-instance",
           "-inverse-search",
           "D:/Microsoft VS Code D:/Microsoft VS Code/resources/app/out/cli.js -r -g %f:%l",
           "%PDF%"
       ],
        "workbench.colorTheme": "Eva Dark",
    }
    
    • SumatraPDF端设置
    1. "EnableTeXEnhancements = true" in "SumatraPDF-settings.txt";
    2. "D:Program FilesMicrosoft VS CodeCode.exe" "D:Program FilesMicrosoft VS Code esourcesappoutcli.js" -g "%f":"%l".
  • 相关阅读:
    linux 修改文件夹颜色 终端颜色
    每日更新FadeTop背景为必应图片
    odoo 去除动作菜单的删除按钮
    crontab详解
    odoo 创建初始数据库 切换当前数据库
    python for else
    lfi phpinfo
    python __dict__
    iscsi 开机自动挂载
    HP SSD smart path
  • 原文地址:https://www.cnblogs.com/rrrrraulista/p/12492869.html
Copyright © 2020-2023  润新知