我正在尝试使用 Pandoc 从 Markdown 文档生成 MLA 风格的论文,并以 LaTeX 作为中介。
到目前为止一切都运行正常(嗯,对于 PDF 输出来说,无论如何) - 除了参考文献页面,它是完全空的。
我在用着pandoc --verbose paper.md.txt --template mla.tex -s -S -o "James Edington EH105 Paper 1.pdf"
我的模板mla.tex
是这样的(模板关闭Ryan Aycock 的说明mla-paper
也杰克逊 13mla13.sty
):
\documentclass[12pt,letterpaper]{article}
\usepackage{ifpdf}
\usepackage{mla}
\usepackage[backend=bibtex8]{biblatex}
\addbibresource{$bibliography$}
\begin{document}
\begin{mla}{$author_firstname$}{$author_lastname$}{$instructor$}{$class$}{\today\\Word Count: $word_count$}{$title$}
$body$
\nocite{s11}
\pagebreak
\begin{center}
Works Cited
\end{center}
\printbibliography
\end{mla}
\end{document}
其paper.md.txt
结构如下:
---
title: 'Maslow and Mandel: Needs hierarchy and human priorities in _Station Eleven_'
author_firstname: 'James'
author_lastname: 'Edington'
instructor: 'William Wilkerson'
class: 'EH 105'
word_count: '311'
bibliography: 's11.bib'
---
_"Survival is insufficient"_, the motto emblazoned…
和s11.bib
以下内容:
@book{s11,
author = {Emily St. John Mandel},
title = {Station Eleven},
publisher = {Vintage},
year = 2015,
month = 6,
isbn = {0804172448}
}
@article{maslow,
author = {Abraham Harold Maslow},
title = {A Theory of Human Motivation},
journal = {Psychological Review},
year = {1943},
volume = {50},
number = {4},
pages = {430-437},
}
我在 Windows 10 上使用 MiKTeX 2.9(64 位)。
该命令的完整输出日志位于http://pastebin.com/rR5pxGag,但相关部分似乎是:
No file input.bbl.
(我想,这就是导致后续错误的原因LaTeX Warning: Empty bibliography
,,LaTeX Warning: There were undefined references
和Package biblatex Warning: Please (re)run BibTeX on the file(s):
)
我已经尝试过backend=
bibtex
、bibtex8
和biber
;错误消息并没有实质性的改变。
那么,我需要做什么才能让 Pandoc 将.bib
* 文件输入到\printbibliography
?
(* 我 100% 同意将此文件转换为其他格式)