Enrique
Enrique

Reputation: 10117

Bookdown different even and odd pages margins with pdf output

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

Upvotes: 3

Views: 900

Answers (1)

Enrique
Enrique

Reputation: 10117

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}

Upvotes: 6

Related Questions