alvesvaren / python-latex-render

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-latex-render

This is a simple library and cli to render latex code to raster images.

It uses Pillow + KaTeX + Selenium + Chrome/Chromium (because it supports transparent screenshots) to open a website, render latex, take a screenshot and then save it

Requirements:

  • Chrome or chromium installed

Installation:

Run pip install git+https://github.com/alvesvaren/python-latex-render

Usage (CLI):

python -m latex_render "x^2=\frac{2}{e}" -o filename.png -c "#abcdef"

About


Languages

Language:JavaScript 97.9%Language:CSS 1.8%Language:Python 0.3%Language:HTML 0.0%