title: How to justify (to both sides) text in R Markdown when knitting in pdf output
body: <p>I have looked for ways to control the alignment of the text, however I could not find anything for PDF outputs.</p>
  
  <p>There is an existing answer, but related to HTML output only: <a href="https://stackoverflow.com/questions/43222169/how-to-justify-the-text-to-both-sides-when-knitting-html-in-rmarkdown">How to justify the text to both sides when knitting html in rmarkdown</a>.</p>