我正在用 R Markdown 写论文,并想更改 PDF 文档中脚注的格式。我怎样才能:
- 将字体大小调整为 10pt?
- 更改文本的对齐方式?
我正在用 R Markdown 写论文,并想更改 PDF 文档中脚注的格式。我怎样才能:
您可以包含 LaTeX 命令来覆盖模板中文本的大小。对于脚注,您可以使用任何LaTeX 命令更改字体大小,\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!它将需要实现一些所需的自定义格式。