同时使用 bibtopic 和 bibentry

同时使用 bibtopic 和 bibentry

据我了解,该包bibtopic重新定义(并忽略)命令\bibliography和。而当遇到时,\nobibliography该包bibentry依靠任一命令来加载书目条目并将其插入文档中。\bibentry

有没有办法让它们一起工作?目前,我得到的只是一个应该\bibentry出现的空白位置。下面是一个(有点)最小的例子。

\documentclass[a4paper,11pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{natbib}
\usepackage{bibentry}
\usepackage{bibtopic}


\begin{document}
\bibliographystyle{plain}
\nobibliography*

The cloud by NIST~\cite{NISTCloud}. Nice graphic card: \cite{TeslaK40}.

BigData:\\
\bibentry{BigData}

\chapter*{Bibliography}
\begin{btSect}{main}
    \btPrintCited
\end{btSect}

\chapter*{Webography}
\begin{btSect}{web}
    \btPrintCited
\end{btSect}

\bibliography{main}

\end{document}

的内容main.bib

@article{BigData,
    title={{3D Data Management: Controlling Data Volume, Velocity and Variety}},
    author={Laney, Doug},
    journal={META Group Research Note},
    volume={6},
    year={2001}
}
@article{NISTCloud,
    title={{The NIST Definition of Cloud Computing}},
    author={Mell, Peter and Grance, Tim},
    year={2011},
    publisher={Computer Security Division, Information Technology Laboratory, National Institute of Standards and Technology}
}

的内容web.bib

@misc{TeslaK40,
    author = {\textsc{nVIDIA}},
    title = {{Tesla K40 and K80 GPU Accelerators for Servers}},
    howpublished = {\url{http://www.nvidia.com/object/tesla-servers.html}}
}

以下是我用来编译的命令:

pdflatex main
bibtex main1
bibtex main2
pdflatex main
pdflatex main

因此一切都应该被正确编译。

答案1

我认为您正在寻找的是功能强大的biblatex,带有您需要的所有实用程序。我对示例做了一些小修改,以使其保持最新状态。您需要决定它是否适用于您自己的项目。

article在示例中将所有内容放在一页上。使用哪个文档类其实并不重要。

celelibiBibTopic

\begin{filecontents*}{\jobname-main.bib}
    @article{BigData,
        title={{3D Data Management: Controlling Data Volume, Velocity and Variety}},
        author={Laney, Doug},
        journal={META Group Research Note},
        volume={6},
        year={2001}
    }
    @article{NISTCloud,
        title={{The NIST Definition of Cloud Computing}}, 
        author={Mell, Peter and Grance, Tim},
        year={2011},
        publisher={Computer Security Division, Information Technology Laboratory, National Institute of Standards and Technology}
    }
\end{filecontents*}
\begin{filecontents*}{\jobname-web.bib}
    @online{TeslaK40,
        author = {\textsc{nVIDIA}},
        title = {{Tesla K40 and K80 GPU Accelerators for Servers}},
        url = {http://www.nvidia.com/object/tesla-servers.html},
    }
\end{filecontents*}
\documentclass[a4paper,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
%\usepackage{natbib}
%\usepackage{bibentry}
%\usepackage{bibtopic}
\usepackage[natbib=true]{biblatex}
\addbibresource{\jobname-main.bib}
\addbibresource{\jobname-web.bib}

\begin{document}

The cloud by NIST~\cite{NISTCloud}. Nice graphic card:
\cite{TeslaK40}.

BigData:\par
\fullcite{BigData}

\printbibliography[title=Bibliography,nottype=online]
\printbibliography[title=Webography,type=online]

\end{document}

相关内容