2017-06-15 23 views
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。

回答

0

嗯,我認爲這應該工作,如果你只是給中心字段一個空的內容字段。這至少是Latex中的一種工作方式,希望pandoc也是如此。

\fancyfoot[C]{} 
相關問題