Skip to content

Support and document installation of LaTeXML via homebrew on Mac OS X #929

Description

@asmaier

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:

  1. Install LaTeXML via homebrew
$ brew install latexml
  1. 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
  1. Build and compile ImageMagick from source
$ ./configure --with-perl=/usr/bin/perl
$ make
$ make install
$ make clean
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions