Docker container to generate SVG and PNG files from LaTeX
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENSE
README.md
test.tex
worker

README.md

texbox

Docker container to generate SVG and PNG files from LaTeX.

Usage

docker run -i dmoj/texbox < test.tex

LaTeX, dvisvgm and rsvg-convertoutput will be in stderr.

stdout format

Format is binary, all numbers are unsigned and big-endian. It is composed of:

  • 32-bit integer: w, width of the image
  • 32-bit integer: h, height of the image
  • 32-bit integer: s, length of the SVG file
  • s raw bytes of the SVG
  • 32-bit integer: p, length of the PNG file
  • p raw bytes of the PNG