附录单独引用,不与正文重复(自动处理)

附录单独引用,不与正文重复(自动处理)

我想自动地将正文中的所有参考文献放在一个部分,将附录中的所有参考文献放在另一个部分并且尚未在正文中引用

我知道这个问题,但它不能解决我的问题,因为:

  • 重复的参考文​​献没有从附录中删除
  • 我要么必须手动标记每个参考文献(通过使用不同的引用命令或不同的.bib文件),但我不想自己这样做,因为在可能有多个合著者的不断移动的文本中始终跟踪引用出现的位置非常困难。

我对 bibtex 或 biblatex 解决方案都很满意。

梅威瑟:

\documentclass{article}

\usepackage{filecontents}
\usepackage{biblatex}

\begin{filecontents}{myrefs.bib}
@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},
}
\end{filecontents}

\addbibresource{myrefs.bib}
\begin{document}

\section{First}
    {\LaTeX} is aTuring-complete
    (procedural) markup language and
    typesetting processor~\parencite{Lamport:94}.


\printbibliography
\appendix
\section{Second}
\begin{refsection}
   The ultimate reference of {\TeX} is~\parencite{Knuth:1990} and \parencite{Lamport:94}, which should NOT be cited in this section.
   \printbibliography[heading=subbibliography]
\end{refsection}

\end{document}

答案1

我找到了 的解决方案biblatex,它结合了filtersrefsegment

在此处输入图片描述

\documentclass{article}

\usepackage{filecontents}
\usepackage[style=trad-alpha]{biblatex}

\begin{filecontents}{myrefs.bib}
@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},
}
\end{filecontents}

\addbibresource{myrefs.bib}
\defbibfilter{appendixOnlyFilter}{
  segment=1 % Segment 1 will be chosen to be the one in appendix
  and not segment=0 % Default segment is 0
}

\begin{document}

\section{Main Body}
{\LaTeX} is aTuring-complete (procedural) markup language and typesetting processor~\cite{Lamport:94}.

\printbibliography[segment=0]
\appendix
\newrefsegment %% <== increases the segment number (0 by default)

\section{Appendix}
The ultimate reference of {\TeX} is~\cite{Knuth:1990} and \cite{Lamport:94}, which should NOT be cited in this section.
\printbibliography[heading=subbibliography,filter=appendixOnlyFilter]

\end{document}

答案2

您可以使用此模板并在3分钟内创建您自己的文件,使用非常简单,可以节省您的时间和精力。

https://www.overleaf.com/latex/examples/multiple-bibliographies-with-bibunits/ktgbztpwjnpb

主文本

\documentclass{article}
\usepackage[utf8]{inputenc}
\title{Multiple bibliographies with bibunits}

\usepackage{bibunits}

\begin{document}

\begin{bibunit}[plain]
\section{A section}
This is the first part with citations from \texttt{refs1.bib}, using the \texttt{plain} style. \cite{lees2010theoretical}

\putbib[refs1]
\end{bibunit}


\begin{bibunit}[alpha]
\section{Another section}
This is the first part with citations from \texttt{refs2.bib}, using the \texttt{alpha} style. \cite{belkin2002using,berard1994embedding}

\putbib[refs2]
\end{bibunit}


\end{document}

参考文献1.bib

@article{lees2010theoretical,
  title={Theoretical maximum capacity as benchmark for empty vehicle redistribution in personal rapid transit},
  author={Lees-Miller, John and Hammersley, John and Wilson, R},
  journal={Transportation Research Record: Journal of the Transportation Research Board},
  number={2146},
  pages={76--83},
  year={2010},
  publisher={Transportation Research Board of the National Academies}
}

参考文献2.bib

@inproceedings{belkin2002using,
  title={Using manifold stucture for partially labeled classification},
  author={Belkin, Mikhail and Niyogi, Partha},
  booktitle={Advances in neural information processing systems},
  pages={929--936},
  year={2002}
}

@article{berard1994embedding,
  title={Embedding Riemannian manifolds by their heat kernel},
  author={B{\'e}rard, Pierre and Besson, G{\'e}rard and Gallot, Sylvain},
  journal={Geometric \& Functional Analysis GAFA},
  volume={4},
  number={4},
  pages={373--398},
  year={1994},
  publisher={Springer}
}

ps:我在 Google 上搜索了 2 个小时,甚至还尝试了 Overleaf 官方的解决方案:https://www.overleaf.com/learn/latex/Questions/Creating_multiple_bibliographies_in_the_same_document。它不起作用。然后我找到了由 Overleaf 用户创建的这个链接。

相关内容