typst-physica

typst公式中的微分、偏微分方程编写,latex公式转typst。

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

This Claude skill streamlines the process of writing complex mathematical and scientific formulas in Typst. It specializes in differential and partial differential equations (PDEs) using simplified syntax, provides seamless LaTeX-to-Typst conversion, and offers guidance on professional document layout and typography to enhance academic and technical documentation.

Use Cases

  • Academic Paper Conversion: Efficiently migrate research papers from LaTeX to Typst while maintaining accurate mathematical notation and structure.
  • Scientific Equation Authoring: Simplify the writing of complex partial differential equations (PDEs) and ordinary differential equations (ODEs) using intuitive shorthand like 'pdv' and 'dv'.
  • Technical Report Formatting: Apply professional typesetting standards, including proper fraction handling, text embedding in formulas, and hierarchical heading spacing for structured reports.
  • Typst Template Integration: Quickly set up document environments using specific packages like 'modern-cug-report' for consistent academic styling.
nametypst-physica
descriptiontypst公式中的微分、偏微分方程编写,latex公式转typst。

引用包

应在typst文档的开头,引用包。公式编写、文档排版,依赖modern-cug-report。

用于如果已经引用了modern-cug-report,则无需再重复添加了。

#import "@local/modern-cug-report:0.1.3": *
#show: doc => template(doc, footer: "CUG水文气象学2025", header: "")

偏微分方程

  • (∂ theta) / (∂ t)

    \frac{\partial \theta}{\partial t}采用typst编写会非常简单,pdv(theta, t)

    (partial.diff theta) / (partial.diff t) // 是错误写法
    pdv(theta, t)                           // 正确写法
    
  • (d theta) / (d t)则是:dv(theta, t)

text

typst公式中的本文需要使用引号:

q_(infiltration)   // 错误
q_("infiltration") // 正确

fraction

  • latex的\frac{y}{x},写成typst则是y/x;

    若分子、分母有多个变量,则用括号括起来。例如latex的\frac{y z}{x},写成typst则是(y z) / x

排版

  • 一级标题之前空两行,凸显章节的层次感。

  • 第一个一级标题,不用空两行。