2017-02-09 84 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 

看起來很重要的是讓兩行之間保持空白。