1

When I am trying to use the thesis class file for my thesis I am getting this error:

File `thesis.cls' not found. \usepackage

My codes

\documentclass[12pt]{thesis}
\usepackage{blkarray}
\usepackage{amsmath}
\begin{document}
\chapter{How long you want the title }

\end{document}

How to correct this error?

4
  • have you put thesis.cls file in the same folder as your .tex? Oct 20, 2015 at 11:49
  • that would be thesis.cls not .sty there are dozens if not hundreds of different classes called thesis.cls from every university department ever. presumably you had some documentation that said to use some particular local class and that documentation should have said where it could be found Oct 20, 2015 at 11:52
  • Try Thesis. If that works, replace Thesis by book.
    – Johannes_B
    Oct 20, 2015 at 11:53
  • Otherwise just start your document using \documentclass{report} until you get any local instructions that mandate the use of a particular class. Oct 20, 2015 at 11:53

1 Answer 1

4

If you have access to thesis.cls:

Most of the time an error File foo.cls not found leads to two possible problems:

First, the cls file is a "classic" file that is part of TeXlive or other TeX distribution. In this case, you should update it. The way to do it depends if you are using TeXlive, MikTeX, macTeX or other system.

If your file comes from internet, or from another source as an University, you should have a copy of the file in your folder.

If the problem is still present, you should verify typo (thesis, Thesis or THESIS). The name depends on the file name.

If you don't have any thesis.cls file:

In this case you should use another document class as book or report:

\documentclass[12pt]{report} %you can modifies report with book
\usepackage{blkarray}
\usepackage{amsmath}
\begin{document}
\chapter{How long you want the title }

\end{document}
5
  • How to fix this in linux..means i am using texstudio as an editor..
    – David
    Oct 20, 2015 at 12:05
  • @David have you the thesis.cls file? If it's the case, just put it in the same folder as your tex document and voilà ;-) Oct 20, 2015 at 12:09
  • no i am not having
    – David
    Oct 20, 2015 at 12:15
  • 1
    @David then do not use \documentclass{thesis} use \documentclass{report} and it will work. Oct 20, 2015 at 12:18
  • @David I've modified my answer. The comment by David Carlisle is what you have to do Oct 20, 2015 at 12:22

You must log in to answer this question.

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