Closed XinzeZhang closed 2 years ago
I cannot reproduce this bug. Can you please provide a minimal working example?
Clone the repository in https://github.com/XinzeZhang/HUST-PhD-Thesis-Latex, build the project with the recipe as:
"latex-workshop.latex.recipes": [
{
"name": "xelatex -> bibtex -> xelatex*2",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
}
],
where the xelatex
tool and bibtex
are defined as:
{
"name": "xelatex",
"command": "latexmk",
"args": [
"-xelatex",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
],
"env": {}
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
],
"env": {}
},
Please make it minimal. Thanks.
Sorry, I will create an example and reply latter.
Thanks for the reply. The problem has been solved by changing the definition of 'xelatex' to the following:
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
],
"env": {}
}
But the reason why using latexmk -xelatex
would cause the auto-refresh and auto-clean to fail has not been figured out by me.
This problem occurred in my all projects using xelatex
to compile Chinese-language-based projects at the last version ‘8.29.0’ of the extension.
My tex version is Tex live 2021.
Good to know you solved the problem. I also have several projects built with latexmk and xelatex, and I cannot reproduce your issue.
Preliminary questions [Required]
I found that the pdf tab does not automatically get refreshed upon finishing building project. I have disabled all the other extensions except Latex Workshop, still, see this issue.
This project is successfully built, and I have opened the pdf tab. If I click the
refresh all viewers
, the pdf tab would be refreshed. I peek into the developer tools, and the outputs of the extension log are as follows:There are some warnings when I open the pdf tab with ‘view Latex pdf’:
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