本文へ移動
cccskills
無料GitHub で公開

latex-to-typst

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.

インストール方法を見る

含まれるファイル(14)

  • SKILL.md5.3 KB
  • references/01-document-structure.md4.1 KB
  • references/02-text-formatting.md5.9 KB
  • references/03-page-layout.md4.6 KB
  • references/04-headings-sections.md4.1 KB
  • references/05-lists.md4.1 KB
  • references/06-math.md8.2 KB
  • references/07-math-symbols.md11.2 KB
  • references/08-figures.md5.0 KB
  • references/09-tables.md6.4 KB
  • references/10-bibliography.md4.0 KB
  • references/11-cross-references.md4.4 KB
  • references/12-diagrams-cetz.md6.5 KB
  • references/13-misc.md7.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 .tex file 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

TaskReference File
Overall document structure, preamble → set rules01-document-structure.md
Bold, italic, fonts, font sizes, colors02-text-formatting.md
Margins, page size, columns, headers/footers03-page-layout.md
\section, \subsection, numbering04-headings-sections.md
itemize, enumerate, description05-lists.md
Math mode, equations, aligned, matrices, operators06-math.md
Symbol table: arrows, Greek, operators, sets, logic07-math-symbols.md
\includegraphics, figure environment, subfigures08-figures.md
tabular, booktabs, tabularx, multirow/multicolumn09-tables.md
BibTeX, biblatex, natbib → bibliography, cite10-bibliography.md
\label, \ref, \eqref, \autoref11-cross-references.md
TikZ → CeTZ diagrams12-diagrams-cetz.md
verbatim, lstlisting, minted; footnotes, links13-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:

LaTeXTypst
\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

LaTeXTypstNotes
ptptSame
ememSame
cmcmSame
mmmmSame
ininSame
\textwidth100% (relative to container)—
0.5\textwidth50%—

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

  1. Convert preamble → #set page(), #set text(), #set par() (see 03-page-layout.md, 02-text-formatting.md)
  2. Convert sectioning → =, ==, === (see 04-headings-sections.md)
  3. Convert math → inline $...$, block $ ... $ (see 06-math.md, 07-math-symbols.md)
  4. Convert figures → #figure(image(...), caption: [...]) (see 08-figures.md)
  5. Convert tables → #table(...) or #figure(table(...), ...) (see 09-tables.md)
  6. Convert bibliography → #bibliography("refs.bib") + @key citations (see 10-bibliography.md)
  7. Convert TikZ → #canvas({...}) with CeTZ (see 12-diagrams-cetz.md)
  8. Fix cross-references → <label> + @label (see 11-cross-references.md)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

a1

無料

VS-Enhanced Research Question Refiner - Prevents Mode Collapse and derives differentiated research questions Enhanced VS 3-Phase process: Modal question avoidance, alternatives presentation, differentiated RQ recommendation Use when: refining research ideas, formulating research questions, clarifying scope Triggers: research question, 연구 질문, PICO, SPIDER, research idea

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

a2

無料

VS-Enhanced Theoretical Framework Architect with Critique & Visualization Full VS 5-Phase process: Modal theory avoidance, Long-tail exploration, differentiated framework presentation Absorbed A3 (Devil's Advocate) critique and A6 (Conceptual Framework Visualizer) capabilities Use when: building theoretical foundations, designing conceptual models, deriving hypotheses, critiquing frameworks, visualizing models Triggers: theoretical framework, 이론적 프레임워크, conceptual model, 개념적 모형, hypothesis derivation, critique, devil's advocate, 반론, visualization, diagram

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

a5

無料

Agent A5 - Paradigm & Worldview Advisor - Philosophical foundations for research design. Covers ontology, epistemology, axiology, and methodology alignment. Use when: establishing philosophical foundations, justifying methodological choices, writing positionality statements Triggers: paradigm, 패러다임, ontology, epistemology, worldview, 세계관, philosophical foundations, 철학적 기초

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

Academic paper writing skill with 12-agent pipeline. v2.5: Style Calibration (learn author's writing voice from past papers) + Writing Quality Check (writing quality checklist for natural prose). Supports IMRaD, literature review, theoretical, case study, policy brief, and conference paper structures. APA 7.0 (default), Chicago, MLA, IEEE, Vancouver citation formats. Bilingual abstracts (zh-TW + EN). Multi-format output (LaTeX, DOCX, PDF, Markdown). Triggers on: write paper, academic paper, paper outline, write abstract, revise paper, check citations, convert to LaTeX, guide my paper, parse reviews, revision roadmap, 寫論文, 學術論文, 論文大綱, 寫摘要, 修改論文, 檢查引用, 引導我寫論文, 帶我規劃論文, 逐章規劃, 論文架構, 審查意見, 修訂路線圖.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want to: (1) write a paper from a detailed outline, (2) ensure quality control during writing, (3) maintain consistency across chapters, (4) prepare a submission-ready manuscript, or (5) systematically execute a planned paper. Triggered by phrases like 'write the paper from this outline,' 'compose the full manuscript,' 'execute the outline,' or when users have completed strategic planning (academic-paper-strategist skill) and are ready to write. Takes optimized outline as input; outputs complete manuscript with iterative quality checks.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

Multi-perspective academic paper review with dynamic reviewer personas. Simulates 5 independent reviewers (EIC + 3 peer reviewers + Devil's Advocate) with field-specific expertise. Supports full review, re-review (verification), quick assessment, methodology focus, and Socratic guided modes. Triggers on: review paper, peer review, manuscript review, referee report, review my paper, critique paper, simulate review, editorial review.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

brycewang-stanford のスキルをすべて見る

このスキルの問題を報告する