8
我希望將圖像作爲頁眉和頁腳(符合我的組織視覺標識)添加到PDF報告。我已經設法在Sweave中做到了,但我也希望能夠使用Markdown做到這一點。我可以使用![footer](H:/R/Footer.pdf)
插入圖像,但是當我嘗試使用壁紙包(就像我在Sweave中那樣)時出現錯誤。如何在PDF文檔的Markdown中添加圖像作爲頁眉/頁腳
---
title: "2014 Report"
author: "My Name"
date: "Monday, October 06, 2014"
output:
pdf_document:
number_sections: yes
toc: yes
fontsize: 10pt
header-includes:
- \usepackage{wallpaper}
abstract: This is my abstract
---
\LRCornerWallPaper{0.99}{![footer](H:/R/Footer.pdf)}
在Markdown中有沒有辦法,還是我需要堅持Sweave?
我沒有試過,但我想的'\ LRCornerWallPaper {}內容'需要在LaTeX的格式(includegraphics ),因爲(據推測)潘多哥不會試圖解釋它。 – baptiste 2014-10-07 15:01:57
這是使用壁紙包的LaTeX格式。我只是在\ begin {document}之後包含它。 – Greg 2014-10-07 15:06:20
你可以添加一個最小的純LaTeX工作例子嗎?它似乎可以用'\ LRCornerWallPaper {0.99} {path \ to \ pic}'工作,但不會與'![footer]'選項一起工作。我沒有在文檔中找到這種用法。 – tonytonov 2014-10-08 07:14:47