I would like to create a sty file that sources another custom sty file. I have all files in a directory /home/Desktop/Common/Latex/LatexSetup. I have tried the following code, which fails.
\RequirePackage[kvoptions]
\DeclareStringOption[/home/Desktop/Common/Latex/LatexSetup]{setupfolder}[/home/Desktop/Common/Latex/LatexSetup]
\ProcessOptions\relax
\RequirePackage{\setupfolder/Latex_Defs}
The reason I don't want to include Latex_Defs is because I use this in multiple packages. My end goal is to have others be able to change this folder if they are using it somewhere else.
\RequirePackageshould never be a filepath, the fact that that sometimes works is an accident of the implementation, it should just be the package name. – David Carlisle Nov 11 '17 at 19:43Setup.styin your tex input path so (likekvoptions.stycan be referenced by name from any directory. – David Carlisle Nov 11 '17 at 19:45! LaTeX Error: File 'ASetup.sty' not found.– Jordan Nov 11 '17 at 19:45\usepackage{graphicx}ifgraphicx.stywas not installed in the right place, the solution is not to use\usepackage{/usr/local/texlive/2017/texmf-dist/tex/latex/graphicx}– David Carlisle Nov 11 '17 at 19:47