XeLaTeX 不适用于乳胶编辑器

XeLaTeX 不适用于乳胶编辑器

所以,我有这个 xelatex 版本:

XeTeX 3.14159265-2.6-0.999992 (TeX Live 2020)
kpathsea version 6.3.2
Copyright 2020 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 65.1; using 65.1
Compiled with zlib version 1.2.11; using 1.2.11
Compiled with FreeType2 version 2.10.1; using 2.10.1
Compiled with Graphite2 version 1.3.13; using 1.3.13
Compiled with HarfBuzz version 2.6.4; using 2.6.4
Compiled with libpng version 1.6.37; using 1.6.37
Compiled with poppler version 0.68.0
Compiled with fontconfig version 2.11.0; using 2.13.1

但是当我在 kile 或 texstudio 中使用 xelatex 编译器选项时,它不会生成 pdf,在 texstudio 中,日志屏幕显示:

Error: impossible to run command: xelatex -synctex=1 -interaciotn=nonstopmode "filename".tex

在 kile 中:

[XeLaTeX] Failed to start

我认为这不是 PATH 问题,因为该命令可以在任何目录中的终端中识别,并且我确保编辑 PATH 环境变量以添加在 /usr/local/texlive/2020/bin/x86_64-linux目录

编辑-1:互动*

答案1

解决此问题的一个简单方法是将菜单xelatex中的命令替换为。它看起来如下 Kile Build/usr/local/texlive/2020/bin/x86_64-linux/xelatex在此处输入图片描述

或者

为了使Kile(通过单击软件徽标启动)识别 texlive 2020 包的确切路径,请执行以下操作:

PATH将texlive 2020添加到/etc/login.defs文件。在文件中进行以下更改:

 ENV_SUPATH  PATH=/usr/local/texlive/2020/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

 ENV_PATH    PATH=/usr/local/texlive/2020/bin/x86_64-linux:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

相关内容