右对齐RMarkdown中的单行文本

右对齐RMarkdown中的单行文本,r,knitr,r-markdown,R,Knitr,R Markdown,我知道,当RMarkdown使用模板生成Word文档时,可以更改文本对正和其他设置 是否可以更改单行的对齐方式 例如,看起来像 Some normal left justified text some right justified text Some more left justified text 如果输出格式为.pdf,而不是.html或word文档,Flus

我知道,当RMarkdown使用模板生成Word文档时,可以更改文本对正和其他设置

是否可以更改单行的对齐方式

例如,看起来像

  Some normal left justified text

                                                           some right justified text

  Some more left justified text

如果输出格式为.pdf,而不是.html或word文档,Flushright可以工作

Some normal left justified text

\begin{flushright}

some right justified text

\end{flushright}

Some normal left justified text
在两行之间留空似乎很重要

也许会有帮助。