crsh / papaja

papaja (Preparing APA Journal Articles) is an R package that provides document formats to produce complete APA manuscripts from RMarkdown-files (PDF and Word documents) and helper functions that facilitate reporting statistics, tables, and plots.
https://frederikaust.com/papaja_man/
Other
657 stars 133 forks source link

extend apa_table to have "table.env" parameter #560

Open andreifoldes opened 1 year ago

andreifoldes commented 1 year ago

Is your feature request related to a problem? Please describe. I'm working on my first manuscript and realized that I can create a new figure and table environment for my supplements which neatly achieves multiple things, like adding and "S" prefix to the counters and also resetting the counters for the "supplements*" environment.

kable indeed has a table.env parameters that parallels the fig.env for figures; however apa_table doesn't have this and I couldn't figure out how to pass my "supplementaltables" environment to apa_table

Describe the solution you'd like I think apa_table would benefit from having a tabl.env parameter like kable has...

Describe alternatives you've considered I tried passing it into it, but it produced some weird behavior, whereby the counters were kind of duplicated? This could be because some my supplements were made with kable and others were made with apa_table?