Build environment

Read-only endpoints to inspect what a LaTeX-on-HTTP instance can compile: TeXLive version, available fonts and installed LaTeX packages. Useful to adapt your documents to a target instance, or to feature-detect before sending a compilation.

TeXLive installation information

GET/texlive/information

Get information on the TeXLive installation used for the compilations.

A JSON payload with a TeXLive installation specification (version, installation_path, installed modules, tlmgr revision).

curl https://latex.ytotech.com/texlive/information | python3 -m json.tool

Sample response

{
  "texlive": {
    "installation_path": "/usr/local/texlive",
    "modules": [
      {
        "name": "TLConfig",
        "value": "52745"
      },
      ["..."]
    ],
    "version": "2026"
  },
  "tlmgr": {
    "revision": "52931",
    "revision_date": "2019-11-27 00:04:18 +0100"
  }
}

List available fonts

GET/fonts

Explore the fonts that can be used directly in LaTeX compilations (system-installed fonts).

A JSON payload with a list of fonts.

curl https://latex.ytotech.com/fonts | python3 -m json.tool

Sample response

{
  "fonts": [
    {
      "family": "Amiri",
      "name": "Amiri",
      "styles": [
        "Regular"
      ]
    },
    ["..."]
  ]
}

List installed LaTeX packages

GET/packages

Explore the LaTeX packages installed on the compilation environment, with CTAN links.

A JSON payload with a list of packages (name, shortdesc, installed, url_ctan, url_info).

curl https://latex.ytotech.com/packages | python3 -m json.tool

Sample response

{
  "packages": [
    {
      "installed": true,
      "name": "12many",
      "shortdesc": "Generalising mathematical index sets",
      "url_ctan": "https://ctan.org/pkg/12many",
      "url_info": "/packages/12many"
    },
    ["..."]
  ]
}

Get LaTeX package information

GET/packages/<packageName>

Get information on a LaTeX package, including whether it is installed on the compilation environment.

Name Type Default Description
packageName string — CTAN package name, eg. 12many.

A JSON payload with the package information (description, category, license, version, sizes, CTAN link).

curl https://latex.ytotech.com/packages/12many | python3 -m json.tool

Sample response

{
  "package": {
    "cat-date": [
      "2016-06-24T19:18:15+02:00"
    ],
    "cat-license": "lppl",
    "cat-topics": [
      "maths"
    ],
    "cat-version": "0.3",
    "category": "Package",
    "collection": "collection-mathscience",
    "installed": true,
    "longdesc": "In the discrete branches of mathematics and the computer sciences, it will only take some seconds before you're faced with a set like {1,...,m}. [...]",
    "package": "12many",
    "relocatable": false,
    "revision": "15878",
    "shortdesc": "Generalising mathematical index sets",
    "sizes": {
      "run": "5k"
    },
    "url_ctan": "https://ctan.org/pkg/12many"
  }
}

Errors

Error code HTTP Meaning
Package not found 404 No CTAN package with this name.