I am totally new to latex. I have downloaded Miktex (for Windows) and installed it to the root directory of my local hard drive.

I have a predefined latex template. When I try to compile this template (no matter using the command line or TexStudio, I get the following error:

Line 8: File 'default.sty' not found. \usepackage

The content of this line in the .tex file is \usepackage[english]{babel}

Asking Google for answers was not helpful. Any suggestions how to solve this problem?

  • 1
    You probably have a \usepackage{default} that points to a non existent package.
    – egreg
    Dec 1, 2013 at 0:10
  • Thank you I had never thought that the solution was that easy. Sometimes we are just blind for the simple things. You can make an answer from this.
    – Blackbam
    Dec 1, 2013 at 0:26

2 Answers 2


I've never heard about a default.sty file. It's a risk one incurs in when using templates found somewhere, which are customized in various ways and maybe refer to personal style files that are not available to the general public.

Judging from the error message, you have a line


that you should remove.


There is a wrong beamer template in the current (and older versions) of Kile. It should indeed be \usetheme{default}. Maybe there is a similar error in other LaTeX GUIs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .