thesisdown icon indicating copy to clipboard operation
thesisdown copied to clipboard

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

Open peranti opened this issue 1 year ago • 3 comments

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.

peranti avatar Jan 31 '24 20:01 peranti

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:

  • https://stackoverflow.com/questions/46814182/bookdown-is-it-possible-to-split-by-at-the-subsection-level
  • https://community.rstudio.com/t/bookdown-how-to-break-chapters-into-multiple-rmd-files/14412

ismayc avatar Jan 31 '24 21:01 ismayc

Thanks @ismayc for the links.

output:
  thesisdown::thesis_word:
    split_by: section

It did not work for me.

peranti avatar Feb 01 '24 10:02 peranti

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.

ismayc avatar Feb 01 '24 17:02 ismayc