如何将软件包安装到 TeXstudio?

DBi*_*nJP 8 latex 16.04

如何将软件包安装到 TeXstudio?我尝试编译一个 tex 文件,但 TeXstudio 没有找到 placeins.sty、sectsty.sty 等。

我应该遵循本手册安装指南,还是有更快的方法?我应该使用tlmgr吗?

这个尝试的解决方案不起作用:

$ tlmgr update --all
(running on Debian, switching to user mode!)
cannot setup TLPDB in /home/sony/texmf at /usr/bin/tlmgr line 5604.
Run Code Online (Sandbox Code Playgroud)

我可能已经找到了答案,但我遇到了同样的错误:

$ tlmgr info placeins
(running on Debian, switching to user mode!)
cannot setup TLPDB in /home/sony/texmf at /usr/bin/tlmgr line 5604.
Run Code Online (Sandbox Code Playgroud)

我目前正在阅读这个答案作为回应。我对此输出感到担忧:

$ tlmgr init-usertree
(running on Debian, switching to user mode!)
tlmgr: action init-usertree returned a warning.
Run Code Online (Sandbox Code Playgroud)

为什么它只是说“有一个警告”而不给我更多信息?...

试图找到我需要安装的第一个包来编译我的论文,我遇到了以下问题:

$ tlmgr info placeins
(running on Debian, switching to user mode!)
/usr/bin/tlmgr: Initialization failed (in setup_unix_one):
/usr/bin/tlmgr: could not find a usable xzdec.
/usr/bin/tlmgr: Please install xzdec and try again.
tlmgr: Couldn't set up the necessary programs.
Installation of packages is not supported.
Please report to texlive@tug.org.
tlmgr: Continuing anyway ...
Use of uninitialized value $r in split at /usr/bin/tlmgr line 3882.
tlmgr: Cannot find main repository, you have to tag one as main!
Run Code Online (Sandbox Code Playgroud)

我应该忽略这个 xzdec 问题吗?... 似乎 TeXstudio Ubuntu 软件不完整,有这么多问题;我想我在不到两周前安装了 16.04,并且在出现提示时已经安装了所有更新。

Martin Drozdik 的类似问题的答案似乎可以解决我的问题。然而,这些答案是三年前的:信息仍然正确吗?

需要明确的是,我的问题很简单:如何在 Ubuntu 16.04 中为 TeXstudio 2.10.8 安装软件包?

N0r*_*ert 7

我认为您应该只安装这些软件包:

  1. texstudio 适用于 TeXstudio 2.10.8
  2. texlive-latex-extra对于placeins.stysectsty.sty

sudo apt-get install texstudio texlive-latex-extra
Run Code Online (Sandbox Code Playgroud)

人们总是可以通过搜索找到所需的软件包https://packages.ubuntu.com使用搜索包的内容部分-见例子placeins.sty

  • 这可能是一个很好的一次性答案,但大多数看到这个的人都想要一个更广泛的答案,即如何安装软件包,而不仅仅是问题中的特定软件包。 (4认同)