Questions tagged [officedown]

64 questions
13
votes
2 answers

Restart Figure Numbering for Appendix / Supplementary Material in bookdown

I am writing an article for a journal that requires Supplementary Material. I was hoping to use a unique label such as SuppMat: instead of the default fig: to send Figures and Tables into this section. If not, I can use the default fig label but I…
Patrick
  • 915
  • 2
  • 9
  • 26
6
votes
1 answer

How to import a figure as its original height/width ratio?

I'm using the officedown package to generate a Word document. May I ask, if I want to import a well-designed figure from the disk, how to control officedown not to change the height/width ratio of the figure? For example, my original figure looks…
Xiaochi
  • 65
  • 5
3
votes
1 answer

Highlight text inline. R-markdown with reference .docx

I need to be able to highlight all text in an r-markdown document that has been inserted using an inline code chunk. E.G r TEXT. This is to enable editing of the automated Word document creation. I have tried using .highlight { background-color:…
silas
  • 41
  • 4
2
votes
0 answers

How do I place a logo above the title using rmarkdown when using docx output

I'm trying to build a RMarkdown template to match a corporate template, which includes a large .png logo on the first page before the title, author and date. With latex/pdf output we appear to be able to solve this with --header-includes in the…
BetaScoo8
  • 429
  • 4
  • 9
2
votes
1 answer

Missing outer border of a flextable in R

I have an issue I can't resolve. There may be something missing in the flextable package, but I may be wrong. Please, see the example. This is my tabular data: structure(list(groupName = c("Group A", "Group A", "Group A", "Group A", "Group A",…
Jakub Małecki
  • 483
  • 4
  • 14
2
votes
1 answer

Adding citations with R code in Rmarkdown document

To add a citation in Rmarkdown we can just type [@Author] in the document. I wonder if it's possible to do this with R code. The pseudo code for my expected solution: # just markdown This is my markdown content and here is a great book about it: `r…
Jakub Małecki
  • 483
  • 4
  • 14
2
votes
1 answer

Farsi/persian/arabic text not showing in Rmarkdown officedown/flextable when knitting to MS word

I'm using rmarkdown and also two useful packages (officedown and flextable) to produce an MS word document. However, when I write in other languages or change the header label of tables (using set_header_labels) to farsi (using font(cs.family =…
M. white
  • 80
  • 7
2
votes
1 answer

Officedown: equation numbering and cross-referencing not working

I am trying to generate equation numbers and cross-referencing in docx using Rmarkdown, but it is not working. Here is my YAML output: officedown::rdocx_document: reference_docx: ref_transfer.docx header-includes: - \usepackage{amsmath} I…
Pepper
  • 31
  • 5
2
votes
0 answers

Is it possible to print an editable html table into officedown powerpoint?

I am trying to automate a PowerPoint presentation deck using officer in R. I am mostly working with the gt() package to make some tables (as I like the versatility of it) but the issue is that officedown requires me to save the gt() stuff as .png…
2
votes
2 answers

insert space after each flextable in r (Rmd)

i have this problem: Problem: I have multiple flextable objects in a same r chunk: mtcars %>% select(1:3) %>% head() %>% flextable() mtcars %>% select(1:3) %>% head() %>% flextable() But when i knit the Rmd in a…
2
votes
0 answers

R officedown::rdocx_document, templates and styles

I am trying to nut out how to use a company word document as a rdocx_doxument template for R markdown using the officedown package. --- title: Company Report Title author: Ross date: 3/3/2022 output: officedown::rdocx_document: default --- …
2
votes
3 answers

RMarkdown Officedown: Insert two images side by side to word document with captions

How can I insert two images side by side into a word document (.docx) with captions? I found several solutions for HTML and pdf documents. However, for word documents, this doesn't seem to be the case. This is my YAML: --- title: "Two images side by…
2
votes
0 answers

Why isn't officedown for Rmarkdown outputting formatted text?

I am new to using Rmarkdown and officer/officedown, so maybe there is an easy fix for this, but I'm at a loss. I'm trying to create a Word document for reports using officedown/officer so that I can have greater control over the look of text and…
joerminer
  • 153
  • 8
2
votes
1 answer

Rmd report does not import margins, header o footer from template when using officedown::rdocx_document:

Edit: I installed again the previous version of the package (ver. 0.2.1) and the problem is solved. __ I am making a Rmarkdown report with the officedown package. My Word output imports well the Word Styles of the template document, but does not…
1
vote
0 answers

Error in zip::unzip(zipfile = file, exdir = folder) - Officedown

I am having a constant error rendering an rmarkdown file through the officedown package. It's no use for me to include reproducible code here because the error is random. My yaml is: --- date: "`r str_to_title(format(Sys.time(), '%B,…
Igor Cobelo
  • 419
  • 3
  • 12
1
2 3 4 5