I performed the following steps:
- Reinstalled macOS Ventura 13.4 on my system. (I was taken aback to not find
/usr/local/bin/, but then this answer provided relief.) - Installed Homebrew. (It is in
/optas expected.) - Did
brew install --cask xquartz. This- installed
X11/in/opt/, - added
XQuartz.appin/Applications/, and - created symlinks X11 and X11R6 in
/usr/, both pointing toX11/in/opt.
- installed
- Did
brew install --cask mactex. This resulted in things including:- Installed
texlive/in/usr/local. - Installed
ghostscript/in/opt/Homebrew/Cellar/. - Installed
TeX/containing TeXShop, etc. in/Applications/.
- Installed
(I have everything updated to the latest at I write. Also, I cross-verified the md5 checksum of .pkg.)
Now, when I tried to run LaTeXiT, it greeted me with the following error:
I went through the READ ME FIRST.pdf that came with the applications which mentions:
Ghostscript installs support files in
/usr/local/share/ghostscript/10.00.0and a few binaries in/usr/local/bin. In particular, it installsgs-X11andgs-noX11in/usr/local/bin, where the first requires X11 and the second does not. Then MacTeX installs a symbolic linkgspointing to the first binary if the user’s machine has X11, and to the second binary otherwise. New versions of Ghostscript can be installed over version 10.00 without removing 10.00 first.
This documentation doesn't seem to be updated with the fact that Homebrew's prefix is in /opt/Homebrew/ for Apple Silicon: /usr/local/share/ should have been /opt/Homebrew/Cellar.
Next, I still don't have usr/local/bin, wherein to find gs-X11 and gs-noX11. In fact, an mdfind or find search yields no results for these.
Furthermore, from the MacTeX website:
The TeX Live programs
xdvi,pdfopen, andpdfcloserequire X11. In addition, the Ghostscript librarylibgsrequires X11 (but notice thatdvisvgmis the only TeX Live program using it). Ghostscript comes with two binaries,gs-X11andgs-noX11, wheregs-X11has support for X11 andgs-noX11does not. When Ghostscript is first installed, a symbolic link namedgsis created in/usr/local/bin. If X11 is present,gspoints togs-X11; otherwise it points togs-noX11. On Arm machines,gspoints togs-X11only if XQuartz 2.8.0 or higher is present.
Questions:
- Where are
gs-X11,gs-noX11, and the symlinkgson my system? - How to have everything integrated, so that TeX detects Ghostscript, and LaTeXiT works fine?
Edit:
Some further relevant observations:
- I confirm that TeX is working correctly:
latex file.texon the terminal producesfile.dviin the same (writeable) directory. However, I also observe another issue (most likely related): According to this TUG post, I should be having no trouble viewing the generatedfile.dviusing TeXShop, for according to the post, it is just executingdvipsandps2pdf. (I confirm thatdvips file.psand thenps2pdf file.psgenerate the expectedfile.pdfin the concerned directory.) However, when I open it with TeXShop, it does nothing. - Installing with brew should not be causing any problem since I checked the md5 checksum of the
mactex-20230314.pkgthat brew fetched, and it matched with what MacTeX reports.
