将自定义引文手动添加到 Mendeley 创建的参考数据库中

将自定义引文手动添加到 Mendeley 创建的参考数据库中

有没有办法在不干扰此工具的情况下将 LaTex 中的自定义引文手动添加到 Mendeley 创建的现有参考数据库中;即,在同步 Mendeley 库时,添加的引文不会被删除,因为它无法在 Mendeley 库中找到?

答案1

以下 MWE 显示了您可以做什么。我使用包filecontents在 MWE 中包含两个 bib 文件。假设第一个是您的 menderley 文件,第二个是新文件。然后,您可以通过调用将这两个文件用于您的文献列表\bibliography{bibfile1,bibfile2}。请参阅 MWE:

\RequirePackage{filecontents}            % loading package filecontents
\begin{filecontents*}{\jobname1.bib}
@Book{companion,
  author    = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year       = {1994},
}
\end{filecontents*}

\begin{filecontents*}{\jobname2.bib}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
\end{filecontents*}


\documentclass{article}

\usepackage[numbers]{natbib}         % bibliography style
\usepackage[colorlinks]{hyperref}    % better urls in bibliography

\begin{document}
Test of bibliography: 
The funny book of Adams~\cite{adams}, the \LaTeX{} companion~\cite{companion}.

\bibliographystyle{plainnat}  % needs package natbib
\bibliography{\jobname1,\jobname2}       % uses \jobname1.bib, according to \jobname.tex
\end{document}

相关内容