Many people use homebrew as package manager on Mac OS X (see https://brew.sh/analytics/os-version/). Unfortunately LaTeXML doesn't officially seem to support installation via homebrew and the available package has some issues: Homebrew/homebrew-core#22903 . Especially it is missing the dependency to Imagemagick and therefore after installation it is not possible to convert LaTeX files with images.
But I managed to install LaTeXML using homebrew with Imagemagick and want to document this here. Maybe this is helpful for someone or even can be added to the official documentation:
- Install LaTeXML via homebrew
- Download the lastest version of ImageMagick (the formula for Imagemagick from homebrew doesn't work for LaTeXML)
$ wget https://www.imagemagick.org/download/ImageMagick.tar.gz
$ tar zxvf ImageMagick.tar.gz
$ cd ImageMagick
- Build and compile ImageMagick from source
$ ./configure --with-perl=/usr/bin/perl
$ make
$ make install
$ make clean
- Open a new terminal and check if you can use the perl package
$ /usr/bin/perl -le 'use Image::Magick; print Image::Magick->QuantumDepth'
16
After doing this the latexmlpost command should find the Image::Magick perl module and be able to convert images.
Many people use homebrew as package manager on Mac OS X (see https://brew.sh/analytics/os-version/). Unfortunately LaTeXML doesn't officially seem to support installation via homebrew and the available package has some issues: Homebrew/homebrew-core#22903 . Especially it is missing the dependency to Imagemagick and therefore after installation it is not possible to convert LaTeX files with images.
But I managed to install LaTeXML using homebrew with Imagemagick and want to document this here. Maybe this is helpful for someone or even can be added to the official documentation:
After doing this the
latexmlpostcommand should find theImage::Magickperl module and be able to convert images.