There are several possible routes one can take when using the LaTeXML web server for conversion jobs:
Upload Interface
Manually upload your TeX sources, or an archive (.zip or .tar.gz)
containing images and fragment-based setups, at
our
upload interface
at /upload.
RESTful Convert
Alternatively, send an HTTP POST request to /convert, with the following syntax:
-
tex : "the TeX content to convert"
-
profile : "conversion profile - default is standard,
try fragment for best daemon results"
-
Also useful for converting files that are already hosted online. Just
send their URL (https://www.example.com/foo.tex) as the "tex" parameter.
Command-line examples:
- Textual fragments:
curl -d "profile=fragment&tex=\textbf{Hello World}" https://latexml.mathweb.org/convert
- Archive bundles:
curl --data-binary @somezip.zip https://latexml.mathweb.org/convert -H"Content-Type: multipart/form-data" -H"X-File-Type: application/zip" -H"X-File-Name: somezip.zip" > result.zip