1.0.22
Inherit depth: inheriting a parent number is no longer all-or-nothing / 继承级数:继承父级编号不再是全有或全无
English
One new setting, contributed by the community (PR #7 — thank you!).
-
Inherit depth, a new column in the template editor next to the existing inherit-parent checkbox. Until now, inheriting was all-or-nothing: a level either reached all the way up to the start level (
1.1.1) or showed nothing but its own numeral (a)). There was no way to say "take just the one level above me."That middle ground is common in real documents. You want H1 to stand alone as
一、/二、, H2 to start its own count at1, and H3 to carry only its H2 parent —2.1, not2.1.1with H1 dragged into the prefix. The only previous workaround was pushing the start level deeper, which cancelled H1's numbering along with it.Set it per level: All (the default, unchanged behavior) or a number. The result never reaches above your start level, no matter how large a number you pick.
-
Everything else keeps working the same way. Ancestor numeral rendering only converts the ancestors you actually inherit; skip-level fill/drop applies within the trimmed range; the start-index offset lands on the real start-level segment, and is simply absent when that segment has been trimmed away.
skipFill = don't numbernarrowed to match: a gap above the inherited range no longer blocks a heading from being numbered, while a missing direct parent still does.
Upgrade is a no-op. The field defaults to "All" and is absent from existing templates, which reads as "All" — every template you already have numbers exactly as it did in 1.0.21, byte for byte.
中文
一个新设置,来自社区贡献(PR #7,感谢!)。
-
继承级数,模板编辑器里「继承前级」旁边新增的一列。此前继承是全有或全无:某一级要么一路拼到起始层级(
1.1.1),要么只剩自己的序号(a)),没有办法表达「只往上带一级」。而这个中间态在真实文档里很常见。你想让 H1 独立成「一、」「二、」,H2 另起一套从
1开始,H3 只带上它的 H2 父级——得到2.1,而不是把 H1 也拖进前缀的2.1.1。此前唯一的绕法是把起始层级调深,代价是连 H1 的编号一起取消了。逐级设置:全部(默认,即原有行为)或一个数字。无论填多大,结果都不会越过你设定的起始层级。
-
其余字段的行为一律不变。 祖先序号渲染只转换你实际继承到的那些祖先段;跳级的补位 / 不补位只在截取后的范围内生效;起始编号数字的偏移落在真正的起始层级段上,该段被截掉时就不加偏移。
skipFill = 不编号同步收窄:继承范围之外的浅层缺失不再否决本级编号,范围之内缺直接父级仍然不编号。
升级无感。 该字段默认「全部」,且在你已有的模板里根本不存在——不存在即按「全部」处理,所有老模板的编号结果与 1.0.21 逐字节一致。