cap-able:0.1.1#4845
Open
SchrodingerBlume wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
Edited to fix cross-refs. Sorry for the noise! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am submitting
Description:
Fixed
hlinesrowindex was incorrectly shifted relative to the markdown table whencontinued-caption: true(BUG: 设置 continued-caption: true 似乎会导致一些非预期行为的出现 SchrodingerBlume/typst-cap-able#8). The injected caption row at y=0 was not compensated for, sorow: 2ended up between the caption and the markdown header. After the fix,rowis always indexed against the markdown table itself, regardless ofcontinued-caption.row: N+1as a workaround, switch back torow: N— otherwise you'll get two overlapping lines.subcaption-number-title-spacingwith a length value (e.g.0.3em) raised"cannot join string with length"because the length was joined into the content directly; this also suppressed hidden-figure registration, causing the chain failure where@subfigreported "label not exist" (BUG: show-subcaption: true 和 subcaption-number-title-spacing 组合使用,引用报错 SchrodingerBlume/typst-cap-able#9). Fix routes the value throughhandle-spacing, which wraps lengths/relatives intoh(...)and passes content through.Added
subref-styleconfig oncapfig-style/capsubfig(default"letter", new"full") — controls the letter style of@subfigcross-references."letter"shows just the letter (backward-compatible,Fig. 1a);"full"keeps thelabel-styledecorations (Fig. 1(a)). In"full"modelabel-sepdefaults to empty (decorations already separate visually). Sync sub-reference display withlabel-style(e.g. Figure 1(a)) SchrodingerBlume/typst-cap-able#10.extra-ruleconfig oncaptab/captab-style(default0.5pt) — default stroke forhlines/vlinesentries that omitstroke, so you don't repeat the same stroke per line. Accepts a single value (shared by h & v) or(h: ..., v: ...)dict for per-axis. Per-linestrokestill wins.hlines/vlinesentries now accept an int shorthand:hlines: (2, 3, 4)≡((row: 2,), (row: 3,), (row: 4,)). Can mix with full dicts:hlines: (2, (row: 5, stroke: 1pt), 7).