Search code examples
latexquarto

Customize table number in quarto


I'm writing a journal article and I'm putting each table in its own Quarto file, because I don't like to put them into the main tex and moreover I think there's a bug in apaquarto extension that prevents labelled tables from spanning multiple pages.

So a table quarto file looks like this:

---
format:
  pdf:
    papersize: A4
    classoption: [landscape]
---

|a  |b  |
|---|---|
|d1 |d2 |

: A simple table

The problem is that the caption is always named "Table 1".

How can I customize table numbers in quarto?


Solution

  • You can choose the number by changing the table counter:

    ---
    format:
      pdf:
        papersize: A4
        classoption: [landscape]
    ---
    
    \addtocounter{table}{41}
    
    |a  |b  |
    |---|---|
    |d1 |d2 |
    
    : A simple table
    

    enter image description here