Relative Content

Tag Archive for rrstudioquartogt

Automatic table numbering with gt package in R when rendering Quarto to Word doc

When rendering a Quarto document to Word and including several tables generated with gt(), something is applying an automatic “Table 1:” to the front of the tab_header(). It is always numbered as Table 1, regardless of the number of tables or if using the gt_group() function. This automatic numbering does not occur when rendering to html (there is no “Table 1:” appended in front of the header).