How to adjust margins on R markdown

Asked

Viewed 326 times

2

I’m creating a document in R Markdown, but when I generate the markdown it occupies the entire area of the browser, getting bad reading. I would like to know how to adjust the margins, so that it creates a scroll bar, but respecting a margin space on the right and left.

down

  • Unfortunately, this question cannot be reproduced by anyone trying to answer it. Please, take a look at this link and see how to ask a reproducible question in R. So, people who wish to help you will be able to do this in the best possible way.

1 answer

1

Include below YAML the code below (YAML is the Rmarkdown header):

<style type="text/css">
.main-container {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
</style>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.