Landscape pages
raphenya opened this issue · comments
When putting the page to landscape to accommodate figures, the header and page numbers don't rotate, i.e., they stay on the right and left sides.
My code is as follows:
# index.Rmd
header-includes:
- \usepackage{pdflscape}
- \newcommand{\blandscape}{\begin{landscape}}
- \newcommand{\elandscape}{\end{landscape}}
# 02-chap2.Rmd
\newpage
\blandscape
<!-- Figure 2 -->
(ref:figure2-cap) Some caption text.
'''{r figure2, echo=FALSE, fig.align = 'left', out.width = "100%", fig.cap = "(ref:figure2-cap)"}
knitr::include_graphics(here::here("figure", "figure2.pdf"))
'''
\elandscape
\newpage
I tried to remove the headers and numbers with \thispagestyle{empty}
command and then re-add them back, but it's not working. I'm a newbie to Rmarkdown.
I'm using the template from https://github.com/paezha/macdown.
Never mind, this is actually correct.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org whenever possible) and link to this issue. If a reprex is not applicable, recording a short Loom video showing what you are seeing can go a long way in helping to diagnose problems.