Skip to content

Commit

Permalink
add demo of crossref improvement to blog post (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid authored Jul 19, 2024
1 parent c0c0be7 commit 0391888
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
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.

0 comments on commit 0391888

Please sign in to comment.