Skip to content

FR: customization options for cross references in book project #2356

@cscheid

Description

@cscheid

Discussed in #2345

Originally posted by rgaiacs September 7, 2022
It's common for academic articles to have "supplementary material"/"supporting information" that publishers process as a different document. The main article will reference the supplementary material, for example

Table S1 has additional statistics

Will be great for Quarto to support more customization for cross reference.

Minimal Working Example

Download all files

_quarto.yml:

project:
  type: book

book:
  title: "MWE"
  author: "Raniere Silva"
  chapters:
    - index.qmd
  appendices:
    - data.qmd

crossref:
  appendix-title: "Supporting Information"

format:
  docx:
    toc: false
    number-sections: false

index.qmd:

# Material and Methods

Some text, see @tbl-iris in @sec-data for details.

data.qmd:

# Data Processing {#sec-data}

```{r}
#| label: tbl-iris
#| tbl-cap: Iris

iris |>
  head() |>
  knitr::kable()
```

Observed Output

Screenshot from 2022-09-08 09-31-12

Expected Output

  • Tables and Figures be numbered with S as prefix.

Screenshot from 2022-09-08 09-36-20

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions