Skip to content

Bug in LaTeX devcontainer template: latexEngine option for xetex produces invalid latexmk argument #51

Description

@julian-poidevin

Hello,

I found a bug in the LaTeX devcontainer template at templates/src/latex/.devcontainer.json.

The latex-workshop.latex.tools section uses:

"-${templateOption:latexEngine}"

However, the option value for the xetex engine is -xelatex, not xetex. As a result, the generated LaTeX Workshop config passes -xetex to latexmk, which fails with:

Latexmk: -xetex unknown option
Rc files read:
  NONE

Latexmk: Bad options specified
Use
   latexmk -help
to get usage information

Expected behavior:

The xetex engine should map to the correct latexmk argument -xelatex, or the template should use a matching value for the latexEngine option.

Steps to reproduce:

  1. Use the LaTeX devcontainer template.
  2. Select the xetex engine option.
  3. Build the project with LaTeX Workshop.
  4. The build fails with the error above.

Thanks!

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions