在文档中显示参考

在文档中显示参考

可能重复:
我如何列出 BibTeX 文件中与评论一致的参考文献?

是否可以在参考文献中显示参考信息?我曾经\cite{reference}引用过作品,但有没有命令可以在我的文本中显示参考文献?我有:

\bibliographystyle{plain}
\bibliography{linkToBibTex}

但是我需要在文本中显示参考文献的详细信息,可以吗?而且我不想只显示参考编号。

答案1

你可以这样做natbibbibentry包裹:

\documentclass{article}
\usepackage{filecontents} % only needed to include sample bib file
% This is the sample bib file
\begin{filecontents}{test.bib} 
@article{glashow,
    Journal = {Nucl.~Phys.},
    Author = {Glashow, Sheldon},
    Pages = {579--588},
    Title = {Partial Symmetries of Weak Interactions},
    Volume = {22},
    Year = {1961}}
\end{filecontents}

\usepackage{natbib,bibentry}
\bibliographystyle{apalike}
\begin{document}
\nobibliography{test.bib}
This is a complete citation: \bibentry{glashow}

\end{document}

你也可以轻松完成biblatex

\documentclass{article}
\usepackage{filecontents} % only needed to include a sample bib file
% This is the sample bib file
\begin{filecontents}{test.bib} 
@article{glashow,
    Author = {Glashow, Sheldon},
    Journal = {Nucl.~Phys.},
    Pages = {579--588},
    Title = {Partial Symmetries of Weak Interactions},
    Volume = {22},
    Year = 1961}
\end{filecontents}
\usepackage[style=authoryear]{biblatex}
\bibliography{test.bib}
\begin{document}
This is a complete citation: \fullcite{glashow}

\end{document}

如果您刚开始使用参考书目,我会选择该biblatex解决方案,因为它提供了一个更简单的修改格式的界面。(尽管有许多现有.bst文件可用natbib。)

相关内容