image

Upload Tex

Accepts a base64-encoded LaTeX source, compiles it in a sandboxed temp dir, rasterises the PDF and returns one image URL per page.

Used by the exercise import to recover the figures a .tex draws (TikZ, tables of variations, probability trees): the source is imported as text either way, the page images only exist so the printed figures can be cropped out of them. A source that does not compile answers compiled=False with 200 — the import carries on without figures.

post/image/upload-tex

Request body

file_contentstring required
file_namestring required
content_typestring

Response

Successful Response

statusstring required
compiledboolean required
messagestring required
image_urlsstring[] required

Changes