救命!如何获取 PDF 文件?错误和警告导致没有 PDF 文件

救命!如何获取 PDF 文件?错误和警告导致没有 PDF 文件

我有一个大问题。我正在写我的博士论文,最近开始使用 latex。我掌握了一些基本技能,这些技能大部分时间都帮助了我。但目前我不知道如何解决这个问题。每次我尝试排版 tex 文件时,控制台都会显示以下内容:

This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 \write18 enabled.
entering extended mode
(./Promotion4.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, arabic, armenian
, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutch, u
kenglish, usenglishmax, esperanto, estonian, farsi, finnish, french, galician, 
german, ngerman, swissgerman, monogreek, greek, hungarian, icelandic, assamese,
 bengali, gujarati, hindi, kannada, malayalam, marathi, oriya, panjabi, tamil, 
telugu, indonesian, interlingua, irish, italian, kurmanji, lao, latin, latvian,
 lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, polish, portuguese, roma
nian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish,
 turkmen, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/book.cls
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/bk12.clo))
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/ngermanb.ldf
(/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.def)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/applemac.def))
(/usr/local/texlive/2010/texmf-dist/tex/latex/biblatex/biblatex.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/etoolbox/etoolbox.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/etex-pkg/etex.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/biblatex/blx-compat.def)
(/usr/local/texlive/2010/texmf-dist/tex/latex/biblatex/biblatex.def)
(/usr/local/texlive/2010/texmf-dist/tex/latex/biblatex/bbx/authortitle-icomp.bb
x (/usr/local/texlive/2010/texmf-dist/tex/latex/biblatex/bbx/authortitle.bbx
(/usr/local/texlive/2010/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/biblatex/cbx/authortitle-icomp.cb
x) (/usr/local/texlive/2010/texmf-dist/tex/latex/biblatex/biblatex.cfg))
(/usr/local/texlive/2010/texmf-dist/tex/latex/csquotes/csquotes.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/csquotes/csquotes.def)
(/usr/local/texlive/2010/texmf-dist/tex/latex/csquotes/csquotes.cfg)

Package csquotes Warning: Option 'babel' depreciated.
(csquotes)                Using 'autostyle' on input line 2327.

) (/usr/local/texlive/2010/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/etexcmds.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdfescape.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty)))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/hycolor.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/letltxmacro.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/intcalc.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/kvoptions.sty)

/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hyperref.sty:3577: Packag
e keyval Error: cross-reference undefined.

See the keyval package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.3577 \ProcessKeyvalOptions{Hyp}

我尝试了所有快捷方式来忽略警告和错误,但都无济于事。最后我没有得到 pdf 文件,我感觉我迄今为止所做的所有工作都毁于一旦。

所以如果有人知道如何解决这个问题,那就太好了。

答案1

从评论来看,MWE

\documentclass{book}
\usepackage[cross-reference]{hyperref}
\begin{document}
\end{document} 

正如其他人所观察到的,cross-reference不是一个有效的选项hyperref,所以错误信息是完全正确的。

相关内容