Skip to content

Add figure numbering to captions and cross-references#13

Merged
samuelduchesne merged 1 commit intomainfrom
feat/figure-numbering
Feb 26, 2026
Merged

Add figure numbering to captions and cross-references#13
samuelduchesne merged 1 commit intomainfrom
feat/figure-numbering

Conversation

@samuelduchesne
Copy link
Copy Markdown
Contributor

Summary

  • Figures are now numbered sequentially per doc set (matching LaTeX behavior) and displayed as Figure N: caption text below images
  • Cross-references via \ref{fig:...} produce linked text [Figure N](...) instead of the raw label name, making both "Figure" and the number part of the hyperlink
  • A cleanup pass collapses duplicate Figure [Figure N](...) patterns that arise from LaTeX Figure~\ref{...} into just [Figure N](...)

Test plan

  • Run make convert VERSION=v25.2.0 and verify figure captions show numbered format
  • Check cross-doc-set figure references resolve to [Figure N](path#fig:label)
  • Verify unlabeled figures still get sequential numbers in captions
  • Confirm make check passes

🤖 Generated with Claude Code

Figures are now numbered sequentially per doc set (matching LaTeX
behavior) and displayed in captions as "Figure N: caption text".
Cross-references via \ref{fig:...} produce linked text "Figure N"
instead of the raw label name, with a cleanup pass to collapse
duplicate "Figure Figure N" patterns from LaTeX "Figure~\ref{...}".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions
Copy link
Copy Markdown
Contributor

Docs preview for this PR is available at:
https://docs.idfkit.com/pr-preview/pr-13/

github-actions Bot added a commit that referenced this pull request Feb 26, 2026
@samuelduchesne samuelduchesne merged commit f1034a9 into main Feb 26, 2026
4 checks passed
@samuelduchesne samuelduchesne deleted the feat/figure-numbering branch February 26, 2026 15:20
github-actions Bot added a commit that referenced this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant