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
/opt
as expected.) - Did
brew install --cask xquartz
. This- installed
X11/
in/opt/
, - added
XQuartz.app
in/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.0
and a few binaries in/usr/local/bin
. In particular, it installsgs-X11
andgs-noX11
in/usr/local/bin
, where the first requires X11 and the second does not. Then MacTeX installs a symbolic linkgs
pointing 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
, andpdfclose
require X11. In addition, the Ghostscript librarylibgs
requires X11 (but notice thatdvisvgm
is the only TeX Live program using it). Ghostscript comes with two binaries,gs-X11
andgs-noX11
, wheregs-X11
has support for X11 andgs-noX11
does not. When Ghostscript is first installed, a symbolic link namedgs
is created in/usr/local/bin
. If X11 is present,gs
points togs-X11
; otherwise it points togs-noX11
. On Arm machines,gs
points togs-X11
only if XQuartz 2.8.0 or higher is present.
Questions:
- Where are
gs-X11
,gs-noX11
, and the symlinkgs
on 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.tex
on the terminal producesfile.dvi
in 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.dvi
using TeXShop, for according to the post, it is just executingdvips
andps2pdf
. (I confirm thatdvips file.ps
and thenps2pdf file.ps
generate the expectedfile.pdf
in 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.pkg
that brew fetched, and it matched with what MacTeX reports.