I installed TeX Live via Homebrew (4.1.17) on my Mac (macOS Sonoma 14.1): brew install texlive
. Now, I'd like to use this TeX Live distribution in IntelliJ IDEA with the plugin TeXiFy IDEA.
When creating a new LaTeX project, I'm asked to select a project SDK. Unfortunately, I don't know where to find the TeX Live distribution.
Homebrew uses the path /opt/homebrew
. Therefore, I tried to find the right path to TeX Live there, but I had no success, neither with the directory /opt/homebrew/Cellar/texlive/20230313_2
(which is shown after running brew install texlive
) itself nor with any other subdirectory/executable in /opt/homebrew
I tried. IntelliJ IDEA always says "Could not find [path I choosed]/bin/*/pdflatex".
Where can I find the TeX Live distribution installed by homebrew?
Thank you for any help!
EDIT: As @DG' said, installing TeX Live on macOS via Homebrew can be done by installing "MacTeX without GUI": brew install mactex-no-gui
. MacTeX is then installed at /usr/local/texlive/2023
and TeXiFy finds it. This solves my problem.
TeX Live SDK
is supposed to be, but (a) the TeXiFy IDEA Wiki says that it finds your distribution automatically after a restart and (b) you can find the actual path withwhich pdflatex
witch returns something like/Library/TeX/texbin/pdflatex
on a Macwhich pdflatex
is/opt/homebrew/bin/pdflatex
– but when I select this, the above mentioned error occurs. I was wondering what will happen when I skip the step of selecting the TeX Live distribution, so I tried. It works! TeXiFy has found my pdflatex. But unfortunately, I still don't know where I can find the distribution which I need to select when creating a new project./Library/TeX/texbin/
as mentioned above). Plus MacTeX is the easiest to install. Plus remember that you are likely to be ,issing a lot of LaTeX stuff after runningbrew install texlive
(at least if it is just like theapt
original)/usr/local/texlive/2023
and the binary directory (which is a symbolic link) should be/Library/TeX/texbin
(although in that case it's odd thatwhich pdflatex
returns what it does.)'