Harukaのnote

Linuxやプログラミング,写真,旅行等の記録帳

Linux版VSCodeでupLaTeXの設定

settings.jsonを開いて以下のように記載します。
前にも書いたように"%DOC%"ではなく"%DOC%.tex"とするのが重要です。
ビルドが終わらなくなります。
以前の記事vscodeでlatex環境を整える際の謎の不具合 - HarukaのNote

settings.json
{
    "window.zoomLevel": 1,


    "latex-workshop.chktex.enabled": true,
    "latex-workshop.latex.tools": [
        {
            "name": "ptex2pdf (uplatex)",
            "command": "ptex2pdf",
            "args": [
                "-u",
                "-l",
                "-ot",
                "-kanji=utf8 -synctex=1 -interaction=nonstopmode",
                "%DOC%.tex"
            ]
        },
        {
            "name": "pbibtex",
            "command": "pbibtex",
            "args": [
                "-kanji=utf8",
                "%DOCFILE%"
            ]
        }
    ],
    "latex-workshop.latex.recipes": [
        {
            "name": "ptex2pdf (uplatex) *2",
            "tools": [
                "ptex2pdf (uplatex)",
                "ptex2pdf (uplatex)"
            ]
        },
        {
            "name": "ptex2pdf (uplatex) -> pbibtex -> ptex2pdf (uplatex) *2",
            "tools": [
                "ptex2pdf (uplatex)",
                "pbibtex",
                "ptex2pdf (uplatex)",
                "ptex2pdf (uplatex)"
            ]
        },
    ],
    "latex-workshop.synctex.afterBuild.enabled": true,
    "latex-workshop.view.pdf.viewer": "tab"
}