I use TeX Live with TeXSchop on Mac OS High Sierra, and would like to create a “package" folder containing a macros file I named “CSTmacros.sty" so that it’s available to any working TeX file with the preamble \usepackag{CSTmacros}. I was told to add the following path to my home Library:
~/Library/tex/latex/CSTmacros/CSTmacros.sty
Unfortunately that's not working. Also, the System modified the path by adding a texmf folder, thus:
~/Library/texmf/tex/latex/CSTmacros/CSTmacros.sty
The other TeX-related folders are ~/Library/texlive/2020\texmf-var and ~/Library/TeXShop. Do I need to move the texmf folder and its contents into the 2020 folder?
Thanks in advance!
texlivefolders should be left alone. So just create~/Library/texmf/tex/latexand then put yourCSTmacrosfolder containingCSTmacros.stythere and it should be found properly. – Alan Munn May 07 '20 at 00:25mkdir -p ~/Library/texmf/tex/latex/CSTmacrosThis will create the directory. Then assuming you reported what did correctly, typemv ~/Library/tex/latex/CSTmacros/CSTmacros.sty ~/Library/texmf/tex/latex/CSTmacrosThis should move your style file to the correct place. To test if you've done it correctly, typekpsewhich CSTmacros.styWhat does that show? – Alan Munn May 07 '20 at 10:19\listfiles\documentclass{article}\usepackage{CSTmacros}\begin{document}\end{document}and copy the console output from compiling that into your question. – Alan Munn May 08 '20 at 03:51\defin a user level document (or even in a package or class file) unless you are really sure of what you're doing ; you should use\newcommand. This way if something is already defined, you will not zap like you did.\ais defined in the LaTeX kernel and you should not redefine it. – Alan Munn May 08 '20 at 20:17\newcommand(not\def) and see which ones cause problems, and change the names of only those macros. – Alan Munn May 08 '20 at 21:08\inputshouldn't make a difference at all. And your\3macro as defined shouldn't give any warning. – Alan Munn May 08 '20 at 21:34