skills/22-christopherkenny-skills/skills/latex-to-typst/SKILL.md
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.
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research latex-to-typstInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A comprehensive reference for converting LaTeX article-class documents to Typst.
.tex file to .typ| 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 |
set and show RulesLaTeX 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)
\begin/\end EnvironmentsMost 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) |
In Typst, # switches from markup mode into code mode. Inside #{ } blocks or function arguments, you write code. Markup is the default.
| 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% | — |
% 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.
#set page(), #set text(), #set par() (see 03-page-layout.md, 02-text-formatting.md)=, ==, === (see 04-headings-sections.md)$...$, block $ ... $ (see 06-math.md, 07-math-symbols.md)#figure(image(...), caption: [...]) (see 08-figures.md)#table(...) or #figure(table(...), ...) (see 09-tables.md)#bibliography("refs.bib") + @key citations (see 10-bibliography.md)#canvas({...}) with CeTZ (see 12-diagrams-cetz.md)<label> + @label (see 11-cross-references.md)tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.