ElegantBook
ElegantBook copied to clipboard
参考文献测试代码
@sikouhjw 提供的用于测试参考文献的代码,需要放在一个新建的文件夹里(保证文件夹内没有 reference.bib
文件)。
\documentclass[lang=cn]{elegantbook}
\begin{filecontents*}{reference.bib}
@book{test1,
author = {陈登原},
title = {国史旧闻},
volume = {1},
address = {北京},
publisher = {中华书局},
year = {2000},
pages = {29},
}
@book{test2,
author = {哈里森·沃尔德伦},
translator = {谢远涛},
title = {经济数学与金融数学},
address = {北京},
publisher = {中国人民大学出版社},
year = {2012},
pages = {235--236},
}
\end{filecontents*}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{测试}
\section{测试}
\subsection{测试}
\cite{test1}, \cite{test2}
\printbibliography[heading=bibintoc, title=\ebibname]
\end{document}