Nikita Voevodin
Nikita Voevodin

Reputation: 157

how to change spacing in r bookdown

Could you please help me adjust the spacing in r bookdown.

The bookdown guide is very vague about it and I could not find anything concrete.

Here is my YAML:

title: "Title"
author: "Nxxx"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
output: bookdown::gitbook
documentclass: book
bibliography: [book.bib, packages.bib]
biblio-style: apalike
link-citations: yes
github-repo: rstudio/bookdown-demo
description: "This is a minimal example of using the bookdown package to write a book. The output format for this example is bookdown::gitbook."

Could you please show me how to change spacing to double.

Thank you in advance

This question is NOT a duplicate of this: Change line spacing for RMD abstract?

Upvotes: 1

Views: 1193

Answers (1)

Nikita Voevodin
Nikita Voevodin

Reputation: 157

Here is an answer to my own question:

If you are like me and just started with bookdown, you are likely to follow the bookdown quick start guide where it tells you to clone the start repo from github.

Inside of that repo there is a style.css file.

Just go in there and add this: p {line-height: 2em;}

Working with YAML didnt really do anything. I didnt really have hours to figure this out. This is the quickest solution i think. Especially if you are new to bookdown.

Formatting in an essential part to writing a book or a blog and i think the bookdown authors should really work on that part in their documentation if they want more people to use it.

Upvotes: 2

Related Questions