5

I know its possible to change text justification and other setting when RMarkdown generates Word documents using a template.enter link description here.

Is it possible to change the justification of a single line?

For example, text that looks like

  Some normal left justified text

                                                           some right justified text

  Some more left justified text
Community
  • 1
  • 1
N Brouwer
  • 4,778
  • 7
  • 30
  • 35
  • Maybe [this post](http://stackoverflow.com/questions/30238643/text-justification-in-rmarkdown-word-document) will be helpful. – lmo Feb 09 '17 at 17:52

1 Answers1

6

Flushright works if your output format is .pdf but not for .html or word document.

Some normal left justified text

\begin{flushright}

some right justified text

\end{flushright}

Some normal left justified text

It seems to be important to leave the lines in between empty.

JAQuent
  • 1,137
  • 11
  • 25