0
我使用Pandoc從markdown生成PDF。當在YAML元數據中指定頁眉/頁腳信息時(如下所示),除了右側頁腳頁碼之外,我還會在頁腳中間繼續獲取頁碼(文字爲\fancyfoot[L]
)我已用\fancyfoot[R]
指定。在YAML元數據中使用fancyhdr與Pandoc產生多個頁碼
如何刪除中心頁腳中的默認頁碼?如果我使用\pagenumbering{gobble}
,它只會刪除中間和右側的所有頁碼。
---
title: Test Title
author: Author Name
header-includes:
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \fancyhead[L]{Author Name}
- \fancyhead[R]{Test Title}
- \fancyfoot[L]{Extra text here}
- \fancyfoot[R]{\thepage}
---
目前在OSX 10.11.6上使用Pandoc 1.17.2。