Overleaf | Latex 中插入多个 Reference 参考文献段落 | multibib 包

1. 插入多个Reference段落

在我们写论文的时候有时候会需要2个甚至多个Reference的段落(当然是非正式的时候居多)。比如同一篇文章的时候分为了几个差距较大的模块需要分开列Reference。

这时候就可以用到 multibib 。在引用包\usepackage[labeled]{multibib}之后,可以在\newcites{suffix}{heading}中自定义每一块引用的名字。

例如下面例子中,我用了\newcites{one}{Reference 1}。并在使用时把suffix的内容加在命令中,比如\bibliographystyleone\bibliographyone 是 \bibliographystyle + one 和 \bibliography + one 组成。

而后面的 heading 参数则是标题的名字。

例子中只用了两个\newcites,这个方法可以一直加不同的段落,只要 suffix 部分不重复就行。

\documentclass{article}
\usepackage[labeled]{multibib}
\newcites{one}{Reference 1}
\newcites{two}{Reference 2}

\title{Multiple References}
\author{Alittlebean}
\date{March 2023}

\begin{document}
\maketitle
\section{Section One}
Hello, this is the first reference 
\citeone{Knuth:1990}

\bibliographystyleone{alpha}
\bibliographyone{ref.bib}

\section{Section Two}
Hello, this is the second reference \citetwo{Lamport:94}

\bibliographystyletwo{alpha}
\bibliographytwo{ref.bib}

\end{document}

当然,ref.bib 是一个单独的Reference文件,与main.tex文件在同一目录下。例子中的内容如下:

@Book{Knuth:1990,
    author    = {Knuth, Donald E.},
    title     = {The {\TeX}book},
    year      = {1990},
    isbn      = {0-201-13447-0},
    publisher = {Addison\,\textendash\,Wesley},
}

@Book{Lamport:94,
    author    = {Lamport, Leslie},
    title     = {\LaTeX: A Document Preparation System},
    year      = {1994},
    isbn      = {0-021-52983-1},
    publisher = {Addison\,\textendash\,Wesley}

2. 效果展示

在这里插入图片描述

Reference

  1. https://tex.stackexchange.com/questions/98660/two-bibliographies-one-for-main-text-and-one-for-appendix
  2. https://tex.stackexchange.com/questions/591256/how-do-labels-work-in-multibib-when-using-alpha-style

以上。

猜你喜欢

转载自blog.csdn.net/qq_41608408/article/details/129328852