使用 --halt-on-error 而不是 --interaction=nonstopmode 运行 vscode 扩展 Latex-workshop
我使用 vscode
和 latex-workshop
扩展,编译 tikz
图形时编译有时会挂起。
常见问题解答 在这种情况下建议:
当构建导致 TikZ 或其他高级软件包无限循环时,请在您的配方中将 -interaction=nonstopmode 替换为 -halt-on-error。
但我该怎么做呢?食谱不在 settings.json
中,而是在 ~/.vscode/extensions/james-yu.latex-workshop-8.23.0/package.json
中,我不知道我不认为我应该直接编辑它吗?
我应该在 settings.json
中放入什么来更改 latexmk
工具(如果我理解正确的话,它是由 latexmk
配方调用的,请参阅< a href="https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#latex-recipes" rel="nofollow noreferrer">此处) --发生错误时停止
?
I'm using vscode
with the latex-workshop
extension, and the compilation sometimes hangs when compiling tikz
graphics.
The FAQ recommends in this case:
When builds result in an infinite loop with TikZ or other advanced packages, please replace -interaction=nonstopmode with -halt-on-error in your recipe.
But how do I do this? The recipes are not in settings.json
but in ~/.vscode/extensions/james-yu.latex-workshop-8.23.0/package.json
, and I don't think I'm supposed to edit that directly?
What should I put in settings.json
to change say the latexmk
tool (which is called by the latexmk
recipe if I understand correctly, see here) to --halt-on-error
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该选项可以从settings.json中的设置进行修改:
或者从VSCode设置中修改,如下图所示
The option can be modified from the setting in the settings.json:
Or from the VSCode settings as can be seen in the picture below