How to suppress automatic table name and number in an .Rmd file using xtable or knitr::kable?

后端 未结 2 869
甜味超标
甜味超标 2020-12-14 22:35

I\'d like to name my tables from R scripts without the automatic Table 1:... prefix when using xtable() or knitr::kable() in an .Rmd f

2条回答
  •  眼角桃花
    2020-12-14 23:21

    In case you also want figures the same way, modify the example by vestland to

    ---
    title: "Suppress automatic table name and number"
    output: pdf_document
    header-includes:
        - \usepackage[labelformat=empty]{caption}
    ---
    

    and skip the \captionsetup{}.

提交回复
热议问题