Skip to content

Two column layout results in missing header and footer also affects Title and ToC. #129

Description

@AudioRebel

#127

---
title: "Officedown rocks!"
output:
  officedown::rdocx_document:
    reference_docx: template.docx
    toc: true
    toc_depth: 1
---

```{r setup, include=FALSE}
library(officer)
library(officedown)
```

\newpage
# Executive summary
<!---BLOCK_MULTICOL_START--->

In the two column layout the header from the template is missing as well as in the title and toc.

`r run_columnbreak()` This is the second columns

<!---BLOCK_MULTICOL_STOP{widths: [4,4], space: 0.2, sep: false}--->

\newpage

But now there is a logo and footer and stuff.

How do we get it to show on all pages when having run_columbreak()?

template.docx

no header



R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=C                             LC_MONETARY=English_United States.utf8 LC_NUMERIC=C                           LC_TIME=English_United States.utf8    

time zone: Europe/Zurich
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] reprex_2.0.2      bookdown_0.36     officer_0.6.3     flextable_0.9.4   officedown_0.3.1  data.table_1.14.8 htmlwidgets_1.6.2 DT_0.30           ggthemes_4.2.4    plotly_4.10.3     hablar_0.3.2     
[12] ggpubr_0.6.0      magrittr_2.0.3    extrafont_0.19    ggrepel_0.9.4     scales_1.2.1      gridExtra_2.3     kableExtra_1.3.4  knitr_1.45        DiagrammeR_1.0.10 shiny_1.7.5.1     janitor_2.2.0    
[23] lubridate_1.9.3   forcats_1.0.0     stringr_1.5.0     dplyr_1.1.3       purrr_1.0.2       readr_2.1.4       tidyr_1.3.0       tibble_3.2.1      ggplot2_3.4.4     tidyverse_2.0.0  

loaded via a namespace (and not attached):
 [1] remotes_2.4.2.1         readxl_1.4.3            rlang_1.1.2             snakecase_0.11.1        compiler_4.3.1          png_0.1-8               systemfonts_1.0.5       vctrs_0.6.4            
 [9] httpcode_0.3.0          rvest_1.0.3             crayon_1.5.2            pkgconfig_2.0.3         fastmap_1.1.1           backports_1.4.1         ellipsis_0.3.2          utf8_1.2.4             
[17] promises_1.2.1          rmarkdown_2.25          tzdb_0.4.0              ragg_1.2.6              xfun_0.41               cachem_1.0.8            jsonlite_1.8.7          highr_0.10             
[25] later_1.3.1             uuid_1.1-1              broom_1.0.5             R6_2.5.1                stringi_1.7.12          RColorBrewer_1.1-3      car_3.1-2               extrafontdb_1.0        
[33] cellranger_1.1.0        Rcpp_1.0.11             httpuv_1.6.12           timechange_0.2.0        tidyselect_1.2.0        rstudioapi_0.15.0       abind_1.4-5             yaml_2.3.7             
[41] curl_5.1.0              withr_2.5.2             askpass_1.2.0           evaluate_0.23           zip_2.3.0               xml2_1.3.5              pillar_1.9.0            carData_3.0-5          
[49] generics_0.1.3          hms_1.1.3               munsell_0.5.0           xtable_1.8-4            glue_1.6.2              clipr_0.8.0             gdtools_0.3.4           lazyeval_0.2.2         
[57] gfonts_0.2.0            tools_4.3.1             webshot_0.5.5           ggsignif_0.6.4          fs_1.6.3                visNetwork_2.1.2        grid_4.3.1              Rttf2pt1_1.3.12        
[65] colorspace_2.1-0        cli_3.6.1               textshaping_0.3.7       rvg_0.3.3               fontBitstreamVera_0.1.1 fansi_1.0.5             viridisLite_0.4.2       svglite_2.1.2          
[73] gtable_0.3.4            rstatix_0.7.2           digest_0.6.33           fontquiver_0.2.1        crul_1.4.0              memoise_2.0.1           htmltools_0.5.7         lifecycle_1.0.3



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions