沒有參考書目目的孤立參考書目條目

沒有參考書目目的孤立參考書目條目

我試圖在沒有實際參考書目的情況下創建獨立的參考書目條目,但它們根本不會出現在最終編譯的文檔中。

微量元素:

document.tex

\documentclass{article}
\usepackage{bibentry}

\begin{document}
    Some text
    \bibentry{thing}
    \bibliographystyle{alpha}
    \nobibliography{biblography}
    \nocite{*}
\end{document}

biblography.bib

@Article{thing,
author="Someone",
title="Something",
journal="Some Journal",
year="2018",
month="Feb",
day="12",
}

輸出是一個僅包含「一些文字」但沒有參考書目條目的文件。我希望該條目顯示出來。

答案1

您必鬚髮出\nobibliography 任何使用\bibentry.

bibentry文件

這些 [ \bibentry] 命令只能在 後發出\nobibliography,否則無法得知參考文本。

\documentclass{article}
\usepackage{bibentry}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{thing,
author="Someone",
title="Something",
journal="Some Journal",
year="2018",
month="Feb",
day="12",
}
\end{filecontents}


\begin{document}
  \nobibliography{\jobname}
  Some text
  \bibentry{thing}
  \bibliographystyle{alpha}
\end{document}

相關內容