【问题标题】:Adjust footnote size and justification in R Markdown在 R Markdown 中调整脚注大小和对齐方式
【发布时间】:2018-07-19 17:20:28
【问题描述】:

我正在用 R Markdown 写我的论文,并想更改 PDF 文档中脚注的格式。我该怎么做:

  1. 将字体大小调整为 10pt?
  2. 更改文本的对齐方式?

【问题讨论】:

    标签: pdf r-markdown knitr footnotes


    【解决方案1】:

    您可以包含 LaTeX 命令来覆盖模板中的文本大小。对于脚注,您可以使用 LaTeX commands 中的任何一个来过滤字体的大小,如果您想要更大的文本,请替换 \normalsize

    文字已用\justify命令完全对齐,该命令来自LaTeX包ragged2e

    ---
    output:
      pdf_document
    header-includes:
      - \usepackage{ragged2e}
      - \renewcommand{\footnotesize}{\normalsize \justify}
    ---
    
    This is some text^[This is a footnote which is fully justified. Some filler text, more filler text more filler text more filler text more filler text more filler text more filler text more filler text more filler text more filler text more filler text]
    

    作为警告,如果你打算用 R Markdown 写论文,我会确保你熟悉 LaTeX!它将需要实现一些所需的自定义格式。

    【讨论】:

      猜你喜欢
      • 2021-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-29
      • 2021-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多