AptlyStar

LaTeX

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.

工具

latex_compile

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.

输入

参数类型必填描述
contentstring是LaTeX source of the main document, from \documentclass to \end{document}
compilerstring否LaTeX compiler: pdflatex (default), xelatex, lualatex, platex, uplatex, or context
fileNamestring否Name for the generated PDF file (default: document.pdf)
resourcesarray否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://..."}]
itemsobject否Relative path the file is available at
propertiesstring否Relative path the file is available at
pathstring否No description
contentstring否No description
filestring否No description
urlstring否No description

输出

参数类型描述
pdffileCompiled PDF file
pdfUrlstringURL of the compiled PDF
fileNamestringName of the compiled PDF file
compilerstringLaTeX compiler used for the build

latex_search_packages

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.

输入

参数类型必填描述
querystring是Search terms matched against package names and descriptions
maxResultsnumber否Maximum number of packages to return (default: 25, max: 100)

输出

参数类型描述
packagesarrayTeX Live packages matching the query
↳ namestringPackage name
↳ shortDescriptionstringOne-line package description
↳ installedbooleanWhether the package is installed
↳ ctanUrlstringCTAN page for the package
totalMatchesnumberTotal number of packages matching the query, before truncation

latex_get_package

Get details about a specific TeX Live package available to the LaTeX compiler, including whether it is installed, its description, license, and related packages.

输入

参数类型必填描述
namestring是Exact package name, e.g. amsmath, tikz, or biblatex

输出

参数类型描述
packagejsonTeX Live package details
↳ namestringPackage name
↳ installedbooleanWhether the package is installed
↳ shortDescriptionstringOne-line package description
↳ longDescriptionstringFull package description
↳ categorystringPackage category
↳ licensestringPackage license identifier
↳ topicsarrayCTAN topic tags
↳ relatedPackagesarrayNames of related packages
↳ homepagestringPackage homepage URL
↳ ctanUrlstringCTAN page for the package

latex_list_fonts

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.

输入

参数类型必填描述
querystring否Filter matched against font family and full font name, e.g. "Noto Serif"
maxResultsnumber否Maximum number of fonts to return (default: 50, max: 200)

输出

参数类型描述
fontsarrayFonts available to the LaTeX compiler
↳ familystringFont family name
↳ namestringFull font name
↳ stylesarrayAvailable styles, e.g. Bold or Italic
totalMatchesnumberTotal number of fonts matching the filter, before truncation

On this page