-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7613 from quarto-dev/bugfix/7604
make longtable environments work with new crossref system
- Loading branch information
Showing
8 changed files
with
113 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "7604" | ||
format: pdf | ||
--- | ||
|
||
```{r} | ||
library(kableExtra) | ||
``` | ||
|
||
```{r} | ||
#| label: tbl-sad-broken | ||
#| tbl-cap: "This table is cross-referenceable but no longer breaks across pages because it's inside `\\centering{}`" | ||
rbind(mtcars, mtcars) |> | ||
kbl(longtable = TRUE, booktabs = TRUE) |> | ||
kable_styling() | ||
``` | ||
|
||
::: {#tbl-also-sad} | ||
```{r} | ||
rbind(mtcars, mtcars) |> | ||
kbl(longtable = TRUE, booktabs = TRUE) |> | ||
kable_styling() | ||
``` | ||
|
||
This table is also cross-referenceable but also doesn't break across pages because of the same `\centering{}` problem | ||
::: | ||
|
||
|
||
see @tbl-sad-broken and @tbl-also-sad. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters