quarto-web icon indicating copy to clipboard operation
quarto-web copied to clipboard

Give an example with tbl-pos="t" that also needs layout-ncol="1" to w…

Open fuhrmanator opened this issue 11 months ago • 4 comments

…ork in PDF

See the comment at https://github.com/quarto-dev/quarto-cli/discussions/4849#discussioncomment-11622517

I'm suggesting an example be added to the documentation, as it took me a long time to figure this out!

fuhrmanator avatar Jan 20 '25 00:01 fuhrmanator

/deploy-preview

cderv avatar Jan 20 '25 15:01 cderv

🚀 Deployed on https://deploy-preview-1549.quarto.org

github-actions[bot] avatar Jan 20 '25 15:01 github-actions[bot]

looks good to me at https://deploy-preview-1549.quarto.org/docs/authoring/cross-references-divs.html#tables

image

fuhrmanator avatar Jan 20 '25 20:01 fuhrmanator

Thanks, this looks good indeed.

Re-reading your example in preview raises one question: Why layout-ncol=1 is needed ? This looks like a problem that should be solved, and not just documented officially. 🤔

Did we look into that in an issue and not just the comment linked ?

@cscheid does this seem right to you that we document we need layout-ncol=1 to trigger the float positionning ?


::: {#tbl-tm2 tbl-pos="t" layout-nrow=1}

| A | B | C |
|---|---|---|
| 1 | 2 | 3 |

Caption
:::

cderv avatar Jan 21 '25 09:01 cderv