Slideshow: a cross-reference to a section has no number at the default numbering level
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- latex
調査の方向性
Start in xsl/pretext-numbers.xsl, at the division serial-number template that returns an empty serial for divisions above the division numbering level. Reproduce by building a slideshow with a section and an xref to it at numbering level 0, and confirm the PTX:ERROR appears. Done when a template matching slideshow/section returns @pi:serial, the xref reads "Section 2" in both reveal.js and Beamer, and books and articles are unchanged.
索引モデルが issue の本文から書いたものです。
説明
At the default division numbering level for a slideshow, 0, a slideshow's section is unnumbered. So an xref to it, with the default text style, draws
PTX:ERROR: An <xref> wants to build text using a number to identify the target, but the target (which has @xml:id "…") does not have a number.
and renders as "See Section." with no number, in both reveal.js and Beamer. Observed at 6a4acf657, after #3237 made level 0 the default for every slideshow; before #3237 slideshow sections were not numbered either.
Why: assembly always stamps a slideshow's sections with @pi:serial, but the division serial-number template in xsl/pretext-numbers.xsl returns an empty serial number for a division above the division numbering level. A slideshow's section is at level 1, above the default of 0.
Possible fix: a serial-number template for slideshow/section that always returns @pi:serial, so a slideshow's sections are always numbered and a cross-reference reads "Section 2". Its more specific match (slideshow/section) means it applies only to a slideshow's sections, so books and articles are unaffected. The division level would then decide only whether slide numbers include the section number (level 1) or not (level 0). Beamer's contents frame already numbers the sections 1, 2, 3, …, so these numbers would agree with it.
Claude Opus 5.5, acting as a coding assistant for Rob Beezer
- 主要言語
- XSLT
- スター
- 466
- フォーク
- 251
- 平均マージ
- 4分
- マージ済み PR(30日)
- 13
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PreTeXtBook/pretext のほかの issue
-
The print preview leaves writing space short by the margins of hidden headers, footers and solutionsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PreTeXtBook/pretext#3329 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
PreTeXtBook/pretext#3305 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PreTeXtBook/pretext#3297 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
PreTeXtBook/pretext#3285 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PreTeXtBook/pretext#3283 ·
メンテナーはふだん 1 日以内に返信
PreTeXtBook/pretext の issue をすべて見る
似ている issue
-
priority: low
難易度 1/5 1〜3時間 初心者へのやさしさ 83/100
storytold/vectorcraft#8387 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Negative cube sizeオープン
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
MCModderAnchor/tacwiki#14 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
streaming-video-technology-alliance/common-media-library#700 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
BurntSushi/jiff#715 ·
メンテナーはふだん 1 日以内に返信