ElegantLaTeX / ElegantBook

Elegant LaTeX Template for Books
LaTeX Project Public License v1.3c
2.05k stars 399 forks source link

参考文献测试代码 #217

Open EthanDeng opened 2 years ago

EthanDeng commented 2 years ago

@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 2 years ago

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

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

syvshc commented 2 years ago

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

提供编译方式