4

I am knitting from RMarkdown to .docx using bookdown::word_document2 as the output format.

I want to have a section in my document that features two columns. Is this possible?

I know this is possible with the officedown::rdocx_document output format, but I cannot use that due to other limitations (it will not allow me to have a different first page header).

EDIT: please note my question is specifically about Word (bookdown::word_document2) output. The multi-column layout instructions in the Bookdown documentation are for HTML and PDF output types, so do not apply to my use case.

Matt Cowgill
  • 659
  • 4
  • 13
  • 2
    [This may help](https://bookdown.org/yihui/rmarkdown-cookbook/multi-column.html). – Kat May 23 '22 at 01:19
  • 2
    Thank you, but unfortunately that appears to only work for HTML / PDF / Beamer output types, not Word. – Matt Cowgill May 23 '22 at 01:23
  • 1
    Maybe look at the source code for `officedown::rdocx_document` and `bookdown::word_document2` (or `rmarkdown::word_document`). They may both be sending everything through Pandoc, but the former has implemented an argument that the latter hasn't. – Ian Gow May 23 '22 at 14:26
  • I opened a Github Issue with this question, as a feature request, on the repo of `bookdown`. Hopefully it will be implemented (or maybe already is implemented, and we just didn't know it!) https://github.com/rstudio/bookdown/issues/1433 – Mark Jun 21 '23 at 11:03
  • update: apparently it's not possible using pandoc. Might be better trying to get officedown to support different first page headers – Mark Jun 22 '23 at 02:04

1 Answers1

0

No, it's not possible.

Your best bet is to lobby the creators of officedown to add different first page header support, then use that.

Mark
  • 7,785
  • 2
  • 14
  • 34