#papaja, #rstats and #knitr people: Can you change line spacing and font when knitting to PDF? Been collaborating on a paper, and we've knitted to PDF by default. Ended up just below 40 pages - perfect! But a submission deadline is nearing, and we needed a word version. Turns out it is at 45 pages! Done side-by side comp. Seems the PDF is not Times New Roman. Also, line spacing is different. We get around 27 lines on a PDF page, but 24 in the Word version. Ideas? @FrederikAust
@hsorlie Have you tried the typical adjustment options in LaTeX? In the preamble:
```
\renewcommand{\baselinestretch}{1.5}
\usepackage{mathptmx}
```
@FrederikAust No, I hadn't, and... just, wow. Thanks! I'll have to google what that actually does later, but immediately I see that this looks like Times New Roman and a different line spacing. I've grown really fond of papaja (only way I write papers now) and RMarkdown (and now Quarto!), but "pure" LaTeX has always seemed like a bit of black magic to me.
@hsorlie @FrederikAust knitting to pdf uses LaTeX under the hood, so that is what you'd need to change. The font is by default Computer Modern or whatever LaTeX uses.