What is the proper way to set document class by providing the path to the custom class file? Something like this:
\documentclass{../myclass/myclass}
This kind of works but I'm getting an error that my myclass.cls is not exporting ../myclass/myclass but myclass.
I'm working on three projects for which I need a custom class and I want them to share it as well. I'm also working on that custom class and am changing it so I want it to be in the same directory as those three projects.
Here's my dir structure:
Main Project Folder
+ MyClass
-- myclass.cls
+ Project 01
-+ Code
-+ Images
-- Project 01.tex
-- ...
+ Project 02
--+ Code
--+ Images
-- Project 01.tex
-- ...
+ Project 03
--+ Code
--+ Images
-- Project 01.tex
-- ...
\documentclass{myclass}the argument is a name not a file path, then arrange that the class file is in the input path. – David Carlisle Apr 01 '20 at 21:07~/texmf/texthen you don't have to set any paths or environment variables it will just work. – David Carlisle Apr 01 '20 at 22:10\documentclassfile{path}so that I can state that it is my intention to not make this "portable". And it's annoying that warning pops up every time I build my document. Also, it is impractical to have my class file in another directory, especially if it's only supposed to be used within this specific projects I'm working on. – Maštarija Apr 01 '20 at 22:10\input@pathalthough I wouldn't really recommand it.\def\input@path{{MyClass/}}\documentclass{myclass}but plasingmyclass.cls` in teh normal input path is much better really. – David Carlisle Apr 01 '20 at 22:12../MyClass/myclassin the\ProvidesClassdeclaration, then the names will match and the warning will go. – David Carlisle Apr 01 '20 at 22:17