ggtypst

Render Typst text and math inside ggplot2 graphs without external LaTeX.

28|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/Yousa-Mirage/ggtypst --skill ggtypst
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ggtypst
Source: https://github.com/Yousa-Mirage/ggtypst/tree/main/ggtypst-skill
Command: npx skills add https://github.com/Yousa-Mirage/ggtypst --skill ggtypst

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables the integration of Typst-powered text and math rendering within ggplot2 charts, eliminating the need for external LaTeX or Typst installations and streamlining the creation of publication-quality graphics.

Core Features & Use Cases

  • Text and Math Rendering: Embed rich typographical and mathematically formatted content directly into ggplot2 plots.
  • Annotation and Data Labels: Use for precise, data-driven labels or one-off annotations with Typst or LaTeX math.
  • Theme Elements: Customize plot titles, axis labels, and legends with Typst-rendered text for consistent styling.

Quick Start

Use the ggtypst package to add a math expression to your ggplot2 plot by running annotate_math_typst() with raw string syntax for LaTeX math.

Frequently Asked Questions about ggtypst

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add math expressions to ggplot2 annotations without installing LaTeX?

You can add math expressions to ggplot2 annotations without installing LaTeX by using the ggtypst package, which converts Typst or LaTeX math syntax on the fly for direct plot rendering.

Can I use Typst to customize text formatting in ggplot2 plot themes?

Yes, you can use Typst to customize text formatting in ggplot2 plot themes. This package supports applying high-quality Typst-rendered text to plot titles, axis labels, and legends for consistent publication styling.

What is the best way to render complex mathematical equations inside R data visualizations?

The best way to render complex mathematical equations inside R data visualizations is using the ggtypst package to embed high-quality Typst-rendered math directly into ggplot2 graphs without external setup.

Do I need a local Typst installation to render math labels in ggplot2?

No, you do not need a local Typst installation to render math labels in ggplot2. This package ensures compatibility by converting expressions on the fly, eliminating the need for external Typst or LaTeX environments.

How do I add one-off data labels with LaTeX math to my ggplot2 charts?

You can add one-off data labels with LaTeX math to your ggplot2 charts by running the annotate_math_typst() function with raw string syntax for precise, data-driven annotations.

Why use Typst rendering instead of standard ggplot2 text for publication-ready graphics?

Use Typst rendering instead of standard ggplot2 text for publication-ready graphics to embed rich typographical and mathematically formatted content directly into plots, ensuring high-quality complex formatting that standard text cannot support.