I maintain a macros file which is static over all my documents. Whenever I need to make a new document, I copy the macros file in the folder and start working on it. Now the problem is I have several copies of the macros file all over my computer. If at a later stage I change a command or add new command to the macros file, I will have to replace all the macros file in order to maintain uniformity. I have now completely lost track of versions of the macros file.
- What is the standard way of maintaining the macros file?
- Is it preferred to keep it on the cloud and may be use GIT to pull every time?
- Often labs have a common macros file as well. How should it be maintained?
Regards.
mymacros.sty, copy your definitions to it and place it in your localtexmfdirectory such that TeX can find it. That's what packages are designed for! Similar, but not really a duplicate: tex.stackexchange.com/questions/273862/…