【问题标题】:Doxygen & Latex error while creating pdf file创建 pdf 文件时出现 Doxygen & Latex 错误
【发布时间】:2015-10-12 18:03:27
【问题描述】:

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

现在,我继续在 cmd 中执行“make”命令。但是我遇到了一些错误,并且没有生成 .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>

【问题讨论】:

  • 我试图将日志翻译成英文。可能少了一些字。
  • "pdflatex" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable 是否意味着您没有安装“pdflatex”?
  • 我查过,是的。我认为 Doxygen 安装程序会安装它需要的所有东西(包括这个)

标签: c++ pdf latex doxygen-wizard


【解决方案1】:

您需要安装一个 Latex 发行版来生成 PDF 文件。我使用 MikTex。您应该已经安装了以下工具:

  • Latex 发行版(例如 MikTex)
  • 鬼脚本
  • TCL 解释器(例如 ActiveTcl)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-12
    • 2011-01-21
    • 1970-01-01
    • 2021-11-07
    相关资源
    最近更新 更多