diff --git a/NEWS.md b/NEWS.md index 1c09fe6..dd95c7b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,11 @@ # Changelog +## 0.3.1 (2026-02-06) + +- 修复:当悬挂缩进小于首行缩进时的缩进错误 +- 修复:编号列表和符号列表错误 +- 修复:支持设置 `title()` 元素的字体 + ## 0.3.0 (2025-10-30) - 新特性:编号列表和符号列表支持设置每级列表的样式,包括编号宽度、编号与内容之间的间隔、对齐方式等。 diff --git a/README.md b/README.md index 03cee33..b929a1d 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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" ) diff --git a/doc/manual.typ b/doc/manual.typ index bc0d56a..d493170 100644 --- a/doc/manual.typ +++ b/doc/manual.typ @@ -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) @@ -56,7 +56,7 @@ #set align(center) #text(size: 1.5em, strong[CTyp 使用手册]) - #emph[版本: 0.3.0] + #emph[版本: ] ] CTyp 是一个用于提供 Typst 中文排版支持的包。 @@ -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 ``` @@ -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" ) @@ -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 diff --git a/src/utils/enumitem.typ b/src/utils/enumitem.typ index 312024e..5be066a 100644 --- a/src/utils/enumitem.typ +++ b/src/utils/enumitem.typ @@ -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), @@ -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), diff --git a/typst.toml b/typst.toml index a873328..2609341 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "ctyp" -version = "0.3.0" +version = "0.3.1" entrypoint = "lib.typ" authors = ["HPDell "] license = "MIT"