氧气生成的乳胶与pdflatex失败

时间:2015-10-25 21:43:57

标签: doxygen pdflatex

我用doxygen生成了乳胶,然后运行make pdf命令。

这是我第一次尝试。

[mysite.lan] (liberz) latex> make pdf
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
pdflatex refman
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 restricted \write18 enabled.

kpathsea: Running mktexfmt pdflatex.fmt
/usr/bin/mktexfmt: line 395: /usr/share/texlive/texmf/texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `pdflatex.fmt'!
make: *** [refman.pdf] Error 1

我查看了mkexfmt命令,并尝试将tcfmgr作为命令调用。

/usr/share/texlive/texmf/texconfig文件夹存在,但其中没有tcfmgr命令。

之前我发现找不到pdflatex命令,因此最近安装了该命令。

[编辑以回答版本信息问题]我确信我需要安装更多工具,但不清楚我需要安装哪些软件包。我使用的是CentOS 7.1。

> pdflatex -version
pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013)
kpathsea version 6.1.1
Copyright 2013 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.5.13; using libpng 1.5.13
Compiled with zlib 1.2.7; using zlib 1.2.7
Compiled with poppler version 0.22.5

1 个答案:

答案 0 :(得分:0)

Doxygen PDF输出取决于pdflatex命令,CentOS 7中的命令由texlive-latex-bin-bin包提供,但runnig make pdf调用另一个命令tcfmgr,该命令是因此,请texlive-texconfig运行以下命令来安装这些依赖项:

yum install -y texlive-latex-bin-bin texlive-texconfig

您可以查看哪些包提供了任何必要的文件:

$ yum --quiet provides "*bin/pdflatex"

...
2:texlive-latex-bin-bin-svn14050.0-38.20130427_r30134.el7.noarch :
Binaries for latex-bin
Repo        : base
Matched from:
Filename    : /usr/bin/pdflatex

$ yum --quiet provides /usr/share/texlive/texmf/texconfig/tcfmgr

...
2:texlive-texconfig-svn29349.0-38.el7.noarch : texconfig package
Repo        : base
Matched from:
Filename    : /usr/share/texlive/texmf/texconfig/tcfmgr

但即使满足这两个基本要求,我发现还有其他许多消息,并且减少警告的整个列表是:

xargs <<_EOF_ yum -y install
texlive-latex-bin-bin
texlive-texconfig
texlive-metafont-bin
texlive-iftex
texlive-cm
texlive-xtab
texlive-multirow
texlive-ec
texlive-sectsty
texlive-fancyhdr
texlive-natbib
texlive-tocloft
texlive-tex4ht
texlive-helvetic
texlive-pslatex
texlive-courier
texlive-times
texlive-metapost
texlive-symbol
texlive-rsfs
texlive-dvips
texlive-base
texlive-makeindex-bin
_EOF_

...
Transaction Summary
==============================================================================================================================
Install  23 Packages (+132 Dependent packages)

Total download size: 43 M
Installed size: 134 M
...

然而,Tex2PDF转换产生了许多警告,但结果文档非常令人满意。

[11月8日编辑] 如果您想要“推荐”软件包安装,您可以选择其中一个需要其他软件包的“virtual”软件包,以构成更多“完成“乳胶环境,为了更高的综合性:

  • texlive-collection-latex:LaTeX基本软件包
  • texlive-collection-latexrecommended:LaTeX推荐的套餐
  • texlive