帶有 pandoc 的 tufte-handout 中的邊距參考

帶有 pandoc 的 tufte-handout 中的邊距參考

我正在嘗試使用 pandoc 和模板將 Markdown 文件轉換為 PDF tufte-handout。我想在頁邊空白處而不是在文件末尾添加引用,這在直接 MD->PDF 轉換中是否可能?

答案1

是的,最簡單的方法是使用rmarkdown,但在純pandoc中效果是一樣的。只需要按照之前的評論建議調整模板即可。使用 rmarkdown,它是這樣下降的:

在最新的 rmarkdown 中,您只需要使用將引用更改為腳註的 csl,並在 yaml 標頭中添加 tufte-handout 和禁用參考書目:

---
bibliography: library.bib
csl: chicago-fullnote-bibliography.csl
suppress-bibliography: yes
output: 
    bookdown::tufte_book2:
        toc: yes
        highlight: tango
---

答案2

使用該類別時tufte-handout,任何腳註都會自動進入頁邊距。如果您要用作pandoc-citeproc參考,請從以下位置下載筆記樣式,例如“Chicago Full Note”Zotero 樣式儲存庫,將其放入 中~/.csl/,然後您就可以在建立 PDF 時從任何地方使用它。範例檔:

---
documentclass: tufte-handout
csl: chicago-fullnote-bibliography.csl
---

test^[Footnote.]

相關內容