I was previously on texlive under MacOS Macports, and using texstudio without any problem. I have a bunch of custom packages in ~/Library/texmf and when I build my documents on the command line in terminal everything is fine. I have migrated to homebrew and moved away from MacPorts. Everything works fine from the terminal, but I cannot build my documents from texstudio anymore, as the packages in ~/Library/texmf are not found, although they are found when building from the cli. Does anybody know what the problem is ?
I tried to texhash, but in the terminal it does not check TEXMFHOME (which I set in .profile). Everything seems fine, but from texstudio pdflatex does not find the packages in my home folder ~/Library/texmf. This drives me mad!
I already tried to "Try to set the texmf folder with tlmgr conf texmf TEXMFHOME ~/Library/texmf/" (had to add conf to tlmgr/config first), but still gets ! LaTeX Error: File `mymath.sty' not found.
TEXMFHOMEis visible in the environment:env | grep TEXMFHOMEshould return something likeTEXMFHOME=....since you set the variable in.profile. Also, make sure you have addedexporttoTEXMFHOMEin.profile. – Celdor Nov 12 '22 at 15:31It's only from Texstudio that ~/Library/texmf isn't searched for.
For now, I got it work by launching texstudion from the command line in a Terminal. I think that (as samcarter_is_at_topanswers.xyz said, that GUI apps do not have the correct environment for TEXMFHOME, or something related). BTW: I got this problem after upgrading (sic! ) to Ventura (maybe it's related...)
– user13457460 Nov 12 '22 at 16:00