quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.73k stars 305 forks source link

Epic: Crossref Overhaul #4944

Open allenmanning opened 1 year ago

allenmanning commented 1 year ago

ASAP

Later

Outstanding Tasks

Wontfix

Needs project overhaul (so will be worked on after that epic)

cscheid commented 1 year ago

I'm starting to check off issues that are resolved on the branch feature/float-crossref. For quarto users reading this, please don't take the checked-off boxes in here to mean that this work is ready to use. (feature/float-crossref is specifically not in a usable state right now.)

mcanouil commented 1 year ago

(edited by cscheid to move issue to main comment)

mcanouil commented 1 year ago

(edited by cscheid to move issue to main comment)

bryanhanson commented 1 year ago

I don't see it explicitly here, so for completeness make videos cross-referable, discussed here.

From my perspective, the format that would be consistent would be @vid-my-video or something similar.

cscheid commented 1 year ago

@bryanhanson You will implement the category yourself. It's under "Customizable categories for Float and Block crossreferences"

bryanhanson commented 1 year ago

@cscheid sorry I don't understand. Do you want me to add it there? I can't edit that task list. Or are you saying when completed I'll be able to define the particular type of cross-ref myself? Or something else?

mcanouil commented 1 year ago

@bryanhanson to rephrase:

mcanouil commented 1 year ago

(edited by cscheid to move issue to main comment)

cscheid commented 11 months ago

@bryanhanson As of the latest commit on main, what you're suggesting is possible. We still have to write (a lot of) documentation for the features, but see https://github.com/quarto-dev/quarto-cli/blob/main/tests/docs/crossrefs/v1.4/custom-categories/diagrams.qmd for a minimal example.

cscheid commented 9 months ago

Done in v1.4

bcdavasconcelos commented 8 months ago

Not sure whether/where to post this: The Typst output doesn't have any defined Amsthm cross-reference environments in version 1.4.537. (This causes rendering to fail). Hope this helps.

mcanouil commented 8 months ago

It does not really without a reproducible example.

Could you open a new issue with a reproducible example? Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks.

You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````).

````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---

This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.

```{r}
plot(cars)

A placeholder image

The end.

bcdavasconcelos commented 8 months ago

My pleasure, @mcanouil. See https://github.com/quarto-dev/quarto-cli/issues/8167.

cscheid commented 2 months ago

See https://github.com/quarto-dev/quarto-cli/discussions/10020

acxz commented 1 month ago

@cscheid I noticed from the OP that certain docx cross reference features are slated as won't fix.

Would it be possible to revisit this? Specifically creating lof and lot in docx similar to toc? (I realize this may need to be a pandoc issue instead see: https://github.com/jgm/pandoc/issues/8245) See: https://github.com/quarto-dev/quarto-cli/discussions/2464 for more conversation regarding this. Let me know if I should create a specific issue to track this or if the discussion is enough, considering it is already being tracked in the OP.

cscheid commented 1 month ago

Would it be possible to revisit this?

Not at the near future, sorry.