cls file - multiple files

I am writing a .cls file so that I can maintain consistency across many documents. The cls file is soooo long, and I would like to split it up into parts, in a similar fashion that one does when writing a document. Can I do this, the \input{...} command doesn't seem to recognize a sub-folder of the parent .cls file in my TEXMFHOME tree structure.

• What are you calling the subfiles? The directory structure for TeX files requires that they are in the 'right' place in order to find them, and that depends on the extension used. – Joseph Wright Aug 21 '13 at 6:16
• when the .cls file is a single file, and put into ./home/<user>/texmf/latex/MYCLASS/myclass.cls, it works fine, however, not if myclass.cls refers to files in ./home/<user>/texmf/latex/MYCLASS/SUBFILES/ – Nicholas Hamilton Aug 21 '13 at 6:21
• Please consider to look for appropriate existing tags before creating new ones. – lockstep Aug 21 '13 at 6:27
• @ADP Not unless it's a package. I'd use either .tex or .def here. – Joseph Wright Aug 21 '13 at 6:28
• I am sure your long class file has some functionalities you can outsource in a package, for example your standard macros. Advantage: your class is not so long and you can use this small package in every tex file you want with \usepackage{my-macros} if you call it my-macros.sty. In your class you need to write \RequirePackage{my-macros}. – Mensch Aug 21 '13 at 15:58