Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.3.1 (2026-02-06)

- 修复:当悬挂缩进小于首行缩进时的缩进错误
- 修复:编号列表和符号列表错误
- 修复:支持设置 `title()` 元素的字体

## 0.3.0 (2025-10-30)

- 新特性:编号列表和符号列表支持设置每级列表的样式,包括编号宽度、编号与内容之间的间隔、对齐方式等。
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CTyp 是一个用于提供 Typst 中文排版支持的包。
通过以下代码快速使用 CTyp 包的设置,默认使用 Fandol 字体(需自行安装):

```typ
#import "@preview/ctyp:0.3.0": ctyp
#import "@preview/ctyp:0.3.1": ctyp
#let (ctypset, cjk) = ctyp()
#show: ctypset
```
Expand All @@ -30,7 +30,7 @@ CTyp 是一个用于提供 Typst 中文排版支持的包。
如果在 Typst Web App 环境中,可以直接使用 Noto CJK 字体系列。

```typ
#import "@preview/ctyp:0.3.0": ctyp
#import "@preview/ctyp:0.3.1": ctyp
#let (ctypset, cjk) = ctyp(
fontset-cjk: "noto"
)
Expand Down
10 changes: 5 additions & 5 deletions doc/manual.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "@preview/tidy:0.4.3"
#import "@local/ctyp:0.3.0": ctyp, fandol-fontset, page-grid
#import "@local/ctyp:0.3.1": ctyp, fandol-fontset, page-grid
#import "@preview/codly:1.3.0": *
#import "@preview/codly-languages:0.1.8": *
#codly(languages: codly-languages)
Expand Down Expand Up @@ -56,7 +56,7 @@
#set align(center)
#text(size: 1.5em, strong[CTyp 使用手册])

#emph[版本: 0.3.0]
#emph[版本: ]
]

CTyp 是一个用于提供 Typst 中文排版支持的包。
Expand All @@ -74,7 +74,7 @@ CTyp 是一个用于提供 Typst 中文排版支持的包。
通过以下代码快速使用 CTyp 包的设置:

```typ
#import "@preview/ctyp:0.3.0": ctyp
#import "@preview/ctyp:0.3.1": ctyp
#let (ctypset, cjk) = ctyp()
#show: ctypset
```
Expand All @@ -86,7 +86,7 @@ CTyp 是一个用于提供 Typst 中文排版支持的包。
在 Typst Web App 环境中,可以直接使用 Noto CJK 字体系列,通过以下代码进行设置:

```typ
#import "@preview/ctyp:0.3.0": *
#import "@preview/ctyp:0.3.1": *
#let (ctypset, cjk) = ctyp(
fontset-cjk: "noto"
)
Expand Down Expand Up @@ -338,7 +338,7 @@ CTyp 包提供了以下预定义的字体集合:`fandol`, `fangzheng`, `source

#tip-box(title: [页面设置])[
```typ
#import "@local/ctyp:0.3.0": page-grid
#import "@local/ctyp:0.3.1": page-grid
#show: page-grid.with(
width: 45,
height: 70
Expand Down
4 changes: 2 additions & 2 deletions src/utils/enumitem.typ
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#let item-label = element.declare(
"item-label",
prefix: "@preview/ctyp,v0.3.0",
prefix: "@preview/ctyp,v",
fields: (
field("symbol", content, required: true),
field("width", length, default: 1em),
Expand All @@ -36,7 +36,7 @@

#let enum-label = element.declare(
"enum-label",
prefix: "@preview/ctyp,v0.3.0",
prefix: "@preview/ctyp,v",
fields: (
field("numbering", str, required: true),
field("width", length, default: 1em),
Expand Down
2 changes: 1 addition & 1 deletion typst.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ctyp"
version = "0.3.0"
version = "0.3.1"
entrypoint = "lib.typ"
authors = ["HPDell <https://github.com/hpdell>"]
license = "MIT"
Expand Down