latex-to-typst
Translates LaTeX documents (.tex) to Typst (.typ), focusing on article-class documents
Install / Use
npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill latex-to-typstInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Content & MediaSupported Platforms
Tags
Our assessment of latex-to-typst
latex-to-typst scores 88/100 on our quality scale, 249th of 574 Content & Media skills we index (top 44%).
Its SKILL.md is 5.2 KB long, well organised into 10 sections with 4 code examples: a solid amount of guidance for an agent.
With 4,360 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 3 days ago, so latex-to-typst is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
latex-to-typst compared with similar skills
All 4 of these similar skills score higher than latex-to-typst; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| latex-to-typst (this skill)by brycewang-stanford | 88 | 4.4k | 3d ago | SKILL.md |
| siyuanby siyuan-note | 100 | 46.5k | today | MCP Server |
| algorithmic-artby anthropics | 100 | 177.9k | 4d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 4d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 130.2k | 5d ago | SKILL.md |
Frequently asked questions
- How do I install latex-to-typst?
- Run
npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill latex-to-typst. The install tabs above show the steps for each supported agent. - Which AI agents does latex-to-typst work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is latex-to-typst safe to use?
- It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is latex-to-typst still maintained?
- The repository was last updated 3 days ago, so latex-to-typst is actively maintained.
Skill content
View source on GitHubname: latex-to-typst description: 'Translates LaTeX documents (.tex) to Typst (.typ), focusing on article-class documents. Use when asked to convert, port, migrate, or translate LaTeX to Typst. Covers document structure, text formatting, page layout, math equations and symbols, figures, tables, TikZ-to-CeTZ diagrams, bibliography, cross-references, footnotes, and code blocks. Includes comprehensive symbol mapping tables.'
LaTeX to Typst Translation Guide
A comprehensive reference for converting LaTeX article-class documents to Typst.
When to Use This Skill
- User asks to convert, port, or translate a
.texfile to.typ - User wants to know the Typst equivalent of a LaTeX command
- User is migrating an academic paper or report from LaTeX to Typst
- User needs help with specific LaTeX environments in Typst
Quick Navigation: Use What Reference
| Task | Reference File |
|------|---------------|
| Overall document structure, preamble → set rules | 01-document-structure.md |
| Bold, italic, fonts, font sizes, colors | 02-text-formatting.md |
| Margins, page size, columns, headers/footers | 03-page-layout.md |
| \section, \subsection, numbering | 04-headings-sections.md |
| itemize, enumerate, description | 05-lists.md |
| Math mode, equations, aligned, matrices, operators | 06-math.md |
| Symbol table: arrows, Greek, operators, sets, logic | 07-math-symbols.md |
| \includegraphics, figure environment, subfigures | 08-figures.md |
| tabular, booktabs, tabularx, multirow/multicolumn | 09-tables.md |
| BibTeX, biblatex, natbib → bibliography, cite | 10-bibliography.md |
| \label, \ref, \eqref, \autoref | 11-cross-references.md |
| TikZ → CeTZ diagrams | 12-diagrams-cetz.md |
| verbatim, lstlisting, minted; footnotes, links | 13-misc.md |
Key Conceptual Differences
Preamble → set and show Rules
LaTeX uses a \documentclass{article} preamble with \usepackage calls. Typst replaces this with set rules (for properties) and show rules (for transformations), placed at the top of the document.
% LaTeX
\documentclass[12pt,a4paper]{article}
\usepackage[margin=1in]{geometry}
\usepackage{fontenc}
\setmainfont{Times New Roman}
// Typst equivalent
#set page(paper: "a4", margin: 1in)
#set text(font: "Times New Roman", size: 12pt)
No \begin/\end Environments
Most LaTeX environments have direct Typst function equivalents. For example:
| LaTeX | Typst |
|-------|-------|
| \begin{equation}...\end{equation} | $ ... $ (block, with space) |
| \begin{figure}...\end{figure} | #figure(...) |
| \begin{tabular}...\end{tabular} | #table(...) |
| \begin{itemize}...\end{itemize} | - item (markup) |
Content vs. Code Mode
In Typst, # switches from markup mode into code mode. Inside #{ } blocks or function arguments, you write code. Markup is the default.
Units
| LaTeX | Typst | Notes |
|-------|-------|-------|
| pt | pt | Same |
| em | em | Same |
| cm | cm | Same |
| mm | mm | Same |
| in | in | Same |
| \textwidth | 100% (relative to container) | — |
| 0.5\textwidth | 50% | — |
Minimal Article Template
% LaTeX article
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath}
\title{My Paper}
\author{Jane Doe}
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
This paper...
\end{abstract}
\section{Introduction}
Hello world.
\end{document}
// Typst equivalent
#set page(margin: 1in)
#set text(size: 12pt)
#align(center)[
= My Paper
Jane Doe \
#datetime.today().display()
]
#set par(justify: true)
*Abstract.* This paper...
= Introduction
Hello world.
For a more polished article template with abstract box, see 01-document-structure.md.
Workflow for Full Document Conversion
- Convert preamble →
#set page(),#set text(),#set par()(see 03-page-layout.md, 02-text-formatting.md) - Convert sectioning →
=,==,===(see 04-headings-sections.md) - Convert math → inline
$...$, block$ ... $(see 06-math.md, 07-math-symbols.md) - Convert figures →
#figure(image(...), caption: [...])(see 08-figures.md) - Convert tables →
#table(...)or#figure(table(...), ...)(see 09-tables.md) - Convert bibliography →
#bibliography("refs.bib")+@keycitations (see 10-bibliography.md) - Convert TikZ →
#canvas({...})with CeTZ (see 12-diagrams-cetz.md) - Fix cross-references →
<label>+@label(see 11-cross-references.md)
Related Skills
siyuan
46.5kAn open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
130.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
