Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landscape pages #196

Closed
raphenya opened this issue Jun 1, 2023 · 4 comments
Closed

Landscape pages #196

raphenya opened this issue Jun 1, 2023 · 4 comments

Comments

@raphenya
Copy link

raphenya commented Jun 1, 2023

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.

@raphenya
Copy link
Author

raphenya commented Jun 1, 2023

I'm using the template from https://github.com/paezha/macdown.

@raphenya
Copy link
Author

raphenya commented Jun 1, 2023

@paezha please note.

@raphenya
Copy link
Author

raphenya commented Jun 2, 2023

Never mind, this is actually correct.

@raphenya raphenya closed this as completed Jun 2, 2023
@github-actions
Copy link

github-actions bot commented Jun 8, 2023

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant