Pagedown Versions Save

Paginate the HTML Output of R Markdown with CSS for Print

v0.20

1 year ago
  • This package requires R >= 3.5.0 now.

v0.19

1 year ago
  • Set overflow-x: clip in default.css to fix an issue with paged.js rendering in recent browser (thanks, @jimjam-slam, #292, pagedjs/pagedjs#84).

v0.18

2 years ago
  • Figure inserted using markdown syntax and having a caption with (#fig:lab) are now correctly listed in the LOF (thanks, @adamvi, #283).

  • Fix an issue in jss_paged() with Pandoc 2.17 and above.

  • Fix an issue in html_paged() with LOT and LOF not showing anymore with Pandoc 2.17 and above (thanks, @adamvi, #280).

v0.17

2 years ago

BUG FIXES

  • Fix duplicating headers in tables that force new page (thanks, @Darxor, #272).

v0.16

2 years ago

NEW FEATURES

  • Added support for long tables, i.e., repeat the table header when a page breaks the table (thanks, @felipecrp and @jdbarillas, #250 and #162).

MINOR CHANGES

  • Document that the html_letter() output format modifies the default value of the fig_caption parameter and allow the user to change it (thanks, @NewGraphEnvironment, #234).

  • Created an option pagedown.chrome.log to ease chrome_print() debugging: when set to TRUE, the logs of Chrome are saved in the working directory.

  • Added support for Sass files with .scss and .sass extension (thanks, @felipecrp, #244).

BUG FIXES

  • Fix an issue with loft.lua filter following changes in Pandoc 2.16 (#249).

v0.15

2 years ago

NEW FEATURES

  • find_chrome() now searches for Microsoft Edge on Windows. That allows chrome_print() to work seamlessly with Microsoft Edge (thanks, @cderv, #160 and #225).

MAJOR CHANGES

  • In chrome_print(), when printing a document to PDF, the default transfer mode between Chrome and R now uses a stream when this option is available in Chrome. This change ensures that PDF files of any size can be generated (#206 and #224).

MINOR CHANGES

  • Multiple knitr::kables() are now vertically aligned by default in html_paged(), thesis_paged() and jss_paged() output formats (thanks, @cderv and @andrew-fuller, #214).

BUG FIXES

  • Fixed a bug introduced in html_paged() by pagedown 0.14, the content of each link was lost if it was not textual (thanks, @mcanouil, #226).

  • Fixed figure and table numbering format in jss_paged() (thanks, @gglee4ai, #184).

v0.14

3 years ago

NEW FEATURES

  • In html_paged(), added two new options lot-unlisted and lof-unlisted. If lot-unlisted (resp. lof-unlisted) is set to TRUE in the YAML options, the list of tables (resp. figures) will not be included in a table of contents (thanks, @beatrizmilz, #221).

MAJOR CHANGES

MINOR CHANGES

  • In html_paged(), links are now sanitized to avoid impossible line breaking of long URLs in a justified text (thanks, @julientaq).

  • In order to be compatible with the flextable package, pagedown::html_paged() sets the value of the ft.shadow chunk option to FALSE by default (thanks, @tvroylandt and @davidgohel, #216).

  • The fig_caption argument is no longer hard-coded to FALSE in html_resume() (thanks, @nplatonov, #208).

BUG FIXES

  • The multiple use of an abbreviation no longer ends up with duplicated entries in the list of abbreviations (thanks, @linogaliana, #218).

  • The default value of the counter-reset CSS property is correctly set to 0 instead of 1 (see https://developer.mozilla.org/en-US/docs/Web/CSS/counter-reset). To reset a page CSS counter to 1, the following declaration must be used: counter-reset: page 1 (#202).

  • Numbered example lists (https://pandoc.org/MANUAL.html#numbered-example-lists) are correctly numbered (thanks, @atusy, #122 and #202).

  • Periods are now supported in titles (thanks, @yves-amevoin and @martinschmelzer, #84, #185 and #202).

  • Parts titles in the table of contents no longer crash chrome_print().

  • chrome_print() is now compatible with the stream transfer mode which can be used to generate large PDF files (#205).

  • chrome_print() no longer ignores runtime exceptions in Chrome. An R warning is now raised when Chrome encounters a runtime exception (#203).

v0.13

3 years ago

NEW FEATURES

  • In html_paged(), the title of the list of abbreviations can now be modified with the loa-title field in the YAML header (thanks, @jtrecenti, #199).

BUG FIXES

  • The option anchor_sections is disabled internally. This option is for rmarkdown::html_document() to generate anchor links for sections and currently it does not work well for pagedown format for now (#195).

  • In chrome_print(), fixed a bug when the R session temporary directory and the current directory are mounted on different Linux file systems. In that case, chrome_print() failed to add an outline to the PDF and raised the warning cannot rename file ..., reason 'Invalid cross-device link' (#193).

v0.12

3 years ago
  • chrome_print() no longer ignores the Chrome DevTools event Inspector.targetCrashed. An R error is now raised when Chrome crashes (#190).

v0.11

3 years ago

NEW FEATURES

  • chrome_print() now has a new argument outline, with which the user can generate the outline bookmarks for the PDF file. Note, this feature requires Ghostscript being installed and detected by tools::find_gs_cmd() (thanks, @shrektan, #174 and #179).