Reputation: 9752
I would like to reduce the margin size in word documents produced by knitr.
I have tried two approaches in the YAML header:
title: mytitle
author: me
geometry: margin=1cm
output: word_document
and also by manually altering the margin in the docx and saving as a template:
title: mytitle
author: me
output: word_document
reference_docx: template.docx
neither approaches have even slightly altered the margin.
What am I doing wrong?
Upvotes: 2
Views: 803
Reputation: 93791
yaml
seems to be finicky about formatting to explicitly show hierarchies of options. This worked when I tested it on my computer and is documented here:
---
title: mytitle
author: me
output:
word_document:
reference_docx: template.docx
---
Upvotes: 1