LaTeX

LaTeX é um sistema de tipografia que é o padrão de fato para produzir documentos científicos e técnicos de alta qualidade. Diferente de processadores de texto, o LaTeX usa marcação em texto puro para descrever a estrutura do documento e deixa o compilador cuidar do layout, o que o torna ideal para documentos com notação matemática, citações, referências cruzadas e formatação profissional consistente.

Com o LaTeX, você pode:

  • Compilar documentos em PDF: Transforme o código-fonte LaTeX em um PDF polido e pronto para impressão
  • Diagramar matemática: Renderize equações, teoremas e notação científica com precisão
  • Escolher o compilador: Compile com pdfLaTeX, XeLaTeX, LuaLaTeX, pLaTeX, upLaTeX ou ConTeXt
  • Incluir arquivos de apoio: Adicione imagens, arquivos .tex incluídos, bibliografias e classes ou estilos personalizados ao build
  • Automatizar a produção de documentos: Gere relatórios, faturas, certificados e artigos a partir de templates

No Zoen, a integração com o LaTeX permite que seus agentes compilem código-fonte LaTeX em arquivos PDF como parte de qualquer fluxo de trabalho — sem OAuth ou chave de API. Os agentes podem redigir documentos em LaTeX, anexar recursos de apoio como imagens ou bibliografias BibTeX e produzir um PDF final que blocos posteriores podem enviar por e-mail, fazer upload ou armazenar. Os agentes também podem pesquisar os pacotes TeX Live e fontes do sistema disponíveis para escolher as ferramentas certas para um documento. Isso facilita criar agentes que geram relatórios, diagramam digests de pesquisa ou produzem documentos templated como faturas e certificados.

Nota: a compilação roda no serviço público LaTeX-on-HTTP em latex.ytotech.com, então o código-fonte do documento e quaisquer recursos anexados são enviados a esse serviço de terceiros. Evite compilar documentos cujo conteúdo não deve sair do seu ambiente.

Usage Instructions

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.

Actions

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.

Input

ParameterTypeRequiredDescription
contentstringYesLaTeX source of the main document, from \documentclass to \end{document}
compilerstringNoLaTeX compiler: pdflatex (default), xelatex, lualatex, platex, uplatex, or context
fileNamestringNoName for the generated PDF file (default: document.pdf)
resourcesarrayNoSupporting 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://..."}]

Output

ParameterTypeDescription
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.

Input

ParameterTypeRequiredDescription
querystringYesSearch terms matched against package names and descriptions
maxResultsnumberNoMaximum number of packages to return (default: 25, max: 100)

Output

ParameterTypeDescription
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.

Input

ParameterTypeRequiredDescription
namestringYesExact package name, e.g. amsmath, tikz, or biblatex

Output

ParameterTypeDescription
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.

Input

ParameterTypeRequiredDescription
querystringNoFilter matched against font family and full font name, e.g. "Noto Serif"
maxResultsnumberNoMaximum number of fonts to return (default: 50, max: 200)

Output

ParameterTypeDescription
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