Get LaTeXML
Current Release:
The current release is 0.7.0. See also the Change Log.
LaTeXML itself is written in `pure' Perl, but requires TeX, and several perl modules, some of which depend on C libraries. It should always be possible to install LaTeXML on any platform with a sufficiently recent Perl, From Source, using CPAN to install the prerequisites.
In most cases, however, it will be preferable to install a platform-specific, pre-compiled, release, as this often takes care of installing dependencies and updates, and allows cleaner uninstall. See OS-Specific Notes for platform-specific releases and instructions.
Prerequisites
The following additional Perl modules are required, but often will be automatically installed by OS-specific procedures:
- Parse::RecDescent
-
a useful grammar based parser module.
- Image::Magick
-
provides bindings to the ImageMagick library.
- XML::LibXML
-
provides bindings to the C library libxml2 (available from xmlsoft). Versions before 1.61 will require the additional XML::LibXML::XPathContext module.
- XML::LibXSLT
-
provides bindings to the C library libxslt (from xmlsoft,
- DB_File
-
usually part of a standard Perl installation, provided BerkeleyDB is installed.
- Test::Simple
-
usually part of a standard Perl installation.
From Source
Install Prerequisites
Assuming that all the required C packages (for libxml2 and libxslt) are already installed on your system, use CPAN to install the required perl modules (typically as root):
perl -MCPAN -e shell install Parse::RecDescent, XML::LibXML, XML::LibXSLT, DB_File quitThe Image::Magick module often installs best by enabling the perl bindings as part of compiling and installing the main ImageMagick package.
Download
Install
proceeds via the usual Perl module incantations:
tar zxvf LaTeXML-0.7.0.tar.gzand then, as root:
cd LaTeXML-0.7.0
perl Makefile.PL make make test
make install(See perl perlmodinstall for more details, if needed.)
Operating System Specific Notes
With no implied endorsement of any of these systems.
Fedora-based systems
For Fedora (and perhaps other similar) distributions, yum will automatically install the needed prerequisites.
Download
Install
using the command:
yum --nogpgcheck localinstall LaTeXML-0.7.0-*.ltxml.noarch.rpmIf you had previously installed LaTeXML rpm, you may want to explicitly uninstall it first, since the name has changed:
yum remove perl-LaTeXML
Enterprise-style RPM-based systems (RedHat, Centos)
On Red Hat Enterprise Linux and derivatives (Centos, Scientific Linux), yum will also install prerequisites, but two of them are not available in the current release, 5.
Download Prerequisites
choose from the following according to your architecture:
- 32bit
- 64bit
- Source RPM
Download
Install
using the command:
yum --nogpgcheck localinstall LaTeXML-0.7.0-*.ltxml.noarch.rpm \
perl-XML-LibXML-XPathContext-0.07-1.* \
perl-XML-LibXSLT-1.58-1.*
Debian-based systems
For Debian based distributions, presumably including Ubuntu, all prerequisites are available from the standard repositories. I do not currently have access to a Debian/Ubuntu system, so have not created an appropriate .deb for LaTeXML.
Install Prerequisites
using the command:
sudo apt-get install \
libparse-recdescent-perl \
libxml2 libxml-libxml-perl \
libxslt1.1 libxml-libxslt-perl \
imagemagick perlmagick
Install
You can then continue by downloading and installing LaTeXML From Source.
Some notes on installation on Debian based systems are also available.
MacOS
Many of the prerequisite packages are available via MacPorts.
For the Adventurous
As an easy alternative — if it works — download 0.7.0 (MacOS ), save in it's own directory as Portfile (without the version number) and, within that directory, run
sudo port installThis should install LaTeXML and it's all dependencies; Otherwise, continue as below.
Install Prerequisites
using the command:
sudo port install \
p5-xml-libxml p5-xml-libxslt \
p5-parse-recdescent p5-perlmagick
Install
You can then continue by downloading and installing LaTeXML From Source.
Note there have been issues reported regarding DB_File
not being installed; Apparently you must install the
the db `variant' of perl, rather than the gdbm variant
(whatever that means).
Windows
Many of the prerequisite packages are available in ppm form (for ActivePerl (I think). I will attempt to generate a ppm for LaTeXML in the near future, depending on user interest — and assistance!
SVN Repository
The most current code can be obtained from the svn repository. It is browsable at https://svn.mathweb.org/repos/LaTeXML. Anonymous checkout is available using the command:
svn co https://svn.mathweb.org/repos/LaTeXMLAfter checkout, you can continue the installation as described in From Source.
License
As this software was developed as part of work done by the United States Government, it is not subject to copyright, and is in the public domain. Note that according to Gnu.org public domain is compatible with GPL.
Archived Releases:
0.7.0 (Centos 5); 0.7.0 (Fedora 10); 0.7.0 (MacOS ); 0.7.0 (tar.gz); 0.6.0 (Fedora 9); 0.6.0 (tar.gz); 0.5.99 (tar.gz); 0.5.9 (tar.gz); 0.5.1 (tar.gz); 0.5.0 (tar.gz); 0.4.1 (tar.gz); 0.4.0 (tar.gz); 0.3.2 (tar.gz); 0.3.1 (tar.gz); 0.3.0 (tar.gz); 0.2.99 (tar.gz); 0.2.2 (tar.gz); 0.2.1 (tar.gz); 0.2.0 (tar.gz); 0.1.2 (tar.gz); 0.1.1 (tar.gz); 0.1.0 (tar.gz).