officedown 0.4.2
Issues
- The new plot hook stays compatible with package accessr, whose
rmd2word()modifies it. - Loading officedown in a document using another Word output format (e.g.
word_document) no longer produces a file that Word can not open: data frames are printed as usual, and printing officer objects (such asblock_caption()) stops with a message asking to useofficedown::rdocx_document(#121). - Cross-references to sections (
\@ref(section-id)) work again with pandoc 3.12 and later, where Word displayed “Error! Reference source not found.” instead of the section number. Section identifiers can now also contain_or.. - Headers and footers of the
reference_docxnow appear on every page, including after a landscape or multi-column section (#127), and no longer disappear from even pages. - Landscape orientation set with
page_size(e.g.orient: "landscape") is now applied even whenpage_marginsis not set (#145). - Bullet and numbered lists now use the list style set with
ul.styleorol.style, even when thereference_docxcontains another list style with a similar name (e.g.new-ulandnew-ul-old). - Data frames no longer disappear from HTML documents and other non Word outputs when officedown is loaded, for example in a Quarto project.
- Cross-references and captions written in Chinese or other non Latin scripts now work on computers that do not use UTF-8 by default (#37).
Changes
- Figure sizes set with
out.widthandout.heightcan use any unit (e.g."10cm","5in","80%"), andout.extraadds other image attributes. A percentage is now relative to the width of the page text, as in other R Markdown formats, and no longer to the figure size. Figures wider than the page text are reduced to fit it. - The documentation now explains how to cross-reference tables (chunk option
tab.id) and figures (chunk label orfig.id). - officedown now requires officer 0.7.7.
officedown 0.4.0
CRAN release: 2025-03-18
new feature
- plots now accept chunk options
out.widthandout.heightif expressed in percent. #144
officedown 0.3.1
CRAN release: 2023-09-02
issues
- Compliance of pandoc version comparison in
knit_print.dml()function following CRAN e-mail.
officedown 0.3.0
CRAN release: 2023-01-06
new feature
- data.frame in Word now support chunk options
tab.alt.titleandtab.alt.description, used as alternative text for tables. - Document sections are set to NULL by default.
- PowerPoint support for
fpar()andblock_list().
issues
- fix usage of bookmark id containing underscore
- update default values according to new default values of
officer::opts_current_table(). - dml background color
bgis now read in R Markdown. - require officer
>= 0.5.1to avoid page breaking between sections
officedown 0.2.4
CRAN release: 2022-03-07
officedown 0.2.3
CRAN release: 2021-11-16
officedown 0.2.2
CRAN release: 2021-04-05
new feature
- Added the control of page dimensions; it is now possible to define the default section of a document.
Issues
- set
number_sectionsto FALSE whenbookdown::markdown_document2is used to avoid sections numbered twice.
