-
-
Notifications
You must be signed in to change notification settings - Fork 999
Open
Labels
featurea feature request or enhancementa feature request or enhancementtheme: luaprobably related to lua filterprobably related to lua filter
Description
Currently \newpage
must be a paragraph composed only by itself like
Paragraph
\newpage
Paragraph
This may add a blank page in word_document
when the paragraph before breaking page reaches at the bottom of a page.
It would be nice if pagebreak can be done as a part of paragraph.
For example by
This paragraph ends with pagebreak.
\newpage
reprex
---
output:
word_document:
md_extensions: "+hard_line_breaks"
---
```{r, echo=FALSE, results='asis'}
cat(rep("1st page", 42), sep = "\n")
```
\newpage
Blank page exists before this line.
xfun::session_info('rmarkdown')
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763), RStudio 1.2.1335
Locale:
LC_COLLATE=Japanese_Japan.932 LC_CTYPE=Japanese_Japan.932
LC_MONETARY=Japanese_Japan.932 LC_NUMERIC=C
LC_TIME=Japanese_Japan.932
Package version:
base64enc_0.1.3 digest_0.6.23 evaluate_0.14 glue_1.3.1
graphics_3.6.1 grDevices_3.6.1 highr_0.8 htmltools_0.4.0
jsonlite_1.6 knitr_1.26 magrittr_1.5 markdown_1.1
methods_3.6.1 mime_0.8 Rcpp_1.0.3 rlang_0.4.2
rmarkdown_2.0.5 stats_3.6.1 stringi_1.4.3 stringr_1.4.0
tinytex_0.18 tools_3.6.1 utils_3.6.1 xfun_0.11
yaml_2.2.0
Pandoc version: 2.7.3
---
By filing an issue to this repo, I promise that
- I have fully read the issue guide at https://yihui.org/issue/.
- I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('rmarkdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rmarkdown')
. - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
Metadata
Metadata
Assignees
Labels
featurea feature request or enhancementa feature request or enhancementtheme: luaprobably related to lua filterprobably related to lua filter