引用插入有问题吗?

引用插入有问题吗?

我希望有人能帮我解决这个我确信是新手的问题。我只是想将 BibDesk 中的引文插入 LaTeX 文档中。我的 MWE 如下所示:

\documentclass{article}
\usepackage{bibentry}
\bibliographystyle{plain}

\begin{document}

\section{test}
test cite should be here: \cite{brown08}.

\bibliography{cvpubs.bib}

\end{document}

我的 bib 文件名为cvpubs.bib,与上面的 MWE LaTeX 文档位于同一目录中。该cvpubs.bib文件如下所示:

@article{brown08,
    Author = {Seth Brown and Michael Cole and Albert Erives},
    Date-Added = {2011-10-22 21:01:18 +0000},
    Date-Modified = {2011-10-22 21:57:01 +0000},
    Journal = {BMC Genomics},
    Keywords = {evolution, myc},
    Month = {September},
    Number = {442},
    Rating = {5},
    Read = {1},
    Title = {Evolution of the holozoan ribosome biogenesis regulon},
    Volume = {9},
    Year = {2008}}

先谢谢您的帮助!

答案1

尝试

\documentclass{article}
\usepackage[OT1]{fontenc}
\usepackage{filecontents}
\bibliographystyle{plain}
\usepackage{bibentry}
\begin{filecontents*}{bibentry-example-02.bib}
@Book{abramowitz,
 author    = "Milton {Abramowitz} and Irene A. {Stegun}",
 title     = "Handbook of Mathematical Functions with
              Formulas, Graphs, and Mathematical Tables",
 publisher = "Dover",
 year      =  1964,
 address   = "New York",
 edition   = "ninth Dover printing, tenth GPO printing"
}
@article{brown08,
    Author = {Seth Brown and Michael Cole and Albert Erives},
    Date-Added = {2011-10-22 21:01:18 +0000},
    Date-Modified = {2011-10-22 21:57:01 +0000},
    Journal = {BMC Genomics},
    Keywords = {evolution, myc},
    Month = {September},
    Number = {442},
    Rating = {5},
    Read = {1},
    Title = {Evolution of the holozoan ribosome biogenesis regulon},
    Volume = {9},
    Year = {2008}}
\end{filecontents*}
\nobibliography*  
\begin{document}
\section{Section 1}
This will give you a full entry (bibentry is used for that) :\\
\bibentry{abramowitz}. 
Use this for citations \cite{abramowitz}\cite{brown08}
\bibliography{bibentry-example}
\end{document}  

bibentry通常用于引用完整条目。为此,您需要发出命令bibentry

答案2

请尝试以下操作:

  • 直接从所在文件夹打开您用于参考的 .bib 文件(而不是从 bibdesk 或“最近”文件夹中打开它)。

  • 您是否保存了最近对 bibdesk 所做的更改?

  • 在您有引用的 Chapter.tex 文档中排版 Latex、BibTex、Latex、Latex,以及用于编译所有内容的主要 thesis.tex 文档。

  • 在论文控制台上,选择“删除辅助文件”。然后如上所述重新编译几次。这将重新生成引文。当文件已转移时效果很好。

相关内容