3
votes

I am using bookdown package version 0.13 with R 3.6.0.

When I generate a pdf output, the even and odd pages have different margins. Even pages are shifted to the right and odd ones to the left (see picture below). Is this some type of feature? For example, for printing?

How can I disable this behavior?

enter image description here

I get the same margin differences when trying the minimal example provided in the official demo. The _bookdown.yml file has this content:

book_filename: "bookdown-demo"
language:
  ui:
    chapter_name: "Chapter "
delete_merged_file: true
new_session: yes
1
It's easier to help you if you include a simple reproducible example with sample input and desired output that can be used to test and verify possible solutions. What do you you have in the YAML header of your file?MrFlick
I have edited my question to include the reproducible example and YAML contents.Enrique

1 Answers

5
votes

The margins are changed because by default the format is twoside. I fixed this by changing it to oneside. This was done by adding the following in index.Rmd

classoption: oneside

in latex this is specified with:

\documentclass[oneside]{book}