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

10,834

Solution 1

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

Solution 2

You can simply install the required package texlive-titlesec via yum (if you are using the RPM packet manager):

yum install texlive-titlesec

Solution 3

I did need to install the texlive-full package. It have the titlesec.sty file. The textlive package does not contains the file.

Share:
10,834
yucer
Author by

yucer

I love all kind of computer programming and algorithms. I like software architecture and code generation.

Updated on June 05, 2022

Comments

  • yucer
    yucer about 2 years

    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.

  • Thoughtful Dragon
    Thoughtful Dragon over 8 years
    Which distro/OS are you using?
  • yucer
    yucer almost 8 years
    ubuntu 15.10 at that time
  • Git.Coach
    Git.Coach over 3 years
    Package is named differently on pacman: $ sudo pacman -S texlive-formatsextra