Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add demo of crossref improvement to blog post #1270

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/blog/posts/2024-xx-xx-1.6-release/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,27 @@ draft: true

Quarto 1.6 has been officially released! You can get the current release from the [download page](/docs/download/index.qmd)

## Crossrefs

It should now be easier to get Quarto to recognize subfloats (subtables, subfigures, etc) when they're emitted by code cells.
If the `subcap` attribute of a code cell has as many entries as the number of outputs from your code cell, Quarto knows to accept those as subfloats.
See [#10328](https://github.com/quarto-dev/quarto-cli/issues/10328) for details.

Minimal example:

````
```{{r}}
#| label: tbl-example
#| tbl-cap: I want these images to be interpreted as Tables.
#| tbl-subcap:
#| - This is the subcaption for the first subtable
#| - This is the subcaption for the second subtable
plot(1:10)
plot(11:20)
```
````

![The result of executing the above code cell in HTML format](./subcells-and-subfloats.png)

## Acknowledgements

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading