
答案1
和-V toc-title:"Custom text"
查看 的模板/usr/share/pandoc/data/templates/default.latex
,有這部分:
$if(toc)$
$if(toc-title)$
\renewcommand*\contentsname{$toc-title$}
$endif$
這表示我們可以toc-title
向 Pandoc 傳遞一個參數:
pandoc --pdf-engine=xelatex --toc test.md -V toc-title:"Custom text" -o doc.pdf
事實上,目錄標題已經改變:
若要將摘要標題從「摘要」變更為其他內容,您可以插入
header-includes:
\renewcommand{\abstractname}{Different abstract title}