簡體   English   中英

Doxygen生成的latelate無法使用pdflatex

[英]Doxygen generated latex failing with 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

Doxygen PDF輸出取決於pdflatex命令,該命令在CentOS 7中由texlive-latex-bin-bin軟件包提供,但是runnig make pdf調用另一個由texlive-texconfig提供的命令tcfmgr ,因此,運行以下命令來安裝這些依賴項:

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日編輯]如果要“推薦”安裝軟件包,則可以按照更高的綜合性順序,從需要其他軟件包組的這些“虛擬”軟件包中選擇一個,以組成更“完整”的 Latex環境:

  • texlive-collection-latex :LaTeX基本軟件包
  • texlive-collection-latexrecommended :LaTeX推薦的軟件包
  • texlive

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM