2017-02-09 49 views
0

我知道当RMarkdown使用模板生成Word文档时,可以更改文本对齐方式和其他设置。 enter link description here右对齐RMarkdown中的单行文本

是否有可能改变一条线的理由?如果你的输出格式.PDF,但不是的.html或Word文档

例如,文本看起来像

Some normal left justified text 

                  some right justified text 

    Some more left justified text 
+0

也许[这篇文章](http://stackoverflow.com/questions/30238643/text-justification-in-rmarkdown-word-document)将会有所帮助。 – lmo

回答

1

Flushright工作。

Some normal left justified text 

\begin{flushright} 

some right justified text 

\end{flushright} 

Some normal left justified text 

看起来很重要的是让两行之间保持空白。