Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/docs/crossrefs/tables.qmd
6434 views
---
title: Table Crossref Test
_quarto:
  tests:
    html:
      ensureHtmlElements:
        - []
        - []
---

## Simple Crossref Table

| Col1 | Col2 | Col3 |
|------|------|------|
| A    | B    | C    |
| E    | F    | G    |
| A    | G    | G    |

: My Caption {#tbl-letters}

See @tbl-letters.

## Sub tables

::: {#tbl-panel layout-ncol=2}
| Col1 | Col2 | Col3 |
|------|------|------|
| A    | B    | C    |
| E    | F    | G    |
| A    | G    | G    |

: First Table {#tbl-first}

| Col1 | Col2 | Col3 |
|------|------|------|
| A    | B    | C    |
| E    | F    | G    |
| A    | G    | G    |

: Second Table {#tbl-second}

Main Caption
:::

See @tbl-panel for details, especially @tbl-second.

## List tables

::: {#tbl-list .list-table}

This has a caption. {tbl-colwidths=[20,40,40]}

* - Row 1, Col 1
  - Row 1, Col 2
  - Row 1, Col 3

* - Row 2, Col 1
  - Row 2, Col 2
  - Row 2, Col 3

:::

see @tbl-list.