ElegantLaTeX/ElegantBook

参考文献测试代码

EthanDeng opened this issue · 2 comments

@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}
wql15 commented

@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}

请问参考文献后面的问题解决了嘛?我们遇到参考文献的问题了,无法显式参考文献以及交叉引用

我们遇到参考文献的问题了,无法显式参考文献以及交叉引用

提供编译方式