zoukankan      html  css  js  c++  java
  • 通过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".
  • 相关阅读:
    .net 下webservice 的WebMethod的属性
    做一个项目,平时都用到哪些工具提高效率(James Li)
    Android之解析Android Map地图返回的Json数据
    歌词文件LRC的解析,可用于音乐播放器实现歌词同步操作
    Android之创建程序快捷方式
    Android之Bitmap使用心得(持续更新)
    Socket编程之旅(服务器与客户端沟通)
    Android之应用自定义相机拍照并且对拍照文字(英文)进行识别
    android之App widget实际应用Demo
    Android之创建实时文件夹
  • 原文地址:https://www.cnblogs.com/rrrrraulista/p/12492869.html
Copyright © 2011-2022 走看看