引用 bib 文件中的所有条目

引用 bib 文件中的所有条目

我有两个bib带有参考资料的文件。

我想对第二个文件中的所有参考文献进行内联引用,但不对第一个文件中的所有参考文献进行内联引用。

有没有一种方法可以做到这一点而不需要在第二个文件中输入所有参考资料?

答案1

在此处输入图片描述

  1. 为您输入的资源分配标签,如下所示

    \addbibresource[label=<identifier>]{<name of bibliography file>.bib}

  2. biblatex将文件视为书目条目的来源。但是,当你想引用此文件中的所有参考资料时,请使用

%代码

\begin{refsection}[<identifier>]

    \nocite{*}

    \printbibliography

\end{refsection}

因此,您表示biblatex只需要打印源文件中提供的、标签标识为<identifier>

\begin{filecontents*}{sample.bib}
@ARTICLE{makram1988a,
    title={{A generalized computer technique for the development of the three-phase impedance matrix for unbalanced power systems}},
    author={Makram, Elham B and Girgis, Adly A},
    journal={Electric power systems research},
    volume={15},
    number={1},
    pages={41--50},
    year={1988},
    publisher={Elsevier}
}
@ARTICLE{makram1989a,
    title={{Development of a three-phase bus impedance matrix in the complex frequency domain for transient analysis in unbalanced distribution systems}},
    author={Makram, Elham and Girgis, Adly},
    journal={Electric Power Systems Research},
    volume={16},
    number={3},
    pages={183--193},
    year={1989},
    publisher={Elsevier}
}
@article{makram1989b,
    title={Selection of lines to be switched to eliminate overloaded lines using a Z-matrix method},
    author={Makram, Elham B and Thorton, Katherine P and Brown, Homer E},
    journal={IEEE Transactions on Power Systems},
    volume={4},
    number={2},
    pages={653--661},
    year={1989},
    publisher={IEEE}
}
\end{filecontents*}


\begin{filecontents*}{sampleX.bib}
@article{aldaoudeyeh2016X,
    title={{Photovoltaic-battery scheme to enhance PV array characteristics in partial shading conditions}},
    author={Aldaoudeyeh, Al-Motasem},
    journal={IET Renewable Power Generation},
    volume={10},
    number={1},
    pages={108--115},
    year={2016},
    publisher={IET}
}
@ARTICLE{wu2017X,
    title={{Assessing Impact of Renewable Energy Integration on System Strength Using Site-Dependent Short Circuit Ratio}},
    author={Wu, Di and Li, Gangan and Javadi, Milad and Malyscheff, Alexander M and Hong, Mingguo and Jiang, John Ning},
    journal={IEEE Transactions on Sustainable Energy},
    year={2017},
    publisher={IEEE}
}
@article{wu2019methodX,
    title={A method to identify weak points of interconnection of renewable energy resources},
    author={Wu, Di and Aldaoudeyeh, Al~Motasem and Javadi, Milad and Ma, Feng and Tan, Jin and Jiang, John N and others},
    journal={International Journal of Electrical Power \& Energy Systems},
    volume={110},
    pages={72--82},
    year={2019},
    publisher={Elsevier}
}
\end{filecontents*}

\documentclass{book}

% BEGIN_FOLD
    \usepackage[style=alphabetic]{biblatex}

    \addbibresource{sample.bib}
    \addbibresource[label=special]{sampleX.bib}

    \bibsetup{}

% END_FOLD

\begin{document}

\begin{refsection}[special]

    To cite all sources in a given bibliography file, use \verb|\nocite{*}| command

    \nocite{*}

    \printbibliography[heading=subbibliography]

\end{refsection}

\end{document}

尝试检查上面给出的示例代码时,请记住.bbl在每次运行时删除该文件

答案2

是的。一种方法是使用贾布雷夫bib 管理器。使用 JabRef 打开您想要全部引用的第二个 bib 文件,选择所有条目,然后按右上角的 push tex 引用图标。所有条目的内联引用将粘贴到您的 tex 文件编辑器(例如 Texstudio)中您上次离开光标的位置。

确保你的乳胶编辑器在 JabRef 中设置正确。

在此处输入图片描述

相关内容