-
Notifications
You must be signed in to change notification settings - Fork 339
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 #8634 from quarto-dev/bugfix/8614
Article Layout - column forwarding
- Loading branch information
Showing
3 changed files
with
67 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: Bug 8614 | ||
format: | ||
html: | ||
page-layout: article | ||
_quarto: | ||
tests: | ||
html: | ||
ensureHtmlElements: | ||
- [".column-page > div.grid"] | ||
- [".grid.page-columns"] | ||
--- | ||
|
||
|
||
The below two computational chunks are expected to produce a table and a plot side-by-side, by using `::: {.grid}` with `::: {.g-col-6}` underneath `::: {column-page}`. | ||
|
||
::::: {.column-page} | ||
|
||
::::: {.grid} | ||
|
||
::: {.g-col-6} | ||
|
||
```{r} | ||
#| label: tbl-iris | ||
"there was a table here...but it was unnecessary for the reprex." | ||
``` | ||
::: | ||
|
||
::: {.g-col-6} | ||
|
||
```{r} | ||
#| label: fig-plot | ||
#| fig-cap: "my caption" | ||
#| fig-cap-location: bottom | ||
#| out-width: "30%" | ||
#| echo: true | ||
data(iris) | ||
hist(iris$Sepal.Length) | ||
``` | ||
::: | ||
|
||
::::: | ||
|
||
::::: |