How to justify (to both sides) text in R Markdown when knitting in pdf output
问题 I have looked for ways to control the alignment of the text, however I could not find anything for PDF outputs. There is an existing answer, but related to HTML output only: How to justify the text to both sides when knitting html in rmarkdown. 回答1: R Markdown should default to using justified text. However, if you only want to export to PDF, we can directly use LaTeX commands within the document.using the standard arguments \centering \raggedright and \raggedleft , as explained here. Here is