Change paper size and orientation in an rmarkdown pdf
It doesn't seem to be documented, but you can include more than one classoption
by separating the options with commas or by using a bulleted list with hyphens. Either of the following will work:
---
title: "Test"
output:
pdf_document:
toc: true
number_sections: true
documentclass: article
classoption:
- landscape
- a3paper
---
---
title: "Test"
output:
pdf_document:
toc: true
number_sections: true
documentclass: article
classoption: landscape, a3paper
---
Rmarkdown PDF: add page number in landscape flextable PDF report
You actually do have a page number on your page, but because you made the bottom margin so terrible tiny, you can't see as it gets pushed below the lower page boundary. If you increase your margin, you get the page number back:
---
title: ""
header-includes:
- \usepackage{xcolor}
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \usepackage{lastpage}
- \fancyfoot[C]{\thepage\ of \pageref{LastPage}}
- \renewcommand{\headrulewidth}{0pt}
output:
pdf_document:
keep_tex: true
classoption: landscape, a4paper
geometry: left=1cm,right=1cm,top=1cm,bottom=2.2cm
---
test
Related Topics
Opening Shiny App Directly in the Default Browser
Set Locale to System Default Utf-8
R + Ggplot2 => Add Labels on Facet Pie Chart
Add (Insert) a Column Between Two Columns in a Data.Frame
How to Use Objects from Global Environment in Rstudio Markdown
Options for Caching/Memoization/Hashing in R
Label and Color Leaf Dendrogram
How to Draw a Line Across a Multiple-Figure Environment in R
Dynamically Creating Tabs with Plots in Shiny Without Re-Creating Existing Tabs
How to Avoid Warning When Introducing Nas by Coercion
Creating a Prompt/Answer System to Input Data into R
Paste Quotation Marks into Character String, Within a Loop
How to Initialize Empty Data Frame (Lot of Columns at the Same Time) in R
Convert Written Number to Number in R
How to Replace Nan Value with Zero in a Huge Data Frame