Winedt 7.0 + MiKTeX 2.9 编译问题

Winedt 7.0 + MiKTeX 2.9 编译问题

我不断收到以下错误,不知道该怎么办!有人知道如何修复吗?

Command Line:   `bibtex.exe "PA1_A2"`

This is BibTeX, Version 0.99d (MiKTeX 2.9 64-bit);

The top-level auxiliary file: PA1_A2.aux I found no \citation
commands---while reading file PA1_A2.aux

I found no \bibdata command---while reading file PA1_A2.aux

I found no \bibstyle command---while reading file PA1_A2.aux (There
were 3 error messages)

答案1

我怀疑您有一个需要编译的参考书目,biber并且您正在尝试用它来编译它bibtex

另外,您可能正在 WinEdt 中使用PDFTeXify命令,bibtex如果您未指定要使用 ,则此命令将编译为biber。要在 WinEdt 中执行此操作,请转到Options-> Execution modes-> Console Applications-> Accessories->BibTeX并将Executable定义从更改bibtex.exebiber.exe

否则你可以下载我的贡献:LaTeXify它向TeX菜单中添加了几个适用于自动编译的命令

答案2

考虑以下代码:

\documentclass{article}
\usepackage{filecontents}
%\begin{filecontents*}{\jobname.bib}
%@article{gander2001,
% author={Gladstone Gander},
% title={How to be lucky},
% journal={Nature},
% pages={1-33},
% volume={42},
% year={2001},
%}
%@article{ducks2002,
% author={Donald Duck and Fethry Duck},
% title={How to be unlucky},
% journal={Nature},
% pages={34-44},
% volume={43},
% year={2002},
%}
%@book{scrooge1901,
% author={Scrooge McDuck},
% title={My first golden nugget in {Klondike}},
% publisher={Yukon Press},
% address={Whitehorse},
% year={1901},
%}
%@book{scrooge1990,
% author={Scrooge McDuck},
% title={How to manage zillion of dollars},
% publisher={McDuck Press},
% address={Duckburg},
% year={1990},
%}
%\end{filecontents*}

\begin{document}
You should use a \verb|\cite{bib key}| in your document%~\cite{scrooge1901}.
To print all the references in the bib file without citing them in the text, use
\verb|\nocite{*}|. %\nocite{*}

You should also specify a bibliography style and provide a .bib file as below.
%\bibliographystyle{unsrt}
\bibliography{\jobname}

\end{document}

如果你运行此文件,pdflatex 然后bibtex你将会收到以下错误消息bibtex

This is BibTeX, Version 0.99dThe top-level auxiliary file: doi.aux
I found no \citation commands---while reading file doi.aux
I found no \bibstyle command---while reading file doi.aux
(There were 2 error messages)

现在取消注释所有注释的内容:

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{gander2001,
 author={Gladstone Gander},
 title={How to be lucky},
 journal={Nature},
 pages={1-33},
 volume={42},
 year={2001},
}
@article{ducks2002,
 author={Donald Duck and Fethry Duck},
 title={How to be unlucky},
 journal={Nature},
 pages={34-44},
 volume={43},
 year={2002},
}
@book{scrooge1901,
 author={Scrooge McDuck},
 title={My first golden nugget in {Klondike}},
 publisher={Yukon Press},
 address={Whitehorse},
 year={1901},
}
@book{scrooge1990,
 author={Scrooge McDuck},
 title={How to manage zillion of dollars},
 publisher={McDuck Press},
 address={Duckburg},
 year={1990},
}
\end{filecontents*}

\begin{document}
You should use a \verb|\cite{bib key}| in your document~\cite{scrooge1901}.
To print all the references in the bib file without citing them in the text, use
\verb|\nocite{*}|. \nocite{*}

You should also specify a bibliography style and provide a .bib file as below.
\bibliographystyle{unsrt}
\bibliography{\jobname}

\end{document}

现在按此顺序运行、、,pdflatex不会产生任何错误bibtexpdflatexpdflatex

道德

  1. 您应该.bib在同一个目录中有一个文件(这里 \jobname.bib由 生成filecontents)。

  2. \cite{bib key}您应该在文档中使用。

  3. 您应该指定一个参考书目样式。

  4. 您应该通过 将 bib 文件包含在文档中 \bibliography{\jobname}
  5. 为了获得更具体的答案,您应该提供 MWE!

相关内容