在 LaTeX 中内联 BibTeX?

在 LaTeX 中内联 BibTeX?

试图

\documentclass[conference]{IEEEtran}

%\usepackage[cmex10]{amsmath}
\usepackage{url, cite, datetime, filecontents}

\begin{document}
\title{Bare Demo of IEEEtran.cls for Conferences}

\IEEEspecialpapernotice{(last revised: \today)}

\begin{filecontents}{\jobname.bib}
@article{zunino_iterative_2009,
    title = {Iterative deconvolution and semiblind deconvolution methods in magnetic archaeological prospecting},
    volume = {74},
    issn = {0016-8033, 1942-2156},
    url = {http://library.seg.org/doi/abs/10.1190/1.3129263},
    doi = {10.1190/1.3129263},
    number = {4},
    urldate = {2014-01-24},
    journal = {GEOPHYSICS},
    author = {Zunino, Andrea and Benvenuto, Federico and Armadillo, Egidio and Bertero, Mario and Bozzo, Emanuele},
    month = jul,
    year = {2009},
    pages = {L43--L51}
}
\end{filecontents}

\maketitle

\begin{abstract}
%\boldmath
The abstract goes here.
\end{abstract}
\IEEEpeerreviewmaketitle


\section{Introduction}
Not a convoluted \cite{zunino_iterative_2009}\ldots example

\bibliography{IEEEabrv, \jobname}

\end{document}

我还尝试了以下块:

  • \begin{*filecontents}{\jobname.bib}\end{*filecontents}

另外,我还尝试将文件内容行放在该\bibliography行上方。

为了替换该参考书目行,我尝试了以下方法:

  • \bibliography{IEEEabrv, \jobname}
  • \bibliography{IEEEabrv}
  • \bibliography{}
  • \begin{thebibliography}\end{thebibliography}
  • \bibliographystyle{ieeetran}\bibliography{references}

版本:

  • MiKTeX-pdfTeX 2.9.5496 (1.40.15)(MiKTeX 2.9 64 位)
  • MiKTeX 编译器驱动程序 2.9.5497(MiKTeX 2.9 64 位)

(TeXworks—— texify --pdf --tex-option=$synctexoption $fullnamepdfLaTeX+MakeIndex+BibTeX

问题

不幸的是,无论我尝试哪种方法,都不会生成参考书目,并且在引用旁边只会显示[?]

答案1

\documentclass{article}
\begin{document}
\section{Polka loving Platypus}
\cite{companion}\cite{article-full}
\bibliographystyle{alpha}
\bibliography{xampl, biblatex-examples}
\end{document}

运行bibtex第一次 LaTeX 运行的辅助文件,我们得到以下内容

    The style file: alpha.bst
    White space in argument---line 5 of file atInlineBib.aux
     : \bibdata{xampl,
     :                 biblatex-examples}
    I'm skipping whatever remains of this command

这告诉我们,我们需要删除 参数中的空格才能\bibliography使 BibTeX 满足要求。最后,我们将看到预期的结果。

内联文摘

相关内容