I am writing a book in quarto. I want to set a consistent theme for all tables in the book. Usually in bookdown, I set it with a block that goes as below in the index.Rmd
You could always have an external script in a ".R" file and call it from within a chunk at the beginning of every chapter. That way you would at least avoid duplicating code with all its risks.