梅威瑟:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{Knu86,
author = {Knuth, Donald E.},
year = {1986},
title = {The \TeX book},
}
\end{filecontents}
\begin{document}
This works, yeah! \cite{Knu86} and \cite[Page 121]{Knu86}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}
pandoc -F pandoc-crossref --bibliography=MWE.bib MWE.tex -o MWE.docx
输出:
This works, yeah! (Knuth 1986) and (Knuth 1986 Page 121)
Knuth, Donald E. 1986. *The Texbook*.
然而,
pandoc -F pandoc-crossref --bibliography=MWE.bib --csl computing-surveys.csl MWE.tex -o MWE.docx
输出:
This works, yeah! [1] and [1]
[1] Donald E. Knuth. 1986. *The texbook*.