小编Chr*_*ens的帖子

修改 vscode 中的 settings.json 以在 Latex Workshop 中为 pdflatex 添加 shell 转义标志

我是 VSCode 的新手,我正在设置 LaTeX。我正在尝试编译一个使用 minted 的 .tex 文档,因此 pdflatex 需要 --shell-escape 标志。我正在尝试修改 settings.json 来做到这一点。

我尝试添加以下内容(在互联网上找到)

 {
    "latex-workshop.latex.tools": {
        "name": "pdflatex",
        "command": "pdflatex",
        "args": [
            "--shell-escape", 
            "-synctex=1",
            "-interaction=nonstopmode",
            "-file-line-error",
            "%DOC%"
        ]
    }
}
Run Code Online (Sandbox Code Playgroud)

但是它出现了一个错误:类型不正确。预期的“数组”。这甚至不会让我尝试使用乳胶车间进行构建。帮助将不胜感激。

json latex pdflatex visual-studio-code

4
推荐指数
1
解决办法
3892
查看次数

标签 统计

json ×1

latex ×1

pdflatex ×1

visual-studio-code ×1