【发布时间】:2016-04-29 07:09:08
【问题描述】:
我正在创建 R Markdown 报告,但找不到将标题移到页面下方的方法。
这是一个最小的例子,我想将标题向下移动 5 厘米:
---
title: "This is my title to display at 5cm below the top"
output:
pdf_document:
includes:
in_header: header.tex
---
\thispagestyle{titlepage}
header.tex 文件包含一些自定义样式:
\usepackage{fancyhdr}
\fancypagestyle{titlepage}{
\fancyfoot[LE,RO]{\thepage\ of \pageref{LastPage}}
\fancyfoot[LE,LO]{Project}
\fancyhead[L]{\includegraphics[width=4cm]{logo.png}}
}
请注意,我不是在谈论页边距,只是想移动标题,使其不总是在页面顶部。
【问题讨论】:
-
顺便说一句,我已经尝试了以下但没有成功:\vspaces*{5cm}\thispagestyle{title page}
-
如果这是您正在寻找的内容,您应该将其发布为答案。请注意,对于这种自定义,您最好编写自己的template
标签: r latex knitr r-markdown