如何修复 LaTeX 错误 File `siunitx.sty' not found on Ubuntu

问题:

你想在 Ubuntu 上使用 latexpdflatex 编译你的 LaTeX 文件,但你看到类似这样的错误消息:

siunitx_error.txt
! LaTeX Error: File `siunitx.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

解决方案

install_texlive_science.sh
sudo apt -y install texlive-science

这将安装 siunitx.sty 以及许多其他 LaTeX 文件。


Check out similar posts by category: LaTeX