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? #117

Open
jkylearmstrong opened this issue Aug 16, 2023 · 1 comment
Open

landscape? #117

jkylearmstrong opened this issue Aug 16, 2023 · 1 comment

Comments

@jkylearmstrong
Copy link

jkylearmstrong commented Aug 16, 2023

Why is there a first and last page that are portrait?

is seems the only way I can get landscape is with the <!---BLOCK_LANDSCAPE_START---> <!---BLOCK_LANDSCAPE_END--->

repo is here https://github.com/jkylearmstrong/officedown_landscape_error

my system machine is in the on the word document in the repo

## [1] 1
##                _                                
## platform       x86_64-w64-mingw32               
## arch           x86_64                           
## os             mingw32                          
## crt            ucrt                             
## system         x86_64, mingw32                  
## status                                          
## major          4                                
## minor          3.1                              
## year           2023                             
## month          06                               
## day            16                               
## svn rev        84548                            
## language       R                                
## version.string R version 4.3.1 (2023-06-16 ucrt)
## nickname       Beagle Scouts
##           sysname           release           version          nodename 
##         "Windows"          "10 x64"     "build 22621" "LAPTOP-E8MGOGH8" 
##           machine             login              user    effective_user 
##          "x86-64"           "jkyle"           "jkyle"           "jkyle"
## [1] 2
``` 


I'm on officedown 0.3.0 

@mps9506
Copy link

mps9506 commented Sep 6, 2023

@jkylearmstrong , you didn't indicate what exactly didn't work, but if you want the entire document to be landscape you should be able to put the block section at the end of the doc. It defines the properties for the section preceding where it resides (my incorrect instinct is to put it at the start of the section).

```{r}
block_section(
  prop_section(
    page_size = page_size(orient = "landscape"),
    type = "continuous"
  )
)
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants