我已经安装了完整的MiKTeX 2.8因为我必须管理由生成的 TeX 文件的 PDF 渲染Sphinx 1.0.4(Python 2.6)来自 ReST 源文件。
我强调,无论是数学部分还是图形部分,HTML 输出都很好,但是当我获取文件.tex
并尝试通过pdfLaTeX我捕获了超过 200 个递归错误。
我不知道操作系统是否是关键,我在 Windows 7(没有 Cygwin)下运行 Sphinx,并且一切正常,但它会为没有的表生成错误。
我将附加包含主要错误的日志文件。
它指的是数学研究。
(C:\Python26\Scripts\_build\latex\sphinxmanual.cls
Document Class: sphinxmanual
2009/06/02 Document class (Sphinx
manual)
(C:\Python26\Scripts\MikTex\tex\latex\base\report.cls
Document Class: report 2007/10/19
v1.4h Standard LaTeX document class
(C:\Python26\Scripts\MikTex\tex\latex\base\size10.clo)))
(C:\Python26\Scripts\MikTex\tex\latex\base\inputenc.sty
(C:\Python26\Scripts\MikTex\tex\latex\base\utf8.def
(C:\Python26\Scripts\MikTex\tex\latex\base\t1enc.dfu)
(C:\Python26\Scripts\MikTex\tex\latex\base\ot1enc.dfu)
(C:\Python26\Scripts\MikTex\tex\latex\base\omsenc.dfu)))
(C:\Python26\Scripts\MikTex\tex\latex\base\fontenc.sty
(C:\Python26\Scripts\MikTex\tex\latex\base\t1enc.def))
(C:\Python26\Scripts\MikTex\tex\generic\babel\babel.sty
*************************************
* Local config file bblopts.cfg used
*(C:\Python26\Scripts\MikTex\tex\latex\00miktex\bblopts.cfg)
(C:\Python26\Scripts\MikTex\tex\generic\babel\english.ldf
(C:\Python26\Scripts\MikTex\tex\generic\babel\babel.def)))
(C:\Python26\Scripts\MikTex\tex\latex\psnfss\times.sty)
(C:\Python26\Scripts\_build\latex\fncychap.sty)
(C:\Python26\Scripts\MikTex\tex\latex\tools\longtable.sty)
(C:\Python26\Scripts\_build\latex\sphinx.sty
(C:\Python26\Scripts\MikTex\tex\latex\base\textcomp.sty
(C:\Python26\Scripts\MikTex\tex\latex\base\ts1enc.def
(C:\Python26\Scripts\MikTex\tex\latex\base\ts1enc.dfu)))
(C:\Python26\Scripts\MikTex\tex\latex\fancyhdr\fancyhdr.sty)
(C:\Python26\Scripts\MikTex\tex\latex\fancybox\fancybox.sty
Style option: `fancybox' v1.4
<2010/05/15> (tvz) )
(C:\Python26\Scripts\MikTex\tex\latex\titlesec\titlesec.sty)
(C:\Python26\Scripts\_build\latex\tabulary.sty
(C:\Python26\Scripts\MikTex\tex\latex\tools\array.sty))
(C:\Python26\Scripts\MikTex\tex\latex\ams\math\amsmath.sty
For additional information on amsmath,
use the `' option.
(C:\Python26\Scripts\MikTex\tex\latex\ams\math\amstext.sty
(C:\Python26\Scripts\MikTex\tex\latex\ams\math\amsgen.sty))
(C:\Python26\Scripts\MikTex\tex\latex\ams\math\amsbsy.sty)
(C:\Python26\Scripts\MikTex\tex\latex\ams\math\amsopn.sty))
(C:\Python26\Scripts\MikTex\tex\latex\base\makeidx.sty)
(C:\Python26\Scripts\MikTex\tex\latex\framed\framed.sty)
(C:\Python26\Scripts\MikTex\tex\latex\graphics\color.sty
(C:\Python26\Scripts\MikTex\tex\latex\00miktex\color.cfg)
(C:\Python26\Scripts\MikTex\tex\latex\pdftex-def\pdftex.def))
(C:\Python26\Scripts\MikTex\tex\latex\fancyvrb\fancyvrb.sty
Style option: `fancyvrb' v2.7a, with
DG/SPQR fixes, and firstline=lastline
fix <2008/02/07> (tvz)
(C:\Python26\Scripts\MikTex\tex\latex\graphics\keyval.sty))
(C:\Python26\Scripts\MikTex\tex\latex\threeparttable\threeparttable.sty)
(C:\Python26\Scripts\MikTex\tex\latex\mdwtools\footnote.sty)
(C:\Python26\Scripts\MikTex\tex\latex\wrapfig\wrapfig.sty)
(C:\Python26\Scripts\MikTex\tex\latex\ltxmisc\parskip.sty)
(C:\Python26\Scripts\MikTex\tex\latex\graphics\graphicx.sty
(C:\Python26\Scripts\MikTex\tex\latex\graphics\graphics.sty
(C:\Python26\Scripts\MikTex\tex\latex\graphics\trig.sty)
(C:\Python26\Scripts\MikTex\tex\latex\00miktex\graphics.cfg)))
(C:\Python26\Scripts\MikTex\tex\plain\misc\pdfcolor.tex)
(C:\Python26\Scripts\MikTex\tex\latex\hyperref\hyperref.sty
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\ltxcmds.sty)
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\infwarerr.sty)
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\kvsetkeys.sty
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\etexcmds.sty))
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\pdfescape.sty
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\pdftexcmds.sty
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\ifluatex.sty)))
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\ifpdf.sty)
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\ifvtex.sty)
(C:\Python26\Scripts\MikTex\tex\generic\ifxetex\ifxetex.sty)
(C:\Python26\Scripts\MikTex\tex\latex\oberdiek\hycolor.sty
(C:\Python26\Scripts\MikTex\tex\latex\oberdiek\xcolor-patch.sty))
(C:\Python26\Scripts\MikTex\tex\latex\oberdiek\letltxmacro.sty)
(C:\Python26\Scripts\MikTex\tex\latex\oberdiek\kvoptions.sty)
(C:\Python26\Scripts\MikTex\tex\latex\hyperref\pd1enc.def)
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\intcalc.sty)
(C:\Python26\Scripts\MikTex\tex\latex\00miktex\hyperref.cfg)
(C:\Python26\Scripts\MikTex\tex\latex\ltxmisc\url.sty)
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\bitset.sty
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\bigintcalc.sty))
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\atbegshi.sty))
Package hyperref Message: Driver
(autodetected): hpdftex.
(C:\Python26\Scripts\MikTex\tex\latex\hyperref\hpdftex.def
(C:\Python26\Scripts\MikTex\tex\latex\oberdiek\atveryend.sty)
(C:\Python26\Scripts\MikTex\tex\latex\oberdiek\rerunfilecheck.sty
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\uniquecounter.sty)))
(C:\Python26\Scripts\MikTex\tex\latex\oberdiek\hypcap.sty))
Writing index file TiberCAD.idx
(C:\Python26\Scripts\_build\latex\TiberCAD.aux)
(C:\Python26\Scripts\MikTex\tex\latex\base\ts1cmr.fd)
(C:\Python26\Scripts\MikTex\tex\latex\psnfss\t1ptm.fd)
(C:\Python26\Scripts\MikTex\tex\context\base\supp-pdf.mkii
[Loading MPS to PDF converter (version
2006.09.02).] ) (C:\Python26\Scripts\MikTex\tex\latex\hyperref\nameref.sty
(C:\Python26\Scripts\MikTex\tex\latex\oberdiek\refcount.sty)
(C:\Python26\Scripts\MikTex\tex\generic\oberdiek\gettitlestring.sty))
(C:\Python26\Scripts\_build\latex\TiberCAD.out)
(C:\Python26\Scripts\_build\latex\TiberCAD.out)
Underfull \hbox (badness 10000) in
paragraph at lines 108--108
(C:\Python26\Scripts\MikTex\tex\latex\psnfss\t1phv.fd)
[1{C:/ProgramData/MiKTeX
/2.9/pdftex/config/pdftex.map}] [2]
(C:\Python26\Scripts\_build\latex\TiberCAD.toc)
Adding blank page after the table of
contents. pdfTeX warning (ext4):
destination with the same identifier
(name{page.i}) has been already used,
duplicate ignored <to be read again>
\relax l.108 \tableofcontents [1]pdfTeX warning
(ext4): destination with the same iden
tifier (name{page.ii}) has been
already used, duplicate ignored <to be
read again>
! Undefined control sequence. l.1
\chapter{Drift-diffusion simulation of
electrons and holes}
! LaTeX Error: Missing
\begin{document}.
Overfull \hbox (7.80904pt too wide) in
paragraph at lines 12--15
$\OML/cmm/m/it/10 P$
Overfull \hbox (20.0pt too wide) in
paragraph at lines 19--20 []
! LaTeX Error: \caption outside float.
l.63 \caption {Solution/Plot
variables}
! LaTeX Error: \begin{document} ended
by \end{table}.
l.65 \end{table}
! LaTeX Error: Something's
wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX
Companion for explanation. Type H
<return> for immediate help. ...
l.295 \end{tabulary}
! Missing } inserted. <inserted text>
} l.671 \end{tabulary}
答案1
删除辅助文件(.aux
、.toc
、...)并再次运行。如果没有帮助,那么问题似乎出在前言中。然后尝试
\documentclass{...}
... your preamble
\begin{document}
foo
\end{document}
会发生什么?