Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

How to add \newpage in Rmarkdown in a smart way?

Asked by Oliver Watson Jul 14, 2021 2.0K views 3 answers
Share

About this question

: 

 I wonder if one could simply use LaTeX newpage command in R markdown v2 in a different way than this:

```{r, results='asis', echo=FALSE}
cat("\newpage")
```

I produce pdf_output. If any1 has any idea please do not hesitate to comment :) ! Thanks

I create a pdf like this:

---
title: " "
author: " "
date: "2014"
output: 
   pdf_document:
      includes:
         in_header: naglowek.tex
      highlight: pygments
      toc: true
      toc_depth: 3
      number_sections: true
      keep_tex: true
---
How rmarkdown new page?

Your answer

3 Answers

Georgia Houghton Latest answer

Answered on Jul 17, 2026

Take on the challenge of Geometry Dash Meltdown and improve your timing with every attempt. I enjoy this game because it's simple to learn but difficult to master.

Was this helpful?

Jameshseifert

Answered on Jun 30, 2025

It's great to see discussions about optimizing RMarkdown for better PDF results like tending crops on a colorful farm in harvest simulator taking the time to format content properly will pay off in the end.

Was this helpful?

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.