ismayc / thesisdown

An updated R Markdown thesis template using the bookdown package
Other
809 stars 357 forks source link

Is it possible to split the RMD output per each section? #204

Open peranti opened 9 months ago

peranti commented 9 months ago

This is not a bug but a query.


Is it possible to direct multiple sections of the same Rmarkdwon file into multiple word_document files (one each per section)? Currently, the output is only one, which contains all sections in one file.

ismayc commented 9 months ago

I'm not so sure on that. It seems like maybe bookdown has some ways to do this and so it might work with thesisdown too:

peranti commented 9 months ago

Thanks @ismayc for the links.

output:
  thesisdown::thesis_word:
    split_by: section

It did not work for me.

ismayc commented 9 months ago

Hmm, it might not work as an out of the box solution. I asked ChatGPT, and it provided some guidance here. You might just have to manually create the Word files from your chapter file Doc outputs, or write an R script like suggested to create section files that you then knit separately.