Doxygen&创建pdf文件时出现Latex错误

时间:2015-10-12 18:03:27

标签: c++ pdf latex doxygen-wizard

我使用Doxygen GUI在Windows下创建我的文档。这是" D:\ Users \ Jorge \ Desktop \":

下的项目文件夹
Pract3Copia+
           |
           +--Documentation (Empty Directory)
           |
           +-- dfa.cpp
           |
           +-- dfa.hpp
           |
           +-- dfa.o
           |
           +-- dfaException.hpp
           |
           +-- dfaException.cpp
           |
           +-- dfaException.o
           |
           +-- state.cpp
           |
           +-- state.hpp
           |
           +-- state.o
           |
           +-- main.cpp
           |
           +-- main.o
           |
           +-- dfa.exe
           |
           +-- Makefile
           |
           +-- 1.dfa

Doxygen完成文档创建后,我明白了:

Documentation+ 
             |
             +-- Latex+ 
                      |
                      +-- annotated.tex
                      |
                      +-- classdfa.tex
                      |
                      +-- classdfa_exceptions.eps
                      |
                      +-- classdfa_exception.tex
                      |
                      +-- classstate.tex
                      |
                      +-- doxygen.sty
                      |
                      +-- hierarchy.tex
                      |
                      +-- make.bat
                      |
                      +-- Makefile
                      |
                      +-- refman.tex
                      |
                      +-- structconnection.tex

现在,我继续执行" make" cmd中的命令。但是我收到了一些错误,并且没有生成.pdf文件。我不知道这是如何工作的,所以我不确定应该如何解决它。我也没有在互联网上找到错误。感谢。

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>make

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>set Dir_Old=D:\Users\Jor
ge\Desktop\Pract3-copia\Documentation\latex

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>cd /D D:\Users\Jorge\Des
ktop\Pract3-copia\Documentation\latex\

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>del /s /f *.ps *.dvi *.a
ux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
Cant find D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex\*.p
s

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>pdflatex refman
"pdflatex" is not recognized as an internal or external command, operable program or batch file.

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>echo ----
----

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>makeindex refman.idx
"makeindex" is not recognized as an internal or external command, operable program or batch file.

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>echo ----
----

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>pdflatex refman
"pdflatex" is not recognized as an internal or external command, operable program or batch file.

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>setlocal enabledelayedex
pansion

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>set count=8

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>set content=X

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>for /F "tokens=*" %T in
('findstr /C:"Rerun LaTeX" refman.log') do set content="%~T"
FINDSTR: Cant open refman.log

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>if !content! == X for /F
 "tokens=*" %T in ('findstr /C:"Rerun to get cross-references right" refman.log'
) do set content="%~T"
FINDSTR: Cant open refman.log

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>if !content! == X goto :
skip

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>endlocal

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>makeindex refman.idx
"makeindex" is not recognized as an internal or external command, operable program or batch file.

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>pdflatex refman
"pdflatex" is not recognized as an internal or external command, operable program or batch file.

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>cd /D D:\Users\Jorge\Des
ktop\Pract3-copia\Documentation\latex

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>set Dir_Old=

D:\Users\Jorge\Desktop\Pract3-copia\Documentation\latex>

1 个答案:

答案 0 :(得分:1)

您需要安装乳胶分布以生成PDF文件。我用的是MikTex。您应该已经安装了以下工具:

  • 乳胶分布(例如MikTex)
  • Ghostscript的
  • TCL口译员(例如ActiveTcl)