Typst output doesn't center within layout-ncol divs #12582
-
The expected behavior is that the output inside the ncol should be centered within each half just like the single output but it is not ---
title: "Reproducible Quarto Document"
format: typst
echo: false
warning: false
---
```{r}
library(tinytable)
df <- data.frame(A = c(1,2,3),
B = c(1,2,3),
C = c(1,2,3))
```
:::{layout-ncol=2}
```{r}
df |>
tinytable::tt() |>
tinytable::style_tt(i=0,align = "c")
```
```{r}
df |>
tinytable::tt() |>
tinytable::style_tt(i=0,align = "c")
```
:::
```{r}
df |>
tinytable::tt() |>
tinytable::style_tt(i=0,align = "c")
```
Quarto 1.6.9 [✓] Checking tools....................OK [✓] Checking LaTeX....................OK [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK [✓] Checking Jupyter engine render....OK [✓] Checking R installation...........OK [✓] Checking Knitr engine render......OK |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Could you properly format your post using code blocks for code and terminal outputs? Thanks. We request small reproducible example. Asking for
As outlined in the template you just filled, if you don't know, open a GitHub discussion. Finally, you did not provide the output of |
Beta Was this translation helpful? Give feedback.
-
---
title: "Reproducible Quarto Document"
format: typst
echo: false
warning: false
---
```{r}
library(tinytable)
df <- data.frame(A = c(1,2,3),
B = c(1,2,3),
C = c(1,2,3))
```
:::{layout-ncol=2}
```{r}
df |>
tinytable::tt() |>
tinytable::style_tt(i=0,align = "c")
```
```{r}
df |>
tinytable::tt() |>
tinytable::style_tt(i=0,align = "c")
```
:::
```{r}
df |>
tinytable::tt() |>
tinytable::style_tt(i=0,align = "c")
``` |
Beta Was this translation helpful? Give feedback.
-
Quarto 1.6.9 [✓] Checking tools....................OK [✓] Checking LaTeX....................OK [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK [✓] Checking Jupyter engine render....OK [✓] Checking R installation...........OK [✓] Checking Knitr engine render......OK |
Beta Was this translation helpful? Give feedback.
Placing the layout options all together should work.
I know the valign one does not.