参考文献未打印

参考文献未打印

我已经在 Google 上搜索过这个问题(似乎是其他人遇到的问题),并尝试了许多方法但都无济于事(包括重新安装 JabRef 和 MikTEx)。3 小时后,我崩溃了。当我从系统中删除 MikTex 然后重新安装时,我的麻烦就开始了(我以为我在更新,结果发现我已经安装了 2.9)。现在,当我运行 mikTex 时,我的文档中的任何参考资料都不会打印(没有参考部分的 PDF 输出和文中引用都显示为粗体,好像它们不存在或 JabRef 和 MikTex 没有通信)。

先感谢您。

以下是我所使用的:

\documentclass[leavefloats]{apa6e}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\addbibresource{Psychometrics}
\DeclareLanguageMapping{american}{american-apa}
\usepackage{enumerate}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{textcomp}
\usepackage[section]{placeins}
\usepackage{setspace}
\usepackage{appendix}
\usepackage{float}
\usepackage{subfig}
\usepackage{amsmath}
\usepackage{color}
\usepackage{ifthen}
\defbibheading{bibliography}{%
\section{\normalfont\refname}}
\title{TITLE}
\shorttitle{TITLE}
\author{ME}
\authornote{Nothing}
\date{\today}
\begin{document}
\maketitle

stuff

\cite{Bennett1954}
\clearpage 
\printbibliography
\end{document}

我在 win 7 机器上使用 MikTex 2.9 和 JabRef 2.8 以及 winEdt 7。bib 文件Psychometrics.bib位于 .tex 文件所在的目录中。

输出如下:

Command Line:   bibtex.exe "example"
Startup Folder: C:\Users\trinker\Desktop\PhD Program\CEP 510 Psychometrics\Assignments\Final paper

This is BibTeX, Version 0.99d (MiKTeX 2.9)
The top-level auxiliary file: example.aux
I found no \citation commands---while reading file example.aux
I found no \bibdata command---while reading file example.aux
I found no \bibstyle command---while reading file example.aux
(There were 3 error messages)


Command Line:   texify.exe --pdf --tex-option=--interaction=errorstopmode --tex-option=--synctex=-1 "C:\Users\trinker\Desktop\PhD Program\CEP 510 Psychometrics\Assignments\Final paper\example.tex"
Startup Folder: C:\Users\trinker\Desktop\PhD Program\CEP 510 Psychometrics\Assignments\Final paper

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode

("C:/Users/trinker/Desktop/PhD Program/CEP 510 Psychometrics/Assignments/Final 
paper/example.tex"
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\apa6e\apa6e.cls
Document Class: apa6e 2011/03/03 v0.3 APA 6e manuscript formatting
("C:\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\MiKTeX 2.9\tex\latex\base\size12.clo"))
("C:\MiKTeX 2.9\tex\latex\psnfss\times.sty")
("C:\MiKTeX 2.9\tex\latex\psnfss\mathptmx.sty")
("C:\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
("C:\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")
("C:\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty")
("C:\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")
("C:\MiKTeX 2.9\tex\latex\geometry\geometry.cfg"))
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\ms\ragged2e.sty
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\ms\everysel.sty)
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\footmisc\footmisc.sty))
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\fancyhdr\fancyhdr.sty)
("C:\MiKTeX 2.9\tex\latex\float\float.sty")
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\caption\caption.sty
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\caption\caption3.sty))
("C:\MiKTeX 2.9\tex\latex\base\ifthen.sty"))
("C:\MiKTeX 2.9\tex\generic\babel\babel.sty"
*************************************
* Local config file bblopts.cfg used
*
("C:\MiKTeX 2.9\tex\latex\00miktex\bblopts.cfg")
("C:\MiKTeX 2.9\tex\generic\babel\english.ldf"
("C:\MiKTeX 2.9\tex\generic\babel\babel.def")))
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\csquotes\csquotes.sty
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\etoolbox\etoolbox.sty
("C:\MiKTeX 2.9\tex\latex\misc\etex.sty"))
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\csquotes\csquotes.def)
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\csquotes\csquotes.cfg))
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.sty

Package biblatex Warning: No "backend" specified, using Biber backend.
(biblatex)                To use BibTeX, load biblatex with 
(biblatex)                the "backend=bibtex" option.

(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex2.sty
("C:\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"
("C:\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty")
("C:\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"
("C:\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
("C:\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
("C:\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"))))
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\logreq\logreq.sty
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\logreq\logreq.def))
("C:\MiKTeX 2.9\tex\latex\ltxmisc\url.sty")
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\blx-dm.def)
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\blx-compat.def)
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.def)
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex-apa\apa.bbx
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\bbx\standard.bb
x)

Package biblatex Warning: Macro 'reviewauthor' undefined.
(biblatex)                Using \newbibmacro.

) (C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex-apa\apa.cbx)
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.cfg)))
 ("C:\MiKTeX 2.9\tex\latex\tools\enumerate.sty")
("C:\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
("C:\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
("C:\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))
("C:\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")
("C:\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg"))

Package hyperref Message: Driver (autodetected): hpdftex.

("C:\MiKTeX 2.9\tex\latex\hyperref\hpdftex.def"
("C:\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"))
("C:\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
("C:\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def")))
("C:\MiKTeX 2.9\tex\latex\base\textcomp.sty"
("C:\MiKTeX 2.9\tex\latex\base\ts1enc.def"))
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\placeins\placeins.sty)
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\setspace\setspace.sty)
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\appendix\appendix.sty)
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\subfig\subfig.sty)
("C:\MiKTeX 2.9\tex\latex\ams\math\amsmath.sty"
For additional information on amsmath, use the `?' option.
("C:\MiKTeX 2.9\tex\latex\ams\math\amstext.sty"
("C:\MiKTeX 2.9\tex\latex\ams\math\amsgen.sty"))
("C:\MiKTeX 2.9\tex\latex\ams\math\amsbsy.sty")
("C:\MiKTeX 2.9\tex\latex\ams\math\amsopn.sty"))
("C:\MiKTeX 2.9\tex\latex\graphics\color.sty"
("C:\MiKTeX 2.9\tex\latex\00miktex\color.cfg"))
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex-apa\american-ap
a.lbx
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\lbx\american.lb
x
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\lbx\english.lbx
)))
("C:\Users\trinker\Desktop\PhD Program\CEP 510 Psychometrics\Assignments\Final 
paper\example.aux") ("C:\MiKTeX 2.9\tex\latex\base\ts1cmr.fd")
("C:\MiKTeX 2.9\tex\latex\psnfss\ot1ptm.fd")
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
ABD: EverySelectfont initializing macros
("C:\Users\trinker\Desktop\PhD Program\CEP 510 Psychometrics\Assignments\Final 
paper\example.bbl") ("C:\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
("C:\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"))
("C:\Users\trinker\Desktop\PhD Program\CEP 510 Psychometrics\Assignments\Final 
paper\example.out")
("C:\Users\trinker\Desktop\PhD Program\CEP 510 Psychometrics\Assignments\Final 
paper\example.out")
(C:\Users\trinker\AppData\Roaming\MiKTeX\2.9\tex\context\base\supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
Underfull \hbox (badness 10000) in paragraph at lines 33--33
 []\OT1/ptm/m/n/12 TITLE 

Underfull \hbox (badness 10000) in paragraph at lines 33--33
 []\OT1/ptm/m/n/12 ME 
("C:\MiKTeX 2.9\tex\latex\psnfss\ot1pcr.fd")
Underfull \hbox (badness 10000) in paragraph at lines 33--33
 \OT1/pcr/b/n/14.4 leavefloats \OT1/ptm/b/n/14.4 op-tion be-fore you sub-mit! 

Underfull \hbox (badness 10000) in paragraph at lines 33--33
 []\OT1/ptm/m/n/12 Author Note 
[1{C:/Users/trinker/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
Underfull \hbox (badness 10000) in paragraph at lines 33--33
 [][]\OT1/ptm/m/n/12 Abstract 
! Undefined control sequence.
\HyOrg@maketitle ... \mspart {Abstract}\@abstract 
                                                  \mspart {\@title }
l.33 \cite
          {Bennett1954}
? 
[2]
Underfull \hbox (badness 10000) in paragraph at lines 33--33
 [][]\OT1/ptm/m/n/12 TITLE 

LaTeX Warning: Citation 'Bennett1954' on page 3 undefined on input line 33.


LaTeX Warning: Citation 'Bennett1954' on page 3 undefined on input line 36.

[3]

LaTeX Warning: Empty bibliography on input line 38.


("C:\Users\trinker\Desktop\PhD Program\CEP 510 Psychometrics\Assignments\Final 
paper\example.aux")

LaTeX Warning: There were undefined references.


Package biblatex Warning: Please (re)run Biber on the file:
(biblatex)                example
(biblatex)                and rerun LaTeX afterwards.

 )
(\end occurred when \ifx on line 46 was incomplete)
(\end occurred when \ifx on line 46 was incomplete)
(\end occurred when \ifx on line 46 was incomplete){C:/MiKTeX 2.9/fonts/enc/dvi
ps/fontname/8r.enc}<C:/MiKTeX 2.9/fonts/type1/urw/courier/ucrb8a.pfb><C:/MiKTeX
 2.9/fonts/type1/urw/courier/ucrbo8a.pfb><C:/MiKTeX 2.9/fonts/type1/urw/times/u
tmb8a.pfb><C:/MiKTeX 2.9/fonts/type1/urw/times/utmbi8a.pfb><C:/MiKTeX 2.9/fonts
/type1/urw/times/utmr8a.pfb>
Output written on example.pdf (3 pages, 51420 bytes).
SyncTeX written on example.synctex.
Transcript written on example.log.
texify: pdflatex.exe failed for some reason (see log file).


_____________________________________________________________________

 PDFTeXify Compilation Report (Pages: 3)

 Errors: 1   Warnings: 7   Bad Boxes: 6
_____________________________________________________________________

答案1

看起来您正在使用 WinEdt7,特别是 PDFTeXify 按钮(或非常相似的 PDFLaTeXify 按钮)来编译文件。PDF(La)TeXify 按钮非常方便,因为它将运行 LaTeX、BibTeX(如果需要)和 MakeIndex(如果需要),无论需要多少次才能完全解析所有交叉引用和引文。但是,正如您所发现的,即使您的BibTeXLaTeX 文件真正需要的是,此“按钮”下的宏也会默认运行biber

如果您确实要使用此 PDFTeXify 按钮,则可以通过修改 WinEdt 宏定义文件之一来继续,以便程序调用biber而不是bibtex。这是我建议您做的。在文件中PDFTeXify.edt(控制 PDFTeXify“按钮”的行为),有一个对名为 的环境变量的调用BibTeX-Executable。该变量又由指令分配一个值

Assign(!"BibTeX-Executable", !|bibtex.exe|); 

在文件的第 280 行ExeMode.edt。(在我的系统上,该文件ExeMode.edt位于目录中..\WinEdt Team\WinEdt7\Exec\Default\,日期为 2011/05/20。如果您的文件版本不同,则有问题的行也可能位于其他地方。)

将此行更改为

Assign(!"BibTeX-Executable", !|biber.exe|); 

并保存.edt文件。您可能需要退出并重新启动 WinEdt 才能使此更改生效。

附录-- 需要注意的是:将BibTeX-Executable环境变量的赋值从bibtex.exe改为biber.exe很可能会影响 WinEdt 运行的许多其他进程。如果您不打算biblatex只使用 (和 biber),请留意 WinEdt 试图biber在应该运行时运行而可能引起的奇怪错误消息bibtex

答案2

您是最近更新到 后受影响的第一批用户之一biblatex,现在biber默认使用 作为后端;日志文件中对此进行了解释

Package biblatex Warning: No "backend" specified, using Biber backend.
(biblatex)                To use BibTeX, load biblatex with 
(biblatex)                the "backend=bibtex" option.

因此,您要么使用biberBibTeX,要么说

\usepackage[style=apa,backend=bibtex]{biblatex}

在你的序言中。

但是,正如 Audrey 所评论的,style=apa现在需要biber后端。因此,您应该遵循第一条路:

biber file

代替

bibtex file

如何启动biber而不是bibtex取决于你使用什么作为 LaTeX 的前端:TeXworks、TeXStudio 或诸如此类。没有这些信息,就不可能提出更多建议。但是,以下讨论

http://old.nabble.com/(pdf)texify-using-biber-instead-of-bibtex-td30017737.html

可以帮你。

答案3

WinEdt 默认使用 BibTeX,但您应使用 biber。要使 WinEdt 7.0 使用 biber 而不是 BibTeX,请在“执行模式”窗口(选项 -> 执行模式)中选择“BibTeX”附件,并在底部的“命令行”字段中更改bibtex.exebiber.exe

WinEdt 帮助中的“执行模式”条目也提到了这一点。

相关内容