Closed Fifate closed 3 years ago
You have to define xelatex
in latex-workshop.latex.tools
:
"latex-workshop.latex.tools": [
{
"name": "latex",
"command": "latex",
"args": [
"-synctex=1",
"-file-line-error",
"-interaction=nonstopmode",
"%DOC%"
]
},
{
"name": "lualatex",
"command": "lualatex",
"args": [
"-synctex=1",
"-file-line-error",
"-interaction=nonstopmode",
"%DOC%"
]
}
]
See https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#latex-recipes
Preliminary questions [Required]
Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue. [Required]
You still see this issue?: Yes
Make sure to visit the wiki FAQ before filling an issue.
You visited the wiki?: Yes
If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.
You can compile a TeX document manually?: Yes
Describe the bug [Required]
I can't build main.tex with xelatex. It show me the error message "Skipping undefined tool "xelatex" in recipe "xelatex -> bibtex -> xelatex". And I have add xelatex path onto env $Path and can't normal execute xelatex with wins cmd.
To Reproduce
Steps to reproduce the behavior:
build > Recipe: exlatex
and other options within exlatexExpected behavior
I hope I
Logs [Required]
Please paste the whole log messages here, not parts of ones. The log should start with
Initializing LaTeX Workshop
. It is very important to identify problems.LaTeX Workshop Output [Required]
Developer Tools Console [Required]
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop [Required]
Please write exact version numbers. Please don't write
latest
instead of exact numbers.Additional questions
Are you using VSCodium?
No
Are you using LaTeX Workshop with VS Code Remote?
No
Additional context
I will try reinstall vs-code.