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

Is it possible (and how) to justify the text in Rmarkdown?
michael
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://stackoverflow.com/questions/30238643/text-justification-in-rmarkdown-word-document