Compile LaTeX documents into PDFs
Integrates LaTeX into the workflow. Compiles LaTeX source into a PDF file with pdflatex, xelatex, lualatex, platex, uplatex, or context, and supports additional resources such as images, included .tex files, and bibliographies. Can also look up the TeX Live packages and system fonts available to the compiler. Does not require OAuth or an API key. Compilation runs on the public LaTeX-on-HTTP service (latex.ytotech.com), so document source and resources are sent to that third-party service.
Compile a LaTeX document into a PDF via the public LaTeX-on-HTTP service (latex.ytotech.com). Supports pdflatex, xelatex, lualatex, platex, uplatex, and context, plus supporting resources such as images, included .tex files, and bibliographies.
| パラメータ | 型 | 必須 | 説明 |
|---|
content | string | はい | LaTeX source of the main document, from \documentclass to \end{document} |
compiler | string | いいえ | LaTeX compiler: pdflatex (default), xelatex, lualatex, platex, uplatex, or context |
fileName | string | いいえ | Name for the generated PDF file (default: document.pdf) |
resources | array | いいえ | Supporting files for the compilation. Each entry has a "path" plus exactly one of "content" (plain text), "file" (base64), or "url" (remote file), e.g. [{"path": "refs.bib", "content": "..."}, {"path": "logo.png", "url": "https://..."}] |
items | object | いいえ | Relative path the file is available at |
properties | string | いいえ | Relative path the file is available at |
path | string | いいえ | No description |
content | string | いいえ | No description |
file | string | いいえ | No description |
url | string | いいえ | No description |
| パラメータ | 型 | 説明 |
|---|
pdf | file | Compiled PDF file |
pdfUrl | string | URL of the compiled PDF |
fileName | string | Name of the compiled PDF file |
compiler | string | LaTeX compiler used for the build |
Search the TeX Live packages available to the LaTeX compiler by name or description, e.g. to check which packages can be used in a document.
| パラメータ | 型 | 必須 | 説明 |
|---|
query | string | はい | Search terms matched against package names and descriptions |
maxResults | number | いいえ | Maximum number of packages to return (default: 25, max: 100) |
| パラメータ | 型 | 説明 |
|---|
packages | array | TeX Live packages matching the query |
↳ name | string | Package name |
↳ shortDescription | string | One-line package description |
↳ installed | boolean | Whether the package is installed |
↳ ctanUrl | string | CTAN page for the package |
totalMatches | number | Total number of packages matching the query, before truncation |
Get details about a specific TeX Live package available to the LaTeX compiler, including whether it is installed, its description, license, and related packages.
| パラメータ | 型 | 必須 | 説明 |
|---|
name | string | はい | Exact package name, e.g. amsmath, tikz, or biblatex |
| パラメータ | 型 | 説明 |
|---|
package | json | TeX Live package details |
↳ name | string | Package name |
↳ installed | boolean | Whether the package is installed |
↳ shortDescription | string | One-line package description |
↳ longDescription | string | Full package description |
↳ category | string | Package category |
↳ license | string | Package license identifier |
↳ topics | array | CTAN topic tags |
↳ relatedPackages | array | Names of related packages |
↳ homepage | string | Package homepage URL |
↳ ctanUrl | string | CTAN page for the package |
List the system fonts available to the LaTeX compiler, optionally filtered by name, e.g. to pick a font for xelatex or lualatex documents using fontspec.
| パラメータ | 型 | 必須 | 説明 |
|---|
query | string | いいえ | Filter matched against font family and full font name, e.g. "Noto Serif" |
maxResults | number | いいえ | Maximum number of fonts to return (default: 50, max: 200) |
| パラメータ | 型 | 説明 |
|---|
fonts | array | Fonts available to the LaTeX compiler |
↳ family | string | Font family name |
↳ name | string | Full font name |
↳ styles | array | Available styles, e.g. Bold or Italic |
totalMatches | number | Total number of fonts matching the filter, before truncation |