I'm trying to set the documentclass type of a certain .tex
file to be a class that is in the parent folder. However, I'm not sure how to include the path to the .cls
file. I can write
\documentclass[letterpaper,12pt]{../foo}
But that complains that the imported class isn't the same as the provided class (in foo.cls
I have \ProvidesClass{foo}
. I know that this is just a warning and I could ignore it, or I could write \ProvidesClass{../foo}
, but was wondering if there was a cleaner way to do the document class declaration.
\documentclass
. Instead you should change the search path so it can be found.../foo
and notfoo
when you use it as\documentclass{../foo}
. Perhaps you could try changing the class name to../foo
but I think that is a bad idea.\documentclass{foo}
and change the search path so that TeX can locate it. ie., Place the file in~/texmf/tex/latex/
, and runtexhash
to update the TeX database. I haven't tried it but it should work.