I'm trying to develop a set of custom classes. They are all very similar, but each do slightly different things (a custom letter, article and report for example. Since they share things in common, I thought that to cut down on repeated code, I could have a 'base' class, which would define everything they have in common, and then I would have the specific classes, with their individual code.
That base class is called frigaard-base.cls, and then I have a class for essays, called frigaard-essay.cls. The structure is that frigaard-base loads the default article and then frigaard-essay loads frigaard-base. However in a document when I load frigaard-essay.cls, I get the following error:
File `frigaard-base.cls' not found. \LoadClass{frigaard-base}
Normally though, it should be found since frigaard-base and frigaard-essay are in the same folder, and here is their declarations:
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\ProvidesClass{frigaard-base}[2013/07/24]
\LoadClass[a4paper, 12pt]{article}
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\ProvidesClass{frigaard-essay}[2013/07/24]
\LoadClass{frigaard-base}[2013/07/24]
What is happening here? Should I not be using \LoadClass twice within the same hierarchy and change frigaard-base into some other file type, such as a .def (if this is the case, please explain how).
More Info
It has been worked out that when frigaard-base.cls, frigaard-essay.cls, and a test document are in the same folder, then it works fine, but when say the test document is in a folder, frigaard-essay.cls is in a subfolder, and frigaard-base.cls is in a subfolder of that, it gives the same error.
<!-->like I did in my edit … – Tobi Jul 25 '13 at 10:07frigaard-<name>.clsfiles in the same folder as my test file. – cgnieder Jul 25 '13 at 10:29texhashormktexlsr(assuming TeX Live here, I know nothing about MiKTeX) – cgnieder Jul 25 '13 at 10:53frigaard-baseandfrigaard-essay, and x:\latex\documents for where my test file is. I'm using MiKTeX, but this structure has previously worked in the past, which is why I put the problem down to using\LoadClassto load a class (which has already loadedarticleinto another class. – dcaf Jul 25 '13 at 22:34