Skip to main content

Formula typesetting for the web using LaTeX

Project description

GladTeX

GladTeX is a utility and library to display formulas on the Web and in HTML-based formats such as EPUB. Formulas are embedded within <eq>…</eq> tags and converted automatically to a scalable SVG image using LaTeX. The images integrate seamlessly into the output documents, work with any browser and are accessible for visually impaired and blind users as well.

Features

  • LaTeX-quality formulas with partial unicode maths support
  • Pandoc support to convert from any format with LaTeX-formulas (MarkDown, …) to any HTML-based format, e.g. EPUB
  • Cache formulas to speed up subsequent document conversion
  • Python library GleeTeX to embed into other applications or to tailor to a specific workflow
  • cross-platform, written in Python, comes with Windows executables.

License

  • (C) 1999-2010 Martin G. Gulbrandsen (Perl version)
  • (C) 2011-2013 Jonathan Daugherty (especially release 1.3) (Perl version)
  • (C) 2013-2026 Sebastian Humenda (Python version)

This program is distributed under the LGPL-3, or at your option, any later version of the license; for details see the accompanying file COPYING.

The official project homepage is at https://humenda.github.io/GladTeX

Installation

Debian/Ubuntu

On all derivatives of Debian (as Ubuntu/Mint, etc.), installing GladTeX is as easy as

# apt-get install gladtex

Windows

If you want to use the program without the Python library, you should download a pre-compiled binary from https://github.com/humenda/GladTeX/releases.

Just unzip the archive and move the files to a directory within %PATH%.

From Source

The following is required for installing GladTeX:

  • Python >= 3.4
  • LaTeX (2e), dvisvgm (optionally png)
  • the LaTeX package preview.sty

Debian / Ubuntu

On Debian/Ubuntu systems the following commands will satisfy the dependencies:

# apt-get install python3-all texlive-fonts-recommended texlive-latex-recommended preview-latex-style dvipng

The package can then be installed using

# python3 setup.py install

Note: If your system ships python as the command for Python3 you have to use python in the above command instead.

OS X

You need to install a LaTeX distribution on your Mac. GladTeX was successfully run with MacTex.

You can download a zip source archive from GitHub or use git:

$ git clone https://github.com/humenda/GladTeX.git

Use cd to change to the GladTeX source directory and issue

$ python setup.py install

Documentation

Please use man gladtex for further instructions or have a look at the file manpage.md.

Contribute

Contributions are welcome. Please use PyFormat to format the code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gladtex-4.0.0.tar.gz (75.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gladtex-4.0.0-py3-none-any.whl (67.4 kB view details)

Uploaded Python 3

File details

Details for the file gladtex-4.0.0.tar.gz.

File metadata

  • Download URL: gladtex-4.0.0.tar.gz
  • Upload date:
  • Size: 75.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for gladtex-4.0.0.tar.gz
Algorithm Hash digest
SHA256 e9d6a814bdfd84410f22e94447bcd8df50fd6ddc64c0b61f72f02258b77ea5cc
MD5 02bb9c7e1dff4ef72799fc078c1ae54c
BLAKE2b-256 5610ff67b9273c6ef0af618252a2be297a4b4ac934baa4cb15b632acbf39692f

See more details on using hashes here.

File details

Details for the file gladtex-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: gladtex-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 67.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for gladtex-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afeb67de72e087921c4ddc78b9a34700c42228498602720992440b03833866f7
MD5 7c0625b4292306acb8f4d18f04567aa1
BLAKE2b-256 b6f245ad2d5690de4a573c9167e9840f304c83eb125add104359c6b735d8bcf4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page