【问题标题】:Right justify a single line of text in RMarkdown右对齐 RMarkdown 中的单行文本
【发布时间】:2017-02-11 21:53:23
【问题描述】:

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

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

例如,看起来像这样的文本

  Some normal left justified text

                                                           some right justified text

  Some more left justified text

【问题讨论】:

标签: r knitr r-markdown


【解决方案1】:

如果您的输出格式是 .pdf 但不适用于 .html 或 word 文档,Flushright 可以工作。

Some normal left justified text

\begin{flushright}

some right justified text

\end{flushright}

Some normal left justified text

将中间的行留空似乎很重要。

【讨论】:

    猜你喜欢
    • 2015-07-26
    • 2023-03-15
    • 2012-04-06
    • 1970-01-01
    • 1970-01-01
    • 2012-11-16
    • 2011-09-02
    • 2014-07-23
    相关资源
    最近更新 更多