quarto-dev / quarto-dev/quarto-cli

Feature request: Custom start for arabic cross reference numbering scheme

Open
#11,038 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

crossref enhancement
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

It would be great to add the ability to set the starting point for the arabic cross reference numbering scheme: https://quarto.org/docs/authoring/cross-reference-options.html#numbering

This is already possible for all of the other cross reference numbering schemes.

The two use cases for this would be to start a new document with zero-based numbering and to continue the numbers from an existing document in a subsequent document:

---
title: "New document with zero-based numbering"
crossref:
  labels: arabic 0
---
---
title: " Continuation to a document with X figures, Y tables, and Z code listings"
crossref:
  fig-labels: arabic X
  tbl-labels: arabic Y
  lst-labels: arabic Z
---

I can volunteer to work on a pull request if someone could direct me to the place where the cross reference numbering logic lives.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the cross-reference numbering documentation linked in the issue and trace the implementation of the existing non-Arabic starting values. Verify the YAML examples for crossref.labels, fig-labels, tbl-labels, and lst-labels, including zero-based and continuation cases; done means Arabic numbering accepts the requested start values consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.