LaTeX Error with Sphinx: file `titlesec.sty' not found

yucer picture yucer · Jul 6, 2015 · Viewed 8.7k times · Source

While trying to generate the PDF documentation of a Sphinx project, I get this:

! LaTeX Error: File `titlesec.sty' not found.

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

Enter file name:

I have installed the textlive package.

Answer

Justin Solms picture Justin Solms · May 18, 2016

Actually you only need texlive-formats-extra to get 361 MB of archives, instead of 1,500 MB for texlive-full:

sudo apt install texlive-formats-extra