我正在使用Sphinx创建项目的文档。我想使用扩展名sphinx.ext.pngmath并进行以下测试:

    Returns the indefinite integral of the polynomial *poly*:
    .. math::
        \int p(x)dx


我得到了错误:

WARNING: inline latex u'\\int p(x)dx\n\n': latex exited with error:
[stderr]

[stdout]
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
 restricted \write18 enabled.
entering extended mode
(./math.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
(/usr/share/texmf-texlive/tex/latex/base/inputenc.sty

! LaTeX Error: File `utf8x.def' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: def)

Enter file name:
! Emergency stop.
<read *>

l.131 \endinput
               ^^M
No pages of output.
Transcript written on math.log.


我已经安装了texlive-latex-base软件包。

谢谢,
魔方

最佳答案

texlive-full将安装所有texlive软件包,这确实有些大材小用。

您可以仅安装texlive-latex-extra来解决此特定问题。

10-07 12:17
查看更多