I am drawing math images using TikZ and have recently realised that I want to build my own package/s (in the form of a .sty-file) which can be used for all new documents. In this I for example want to define certain colors and variables that are commonly used, in order to not have to repeat this in every document. Using the following on Mac OS (TeXShop as editor):
How to have local package override default package
I have managed to make my code run using a package I have created myself, that is put in /Users/MyAccount/Library/texmf/tex/latex/"package name"/"package name".sty
I created the texmf-directory myself. For clarity, lets call the relevant package file "Geometry.sty". The problem I have is that once I have uploaded Geometry.sty to /Users/MyAccount/Library/texmf/..., I cannot open it in TexShop and modify, since it says that the file does not exist when trying (although it as a non-zero file size). If I want to update it, I have to put the file somewhere where TeXShop can access it, and then move it back to the texmf-folder. This is very tedious, and when like this it kind of removes the point of me using my own package which is globally available (like other standard packages). I am sure there must exist ways to handle this.
I am no expert at computers so might have missed something obvious, but please let me know if you can help!
Thanks in advance!
ln -s <package-name>.sty ~/Library/texmf/tex/latex/<package-name>/<package-name>.stywith the folder<package-name>already existing inside yourtexmf. – Skillmon Oct 17 '21 at 11:04