mhwh
mhwh

Reputation: 490

Customizing preamble.tex in bookdown

I started using bookdown to generate a longer report, but came into some touble as I wanted to customize the pdf output. \documentclass[]{} does not work in the preamble.tex file. I think that comand is somehow executed by pandoc beforhand, unfortunately I did not find out how to pass options to it so far.

I worked around a few things like setting the fontsize via \usepackage[12pt]{moresize} but I was wondering how to acces the set up options properly. The bookdown documentation does not cover this subject in sufficient detail for me to understand.

Upvotes: 0

Views: 866

Answers (2)

TheRimalaya
TheRimalaya

Reputation: 4592

Look at this BookDown Documentation,

You can just add following in your header yaml,

---
documentclass: book
bibliography: [book.bib, packages.bib]
biblio-style: apalike
---

Upvotes: 1

mhwh
mhwh

Reputation: 490

I found the answer in the Pandoc documentation

Upvotes: 1

Related Questions