2016-01-22 90 views
0

我正在使用RStudio和knitr。我無法找到將標題向下移動的方式(例如,僅5cms)。標題總是在頂部。rmarkdown:標題位置

--- 
title: "This is my title to display at 5cm below the top" 

header-includes: 
\fancypagestyle{titlepage}{ 
\fancyfoot[LE,RO]{\thepage\ of \pageref{LastPage}} 
\fancyfoot[LE,LO]{Project} 
\fancyhead[L]{\includegraphics[width=4cm]{logo.png}} 
} 

output: pdf_document 
--- 

\thispagestyle{titlepage} 

請注意,我不是在談論邊距,只是想要移動標題,以便它不總是在頁面的頂部。顯然保持我定義的風格。我怎樣才能做到這一點?

+0

對了,忘了提,我曾嘗試沒有成功如下: \ vspaces * {5釐米} \ thispagestyle {扉頁} – david

+0

你應該如果這是你正在尋找的東西,請將其作爲答案發布。請注意,對於這種定製,您最好編寫自己的[模板](http://rmarkdown.rstudio.com/pdf_document_format.html#advanced-customization) – scoa

回答

1

這將這樣的伎倆:

\setlength{\headsep}{5cm} 
\thispagestyle{title page} 
+0

感謝您分享您的解決方案。您可以[接受](http://stackoverflow.com/help/accepted-answer)自己的答案,將問題標記爲已解決。 –