Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/authoring/cross-references-divs.qmd
Original file line number Diff line number Diff line change
@@ -136,6 +136,23 @@ In the above example, you can reference the figure with `@fig-line-plot`, but no

{{< include _cross-reference-divs-table.qmd >}}

<!-- see https://github.com/quarto-dev/quarto-cli/discussions/4849#discussioncomment-11622517 -->
In PDF output, if you want to specify table float placement (e.g., T for top), be sure to add both `tbl-pos="t"` and `layout-ncol="1"` in the div:

````markdown
::: {#tbl-rubric tbl-pos="t" layout-ncol="1"}

| Criterion | Meets Expectations (10) | Needs Improvement (5) |
|-------------------|-------------------------|------------------------|
| **Understanding** | Clear understanding. | Unclear understanding. |
| **Completion** | Task completed. | Task incomplete. |

: Sample grading rubric

:::

````

If the table is produced by an executable code cell, put the cell inside the div as content, e.g:

````markdown