GeneralKeep getting error `.cls' not found. "Enter File name"

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
emilybrick
Posts: 1
Joined: Sat May 24, 2014 11:54 pm

Keep getting error `.cls' not found. "Enter File name"

Post by emilybrick »

I have been using Latex for a while and all of a sudden an error is coming up when I try to compile any of my Latex stuff. This is the error that comes up:

Code: Select all

! LaTeX Error: File `.cls' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)

Enter file name: 
I don't know what file they are looking for. I am currently trying to create a CV, these are my first few lines:

Code: Select all

\documentclass[10pt,a4paper]{}
\include{structure} 

\hyphenation{Some-long-word} 

\begin{document} 
I don't think it's something to do with this though, since other .tex I have is not compiling either.

Any ideas?

Thanks :D
Last edited by Stefan Kottwitz on Sun May 25, 2014 5:14 pm, edited 1 time in total.

Recommended reading 2024:

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

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

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Keep getting error `.cls' not found. "Enter File name"

Post by mas »

\documentclass[10pt,a4paper]{}
There is your error :-) Use one of the document classes like article, report or book like

Code: Select all

\documentclass[10pt,a4paper]{article}

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Keep getting error `.cls' not found. "Enter File name"

Post by Stefan Kottwitz »

mas already provided the solution.

Just an additional advice: Instead of \include, use \input in the preamble, i.e. before \begin{document}. That's because \include is for including pieces of the document body, such as chapters, it even makes a page break before the includes file comes.

Stefan
LaTeX.org admin
Post Reply