GeneralOutput profile error: LaTeX Error: File `.cls' not found

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

Output profile error: LaTeX Error: File `.cls' not found

Post by edc »

I've just started using LaTex and I installed the proText system on my Windows machine. I've got MikTeX 2.7 and TeXnicCenter (Greengrass) as my editor.

For the first week of use, things were working fine and I was able to use the LaTeX to PDF output profile fine to create and modify two problem sets of mine. Then, when I tried it a few days ago, with my current file and those two past files, it stopped working. I got the following error message whenever I tried to build any of them:

! LaTeX Error: File `.cls' not found

I first uninstalled and reinstalled everything to see if that would help and it did not. Then I started reading up on output profiles and fiddled with a few things there (with the command line arguments to pass to BibTeX and MakeIndex), hoping that I could find some way for pdfTeX to find my files (or whatever it is that's supposed to find the files). I'm stumped now though. In between the period when it was working correctly and when it wasn't working correctly (it was only a week), I did not make any significant changes to my filesystem that I know of...

Anyways, help would be appreciated. Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Output profile error: LaTeX Error: File `.cls' not found

Post by localghost »

Seems to me like your using plain TeX instead of LaTeX. You have to compile your document with latex or (as in your case) pdflatex. Another source of error could be the wrong introduction of the document class. Do not use \documentstyle[...]{article}, but use \documentclass[...]{article}. The first one is LateX2.09 style. If all that doesn't help, provide a minimal working example (MWE).


Best regards and welcome aboard
Thorsten
edc
Posts: 11
Joined: Sat May 24, 2008 1:46 pm

Output profile error: LaTeX Error: File `.cls' not found

Post by edc »

Thanks for the welcome, Thorsten.

I think I'm using LaTeX and pdfLaTeX to compile my document. Here is what my tex file looks like:


\documentclass{}[12pt]{article}
\author{Edward Chien}
\title{Homework 7}

\begin{document}
\end{document}


And when I ask to build (and view) the current file in TeXnicCenter, this is what I get:


--------------------Output Profile: LaTeX => PDF--------------------
This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7)
entering extended mode
("C:/Documents and Settings/Ed/My Documents/CS 25/HW7.tex"
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
! LaTeX Error: File `.cls' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)
Enter File name:
! Emergency stop.
<read *>

1.1 \documentclass{}[12pt]
{article}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on HW7.log.

LaTeX-Result: 3 Error(s), 0 Warning(s), 0 Bad Box(es), 0 Page(s)


As you can see, it seems to state that it's using LaTeX2e and pdfTeX. Also, I've been using the documentclass command from the beginning, so I don't think it's that. Any other ideas?

Thank you,
Ed
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Output profile error: LaTeX Error: File `.cls' not found

Post by gmedina »

Here is the problem:

Code: Select all

\documentclass{}[12pt]{article}
Use

Code: Select all

\documentclass[12pt]{article}
Delete the extra pair of braces before [12pt].
1,1,2,3,5,8,13,21,34,55,89,144,233,...
edc
Posts: 11
Joined: Sat May 24, 2008 1:46 pm

Re: Output profile error

Post by edc »

Oh, whoops...I feel pretty foolish now...thanks for the help though, everybody.
abd
Posts: 1
Joined: Sat Sep 03, 2011 9:50 am

Re: Output profile error

Post by abd »

hi guys.I've got the same problem.
after 3 weeks which my texmaker was working well, suddenly i faced this problem.
i didn't do any thing wrong. also i checked your solutions but it didn't work. any helpful idea would be welcome. i don't know what should i do!! :|
cosmology1905
Posts: 2
Joined: Fri Aug 10, 2012 3:24 pm

Output profile error: LaTeX Error: File `.cls' not found

Post by cosmology1905 »

I have found the same error:

Code: Select all

! LaTeX Error: File `ws-ijmpd.cls' not found.
you have request document class 'ws-ijmpd'
but the document class provides 'epsfig'
The introduction of my document is:

Code: Select all

\documentclass{ws-ijmpd}
\begin{document}

I've tried \usepackage{epsfig}, but nothing happened.

Thanks.
Last edited by Stefan Kottwitz on Fri Aug 10, 2012 4:48 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10314
Joined: Mon Mar 10, 2008 9:44 pm

Output profile error: LaTeX Error: File `.cls' not found

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Is it the class from here: World Scientific LaTeX2e template?

Did you download it? How did you install it?
Can you post your file ws-ijmpd.cls as attachment here to a post?

Stefan
LaTeX.org admin
cosmology1905
Posts: 2
Joined: Fri Aug 10, 2012 3:24 pm

Re: Output profile error: LaTeX Error: File `.cls' not found

Post by cosmology1905 »

No, it is a document class for Latex2e, for submiting paper in a journal.
The site is http://www.worldscientific.com/page/ijm ... guidelines.
Even the template show this message.

Thanks.
killpueino
Posts: 1
Joined: Fri Nov 08, 2013 8:00 pm

Re: Output profile error: LaTeX Error: File `.cls' not found

Post by killpueino »

Go to the MiKTeX package manager and install each individually. That works. I had the same problem after intalling Lyx.

Best,
Post Reply