降价脚注
Markdown Footnotes
出于多种原因,我最近开始以 markdown 格式撰写学术作品,到目前为止我对所有内容都非常满意,除了我对脚注感到困惑。
我使用 OSCOLA 参考文献 - 每页底部的脚注和作品末尾的参考书目。
我怎样才能在 MD 中最好地实现它?我正在使用 Atom 进行编辑和预览。
pandoc
有一个内置的参考管理器,pandoc-citeproc
。见 manual. You'll need a bibliography file in a supported format, for instance bibtex
. You can then use the @refkey
syntax to cite a reference in your markdown. Finally, you'll need to compile your document using a relevant csl style. In your case, it seems like there is a csl
file implementing OSCOLA.
所以,首先创建一个参考文件;这里将是 example.bib
和一个参考:
@book{kelsen1945general,
title={General theory of law and state},
author={Kelsen, Hans},
year={1945},
publisher={The Lawbook Exchange, Ltd.}
}
然后,在你的降价文件 example.md
中,使用 @refkey
:
Hans Kelsen states in an influential book[@kelsen1945general] that...
下载 OSCOLA 样式并将其放在您的路径中(例如 ~/.csl/
在 unix 上。
wget https://www.zotero.org/styles/oscola -O ~/.csl/oscola.csl
最后,使用pandoc和相关选项进行编译:
pandoc example.md -o example.pdf --bibliography=example.bib --csl=oscola.csl --citeproc
出于多种原因,我最近开始以 markdown 格式撰写学术作品,到目前为止我对所有内容都非常满意,除了我对脚注感到困惑。
我使用 OSCOLA 参考文献 - 每页底部的脚注和作品末尾的参考书目。
我怎样才能在 MD 中最好地实现它?我正在使用 Atom 进行编辑和预览。
pandoc
有一个内置的参考管理器,pandoc-citeproc
。见 manual. You'll need a bibliography file in a supported format, for instance bibtex
. You can then use the @refkey
syntax to cite a reference in your markdown. Finally, you'll need to compile your document using a relevant csl style. In your case, it seems like there is a csl
file implementing OSCOLA.
所以,首先创建一个参考文件;这里将是 example.bib
和一个参考:
@book{kelsen1945general,
title={General theory of law and state},
author={Kelsen, Hans},
year={1945},
publisher={The Lawbook Exchange, Ltd.}
}
然后,在你的降价文件 example.md
中,使用 @refkey
:
Hans Kelsen states in an influential book[@kelsen1945general] that...
下载 OSCOLA 样式并将其放在您的路径中(例如 ~/.csl/
在 unix 上。
wget https://www.zotero.org/styles/oscola -O ~/.csl/oscola.csl
最后,使用pandoc和相关选项进行编译:
pandoc example.md -o example.pdf --bibliography=example.bib --csl=oscola.csl --citeproc