docx: chapter cross-reference numbers don't restart per chapter (crossref: chapters: true)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- markdown, rust
調査の方向性
The bug is in how docx output numbers captioned figures with chapter cross-references (crossref: chapters: true). Start by finding where the chapter prefix and per-figure counter are computed in the Rust crossref or docx writer code, and check why the counter is not reset at each level-1 heading. Run the repro from the issue (two level-1 headings, one figure each) with --to docx and confirm the second figure reads "Figure 2.1".
索引モデルが issue の本文から書いたものです。
説明
With crossref: chapters: true, docx output numbers figures across chapters instead of restarting the count in each chapter: the first figure of chapter 2 becomes "Figure 2.2". Quarto 1 (1.11.9) gives "Figure 2.1" for the same document.
Repro (q2 0.47.0, pandoc 3.14 via QUARTO_PANDOC, Windows):
---
crossref:
chapters: true
---
# One
{#fig-a}
# Two
{#fig-b}
See @fig-a and @fig-b.
q2 render xref.qmd --to docx
Actual: captions "Figure 1.1: First" and "Figure 2.2: Second"; the references read "Figure 1.1" and "Figure 2.2".
Expected: "Figure 2.1" for the second figure, as in Quarto 1.
The chapter prefix is right, but the counter after it isn't reset at each level-1 heading.
- 主要言語
- Rust
- スター
- 316
- フォーク
- 23
- 平均マージ
- 11時間 49分
- マージ済み PR(30日)
- 245
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
quarto-dev/q2 のほかの issue
-
Heading anchor links have no icon: AnchorJS is initialised with an empty `icon`対応中かも @cscheid が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
quarto-dev/q2#1419 ·
メンテナーはふだん 1 日以内に返信
-
bug testing windows
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
quarto-dev/q2#1346 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
quarto-dev/q2#1095 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
quarto-dev/q2#1418 ·
メンテナーはふだん 1 日以内に返信
-
bug readers-writers windows
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
quarto-dev/q2#1416 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
accessibility dom
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
LadybirdBrowser/ladybird#16598 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
opengeos/RustGIS#3490 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
storytold/photocraft#18472 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
jdx/mr-boxington#1052 ·
メンテナーはふだん 1 日以内に返信