LyXLaTeX Error: File "titlesec.sty" not found

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Rafael
Posts: 3
Joined: Sat Oct 11, 2014 2:12 am

LaTeX Error: File "titlesec.sty" not found

Post by Rafael »

Hello,

I have a problem when I want to view my document with Lyx (ctrl+r). I get the Error

"LaTeX Error: File "titlesec.sty" not found"

with the description:

"(cannot \read from terminal in nonstop modes)"

I have the Lyx 2.1.2. Do you have a solution for this problem? I read that this error means that some package is missing. But I don't know what package and how to install this missing package if this is the case.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: LaTeX Error: File "titlesec.sty" not found

Post by Johannes_B »

The package missing is titlesec. You can install it using the MikTeX package manager. You can find it somewhere in your start menu.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Rafael
Posts: 3
Joined: Sat Oct 11, 2014 2:12 am

Re: LaTeX Error: File "titlesec.sty" not found

Post by Rafael »

Well problem solved. I reinstalled MikTeX and installed the full MikTeX package (i just had the basic package). Took like 10 years to update everything. After that just opened a document with LyX and after reconfiguration everything worked.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: LaTeX Error: File "titlesec.sty" not found

Post by Stefan Kottwitz »

Hi Rafael,

welcome to the forum!

A complete installation is a good choice. Less headaches later. :) I would have chosen TeX Live 2014 though.

Stefan
LaTeX.org admin
Rafael
Posts: 3
Joined: Sat Oct 11, 2014 2:12 am

Re: LaTeX Error: File "titlesec.sty" not found

Post by Rafael »

Well LyX was recommended by a friend of mine because it resembles Microsoft Word and isn't that cryptic like LaTeX. But I've never heard of TeX Live 2014.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

LaTeX Error: File "titlesec.sty" not found

Post by Johannes_B »

LyX can be quite tricky. One of the developers stated a few weeks ago, that LyX is a tool for people with basic knowledge of LaTeX. So you might want to have a look at a LaTeX-introduction.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

LaTeX Error: File "titlesec.sty" not found

Post by scottkosty »

Johannes_B wrote:LyX can be quite tricky. One of the developers stated a few weeks ago, that LyX is a tool for people with basic knowledge of LaTeX. So you might want to have a look at a LaTeX-introduction.
Yes, I agree that it is useful to have as much knowledge about using LaTeX as possible when using LyX. Sooner or later you will run into a LaTeX error and you will need to know LaTeX at least to interpret it and understand how to fix it. Many think that LyX is a tool for *only* people with little knowledge of LaTeX. I think it is an unfortunate point of view. It is all a matter of preferences. I like delegating a lot of the LaTeX work to LyX and only stepping in when I need to. But I needed to learn a lot of LaTeX to know exactly what I'm delegating to LyX.
Post Reply