General ⇒ Output profile error: LaTeX Error: File `.cls' not found
Output profile error: LaTeX Error: File `.cls' not found
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.
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.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Output profile error: LaTeX Error: File `.cls' not found
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
Best regards and welcome aboard
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Output profile error: LaTeX Error: File `.cls' not found
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
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
Output profile error: LaTeX Error: File `.cls' not found
Here is the problem:
Use
Delete the extra pair of braces before [12pt].
Code: Select all
\documentclass{}[12pt]{article}
Code: Select all
\documentclass[12pt]{article}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: Output profile error
Oh, whoops...I feel pretty foolish now...thanks for the help though, everybody.
Re: Output profile error
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!!
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!!

-
- Posts: 2
- Joined: Fri Aug 10, 2012 3:24 pm
Output profile error: LaTeX Error: File `.cls' not found
I have found the same error:
The introduction of my document is:
I've tried
Thanks.
Code: Select all
! LaTeX Error: File `ws-ijmpd.cls' not found.
you have request document class 'ws-ijmpd'
but the document class provides 'epsfig'
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.
- Stefan Kottwitz
- Site Admin
- Posts: 10314
- Joined: Mon Mar 10, 2008 9:44 pm
Output profile error: LaTeX Error: File `.cls' not found
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
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
-
- Posts: 2
- Joined: Fri Aug 10, 2012 3:24 pm
Re: Output profile error: LaTeX Error: File `.cls' not found
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.
The site is http://www.worldscientific.com/page/ijm ... guidelines.
Even the template show this message.
Thanks.
-
- Posts: 1
- Joined: Fri Nov 08, 2013 8:00 pm
Re: Output profile error: LaTeX Error: File `.cls' not found
Go to the MiKTeX package manager and install each individually. That works. I had the same problem after intalling Lyx.
Best,
Best,