2015-10-25 139 views
1

我已經生成了doxygen膠乳,然後我運行make pdf命令。Doxygen生成的乳膠與pdflatex失敗

這是我第一次嘗試它。

[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 
+0

您安裝了哪種膠乳分佈?也許你應該確保你已經安裝了所有必要的工具。這包括乳膠分發(如MikTex),TCL解釋器(如ActiveTCL)和Ghostscript。 – gmug

+0

在命令行中鍵入'doxygen -w latex headerFile footerFile styleSheetFile'來讓doxygen創建一個乳膠頭文件和樣式表文件。然後,您可以分析這些文件,找出由doxygen創建的膠乳代碼使用哪些膠乳包。 – gmug

+0

供將來參考:此錯誤'我無法找到格式文件pdflatex.fmt'意味着TeX發行版已損壞,並且最好重新安裝。它不應該發生(但顯然它可以)。 – ShreevatsaR

回答

0

Doxygen的PDF輸出取決於pdflatex命令,該命令在CentOS的7由texlive-latex-bin-bin包提供的,但運行過程中出現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 

但即使有這2個基本條件滿足,我發現很多其他的消息,隨後,整個列表減少的警告是:

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轉換產生許多警告,但所得到的文檔是相當satisfatory。

[編輯,11月8] 如果你想「推薦」包安裝,你可以選擇需要等多套包的這些「虛擬」包一個,組成一個更「完整」的一個乳膠環境,在更高的全面性的順序:

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

@MichaelPotter,請讓我知道我的問題是否對您的CentOS問題有任何幫助,或者有任何其他疑問。 –