{
    "latex-workshop.showContextMenu": true,
    "latex-workshop.latex.autoBuild.run": "onSave",
    "latex-workshop.latex.outDir": "%DIR%",
    "latex-workshop.latex.recipes": [
        {
            "name": "latexmk",
            "tools": [
                "latexmk"
            ]
        },
        {
            "name": "pdflatex",
            "tools": [
                "pdflatex"
            ]
        },
        {
            "name": "biber",
            "tools": [
                "biber"
            ]
        },
        {
            "name": "pdflatex ➞ biber ➞ 2× pdflatex",
            "tools": [
                "pdflatex",
                "biber",
                "pdflatex",
                "pdflatex"
            ]
        },
        {
            "name": "Optimize PDF",
            "tools": [
                "gs opt printer"
            ]
        }
    ],
    "latex-workshop.latex.tools": [
        {
            "name": "latexmk",
            "command": "latexmk",
            "args": [
                "-pdf",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-synctex=1",
                "-aux-directory=%OUTDIR%/.aux",
                "-output-directory=%OUTDIR%",
                "%DOC_EXT%"
            ],
            "env": {
                "TEXINPUTS": "%WORKSPACE_FOLDER%/src/"
            }
        },
        {
            "name": "pdflatex",
            "command": "pdflatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-aux-directory=%OUTDIR%/.aux",
                "-output-directory=%OUTDIR%",
                "%DOC%"
            ],
            "env": {
                "TEXINPUTS": "%WORKSPACE_FOLDER%/src/"
            }
        },
        {
            "name": "biber",
            "command": "biber",
            "args": [
                "-output-directory=%OUTDIR%/.aux",
                "%DOCFILE%"
            ]
        },
        {
            "name": "bibtex",
            "command": "bibtex",
            "args": [
                "-include-directory=.aux",
                "%OUTDIR%/.aux/%DOCFILE%"
            ]
        },
        {
            "name": "gs opt printer",
            "command": "mgs",
            "args": [
                "-sDEVICE=pdfwrite",
                "-dPDFSETTINGS=/printer",
                "-dPrinted=false",
                "-f%OUTDIR%/%DOCFILE%.pdf",
                "-o%OUTDIR%/%DOCFILE%_optimized.pdf"
            ]
        }
    ]
}