当前位置:网站首页>VSCode Latex Workshop 设置 XeLatex 编译
VSCode Latex Workshop 设置 XeLatex 编译
2022-07-25 09:27:00 【Haulyn5】
前言
VSCode + LatexWorkshop 是非常方便的组合,而对于中文文档,pdfLatex 引擎的支持很差,很多时候需要使用 XeLatex 引擎编译,但是总是莫名其妙各种报错。用下面的 magic 语句也无济于事。
% !TEX program = xelatex本篇介绍通过对插件设置修改来设置默认使用 XeLatex 编译的方法。
参考资料:
Enable xelatex in Latex Workshops for Visual Studio Code - Stack Overflow
解决方案
在 Extention 列表中找到 Latex Workshop 插件,点选齿轮状图标,打开扩展设置(Extension Settings)。

在新出现的页面中的搜索栏中输入 “ tools”(注意有空格,连在一起是搜索不出来的),找到第一个点击 “Edit in settings.json”

将 "args" 部分的内容按照图片的内容修改,这里我为了备份所以只是注释没有删除,其实效果是一样的。

文字版的内容如下,便于复制
"name": "latexmk",
"command": "latexmk",
// "args": [
// "-synctex=1",
// "-interaction=nonstopmode",
// "-file-line-error",
// "-pdf",
// "-outdir=%OUTDIR%",
// "%DOC%"
// ],
"args": [
"-xelatex",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
],
"env": {}Ctrl+s 保存后,关闭整个 VS Code 窗口,重新启动 VSCode 再点击右上角的绿色运行按钮,这是应该就替换为使用 XeLatex 编译了。
边栏推荐
- 广度优先遍历(图和二叉树的层序遍历相关问题)
- Use of dictionary tree
- Subtotal of rospy odometry sinkhole
- Is binary cross entropy really suitable for multi label classification?
- JDBC总结
- UE4 外部打开exe文件
- shortest-unsorted-continuous-subarray
- Rest使用与原理
- 严重 [main] org.apache.catalina.util.LifecycleBase.handleSubClassException 初始化组件
- Ubuntu20.04系统下安装MySQL数据库5.7.29版本
猜你喜欢

史上最全面的UE4 文件操作,打开,读、写,增、删、改、查

nodejs版本升级或切换的常用方式

Debug篇快捷键入门

数据库MySQL详解

@Import,Conditional和@ImportResourse注解

Copy the old project into a web project

复现 SSL_Anti-spoofing, 使用 wav2vec 2.0 和数据增强的自动说话人认证的欺骗攻击与深度伪造检测

UE4 LoadingScreen动态加载启动动画

JS uses requestanimationframe to detect the FPS frame rate of the current animation in real time

mysql历史数据补充新数据
随机推荐
Advanced introduction to digital IC Design SOC
简易加法计算器
Reflection 反射
CCF 201503-4 network delay
字典树的使用
canal实现mysql数据同步
ES6 detailed explanation
[tensorflow2 installation] tensorflow2.3-cpu installation pit avoidance guide!!!
字符串切片的用法
message from server: “Host ‘xxx.xxx.xxx.xxx‘ is not allowed to connect to this MySQL server“
静态路由的配置(以华为eNSP为例)
Detailed explanation of MySQL database
Summary of most consistency problems
vscode插件开发
Is binary cross entropy really suitable for multi label classification?
Common methods of nodejs version upgrade or switching
JS uses requestanimationframe to detect the FPS frame rate of the current animation in real time
Round to the nearest
多数相合问题总结
关于slf4j log4j log4j2的jar包配合使用的那些事