问题
When I create the word document in Rmarkdown, text is always left-aligned:

Is it possible (and how) to justify the text in Rmarkdown?
回答1:
A template (i.e., like a custom style sheet) can be created in Word (or LibreOffice / OpenOffice), containing whatever page formatting and document styles you wish, and referenced from the rmarkdown file, i.e.,
---
title: "My Document"
output:
word_document:
reference_docx: mystyles.docx
---
...rest of your rmarkdown here...
See:
- https://vimeo.com/110804387
- http://rmarkdown.rstudio.com/word_document_format.html
- http://rmarkdown.rstudio.com/articles_docx.html
来源:https://stackoverflow.com/questions/30238643/text-justification-in-rmarkdown-word-document