Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Typst Title NumberingNew to Visual Studio Code? Get it now.
Typst Title Numbering

Typst Title Numbering

kongdd

|
108 installs
| (0) | Free
Typst title automatically numbering
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

typst-title-numering for VSCode

Typst章节标题自动编号

version installs GitHub Workflow Status GitHub stars GitHub Contributors

在vscode插件商店中搜索typst-title-numering,安装。

使用方法

  • 使用快捷键Ctrl + Shift + u自动更新编号;

  • 如果想移除编号,需要在vscode控制面板使用,remove section numbering命令。

示例

// = LEVEL1,隐藏的一级标题,下文H1章节编号从2开始
// = LEVEL1,隐藏的一级标题,下文H1章节编号从3开始

这样可以方便的从任意一章开始编号,不同章节放到不同的typst文件中。

= 3 LEVEL1

$ 
  y 
  = x + 1 // 公式里面的"="不会被当作标题标记,但"="不能单独空一行
$

== LEVEL2 // <!-- omit in toc -->

这是不参与编号的章节。`// <!-- omit in toc -->`后面不要写其他文字。

*用途*:摘要,参考文献,Acknowledgements等不需要编号的章节。


== 3.1 LEVEL2

因为前面有三个隐藏的一级标题,一个omit的二级标题,因此章节编号为3.1。


=== 3.1.1 LEVEL3

- 使用快捷键`Ctrl + Shift + u`自动更新编号;

- 如果想移除编号,需要在vscode控制面板使用,`remove section numbering`命令。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft