Tschapaluba
Tschapaluba

Reputation: 35

Line spacing 18 pt in r markdown

Iam writing my thesis in r markdown and want to change the line spacing to 18 pt. But i cant find a solution for it. I only found the setting for onehalf spacing or 1.5 spacing but no for exactly some arbitrary pt.

Upvotes: 1

Views: 5475

Answers (2)

mirh
mirh

Reputation: 650

linestretch is the YAML directive for that.

With all the power and caveats that \setstretch brings I guess, if you are looking for a specific physical size.

Upvotes: 1

Ralf Stubner
Ralf Stubner

Reputation: 26843

If your output format is PDF, you can add

header-includes:
  - \usepackage{leading}
  - \leading{18pt}

to your YAML headers. Or just the LaTeX code to a preamble file you are including anyway.

Upvotes: 1

Related Questions