TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

while trying to read a file as PDF (pdflatex) I get this error:

LaTeX error: file 'ulem.sty' not found

I have searched far and wide on the web, but I can't figure out how to fix this.

Things I have already tried:

  • Reinstalling LyX
  • Tools -> reconfigure

Without any results unfortunatly.

Any help would be appreciated!

BTW: I am using MiKTex 2.9.

share|improve this question
Lyx does not install packages: that is down to your TeX distribution. Which one do you use? (MiKTeX or TeX Live are the common choices.) – Joseph Wright May 8 '13 at 11:55
I am using MiKTeX 2.9, I will update my question – Gutanoth May 8 '13 at 11:56
up vote 1 down vote accepted

You can obtain ulem.sty here: http://ctan.mackichan.com/macros/plain/contrib/misc/ulem.sty

If you put it into the catalogue (folder) with your files, it should be enough to compile your work.

share|improve this answer
Hmm well, I saved the file as "ulem.sty" then pasted it to 'C:\Program Files\MiKTeX 2.9\tex\latex\tools' After wich I reconfigured my Lyx with "tools" -> "Reconfigure" and then I restarted LyX. But the program still gives me the error :( – Gutanoth May 8 '13 at 12:06
@Gutanoth Please try put it in the folder with the file you are working on. It is a temporary solution, but should work. – Przemysław Scherwentke May 8 '13 at 12:09
Indeed this works! So there is no permanent solution for this problem? Like a package I could download to complete LyX? – Gutanoth May 8 '13 at 12:13
@Gutanoth Ihave this package in the following path: \MiKTeX 2.8\tex\latex\ltxmisc\ulem.sty So probably installing ltxmisc will solve the problem. – Przemysław Scherwentke May 8 '13 at 12:23
Expanding on @scottkosty's suggestion: apt-cache search ulem returns the texlive-generic-recommended package, and apt-cache policy texlive-generic-recommended shows the installation status. – user1717828 Feb 9 '15 at 16:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.