Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

参考文献测试代码 #217

Open
EthanDeng opened this issue Aug 29, 2022 · 2 comments
Open

参考文献测试代码 #217

EthanDeng opened this issue Aug 29, 2022 · 2 comments

Comments

@EthanDeng
Copy link
Member

@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
Copy link

wql15 commented Oct 28, 2022

@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
Copy link
Contributor

syvshc commented Oct 28, 2022

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

提供编译方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants