Typst & LaTeX Compiler for Openclaw

A specialized API-driven skill for transforming Typst and LaTeX source files into production-ready PDF documents without local dependencies.

gregm711
v1.5.0
Feb 2, 2026
4
3.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install typetex

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install typetex using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Typst & LaTeX Compiler?

The Typst & LaTeX Compiler skill provides a powerful interface for generating high-fidelity PDF documents directly from source code. By utilizing the TypeTex compilation API, this tool eliminates the need for maintaining heavy local TeX Live or Typst installations. It is designed to fit seamlessly into modern developer workflows, allowing for the programmatic creation of technical reports, academic papers, and automated documentation.

As a versatile component of the Openclaw Skills library, it supports both the modern, fast Typst language and the industry-standard LaTeX ecosystem. It handles complex multi-file projects, bibliography management, and image embedding, making it an essential tool for any developer or AI agent requiring professional-grade typesetting capabilities.

Typst & LaTeX Compiler Use Cases

  • Automating the generation of academic papers or technical reports from AI-synthesized data.
  • Converting dynamic markdown or markup content into beautifully formatted PDFs for client delivery.
  • Integrating professional typesetting into CI/CD pipelines for documentation updates.
  • Building automated resume or invoice generators that require precise layout control.

How Typst & LaTeX Compiler Works

  1. The user provides the primary document content in either Typst (.typ) or LaTeX (.tex) format.
  2. Any necessary auxiliary files, such as images, stylesheets (.sty), or bibliographies, are bundled as part of the request.
  3. A POST request is dispatched to the TypeTex compilation engine via the Openclaw Skills interface.
  4. The remote engine compiles the source, resolves all dependencies, and generates the PDF output.
  5. The skill receives a base64-encoded string representing the PDF, which can then be decoded and saved to the local file system.

Typst & LaTeX Compiler Setup

To get started with this skill, ensure you have a standard environment capable of making HTTPS requests. No local compiler installation is required as the heavy lifting is handled via API. Verify the service status using the following command:

curl -X GET https://studio-intrinsic--typetex-compile-app.modal.run/public/compile/health

For a basic Typst compilation, you can use a simple curl command:

curl -X POST https://studio-intrinsic--typetex-compile-app.modal.run/public/compile/typst \
  -H "Content-Type: application/json" \
  -d '{
    "content": "#set page(paper: \"a4\")\n= Created via Openclaw Skills\nThis is a Typst document.",
    "main_filename": "main.typ"
  }' | jq -r '.pdf_base64' | base64 -d > output.pdf

Typst & LaTeX Compiler Data Schema & Taxonomy

The skill utilizes a structured JSON schema for managing compilation tasks. Below is the organization of the input and output data:

Field Description
content The raw text of the main source file to be compiled.
main_filename The entry point filename (e.g., main.typ or main.tex).
auxiliary_files An object containing additional assets. Keys are filenames, values are content (base64 for binaries).
success A boolean indicating if the compilation was successful.
pdf_base64 The resulting PDF file encoded in base64 format.
error Detailed error message returned if compilation fails.
log_output (LaTeX only) The full compilation log for debugging purposes.

Typst & LaTeX Compiler Advanced Features

  • Support for full multi-file projects using imports, includes, and custom style files.
  • High-resolution image support including PNG, JPG, SVG, and PDF formats via base64 encoding.
  • Advanced bibliography management using Hayagriva for Typst or BibTeX/BibLaTeX for LaTeX.
  • Access to the Tectonic engine for LaTeX, providing modern TeX Live package management.
  • Built-in support for complex math equations, TikZ graphics, and PGFPlots.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*