4

我正在使用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。

谢谢你,魔方

4

4 回答 4

6

texlive-full将安装所有的 texlive 包,这确实有点矫枉过正。

您可以安装只是texlive-latex-extra为了解决这个特定问题。

于 2011-05-02T08:41:33.420 回答
1

我遇到了同样的问题,并在 ubuntu 上安装了包 'texlive-full'。这有点矫枉过正,但它解决了问题......

麦克风

于 2010-12-29T08:40:15.593 回答
1

我在使用 MikTeX 时遇到了同样的问题,发现我需要安装 ucs 包才能获得 utf8x.def。只是分享。

于 2013-01-15T09:29:30.697 回答
0

我遇到了同样的问题,但在 Windows 7、64 位和MiKTeX上 ,这些解决方案不相关。MiKTeX 设置为根据需要下载包,我注意到标准错误包含“未知存档文件大小”。后面跟着单词:“unicode”,所以我进入 MiKTeX 包管理器并安装了所有带有单词 unicode 的东西。但是包管理器因类似的未知存档文件大小错误而失败。然后我切换到另一个存储库镜像并安装了所有 unicode 包。然后......一切正常!

于 2012-10-16T23:03:45.890 回答