I have several folders/subdirectories (within a main directory) having a Tex projects (of their own) that require a single style file that is in the main directory.
Rather than having a copy of the style file for each subdirectory, I would like just direct TeX to the single style file I have. This will save me work, whenever I would update the style file.
Is there any way to achieve that: To usepackage from a superdirectory?
/usr/local/texlive/texmf-local) and then runsudo texhashin the terminal. Then you can\usepackageit everywhere. – Stephen Dec 22 '23 at 07:01\usepackage{../mypkg}. – Stephen Dec 22 '23 at 07:31usepackageis supposed to be a file name, not a path, andTEXINPUTSor similar the expected ways to deal with this – Joseph Wright Dec 22 '23 at 08:22TEXINPUTS=..//: pdflatex yourfilethen it will find any file below the parent. – David Carlisle Dec 22 '23 at 10:02texmfdirectory? Typically, this might be~/texmf/tex/latex/mypkg/mypkg.styfor example. No need forsudoortexhashand you don't have to rememberTEXINPUTSevery time you compile. You could also just link to a single copy, rather than duplicating, but that can get muddled more easily. – cfr Dec 23 '23 at 02:53