14

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.

Jongware
  • 22,200
  • 8
  • 54
  • 100
yucer
  • 4,431
  • 3
  • 34
  • 42

4 Answers4

15

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
Justin Solms
  • 695
  • 1
  • 6
  • 14
4

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

yum install texlive-titlesec
klaus
  • 754
  • 8
  • 28
2

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

yucer
  • 4,431
  • 3
  • 34
  • 42
0

You need to reinstall MikTeX and install the full MikTeX package (not just the basic package). Took like 10 years to update everything. After that just open a document with LyX and after reconfiguration everything should work.

SANA Abdoul Aziz
  • 423
  • 4
  • 14