![安装 TeXstudio 和 TeX Live 后找不到发行版](https://linux22.com/image/347632/%E5%AE%89%E8%A3%85%20TeXstudio%20%E5%92%8C%20TeX%20Live%20%E5%90%8E%E6%89%BE%E4%B8%8D%E5%88%B0%E5%8F%91%E8%A1%8C%E7%89%88.png)
我首先安装了 TeXstudio,然后安装了 TeX Live-full,
但 TeXstudio 找不到任何发行版。
操作系统:Ubuntu 16.04 LTS
root@user1:latex -version
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Copyright 2015 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.17; using libpng 1.6.17
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.41.0
root@user1:tex -version
TeX 3.14159265 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Copyright 2015 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
我应该手动设置 TeXstudio 的“命令”配置吗?
有人说我应该将 PATH 设置为:
PATH=/usr/local/texlive/2016/bin/i386-linux:$PATH
/local/texlive
但我发现这个文件夹中没有。
答案1
根据您的截图,您安装了 TeX Live 2015,因此我认为您添加到路径变量中的目录“ /usr/local/texlive/2016/bin/i386-linux
”没有意义。
我的解决方案(对我有用)如下:
- 拨打
which latex
你的终端 - 复制其输出的路径,例如
/usr/local/texlive/2017/bin/x86_64-linux/
(不带尾随的“latex”),在你的TexStudio 配置路径。您应该选择Options > Configure TexStudio > Build > Commands ($PATH)
下图所示的选项。(请注意,要查看所有选项,您必须单击Show Advanced Options
左下角的框)
然后尝试构建你的 LaTeX 文件。尽情享受吧!