Latex-workshop: latex-workshop.latex.outDir does not work xelatex

Created on 15 Aug 2019  路  2Comments  路  Source: James-Yu/LaTeX-Workshop

This setting "latex-workshop.latex.outDir": "%DIR%/.tmp" does not work with % !TEX TS-program = xelatex but does work with pdflatex. Any ideas?

question

Most helpful comment

@jlelong Thanks! This worked!

    "latex-workshop.latex.outDir": "%DIR%/.tmp",
    "latex-workshop.latex.magic.args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "--output-directory=%OUTDIR%",
        "%DOC%"
      ],

All 2 comments

Have a look at the wiki to know how to pass options to a magic command. You need to specify --output-directory=%OUTDIR%. Alternatively, you can define a xelatex recipe.

@jlelong Thanks! This worked!

    "latex-workshop.latex.outDir": "%DIR%/.tmp",
    "latex-workshop.latex.magic.args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "--output-directory=%OUTDIR%",
        "%DOC%"
      ],
Was this page helpful?
0 / 5 - 0 ratings