如何利用doxygen生成pdf文档

本文档介绍了如何利用Doxygen生成PDF格式的文档。首先,需要启用LaTeX输出,设置GENERATE_LATEX和LATEX_OUTPUT为Yes,并确保PDF_HYPERLINKS和USE_PDFLATEX设为yes。然后运行doxygen,生成的LaTeX文件将在“latex”目录下。接着,可以使用MikTex或CTex等工具将LaTeX转换为PDF。通过WinEdit或命令行工具如“pdflatex”和“makeindex”,可以完成PDF的生成和索引创建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

自己工作中写的一个文档。希望能对有需要的人有所帮助。

                           How to generate pdf file

                                 with  Doxygen                                                                                             

Table of contents

   

How to generate pdf file with doxygen. 1

Distribution. 2

History of change. 2

Introduction. 2

Generate Latex files. 2

Convert Latex to PDF. 2

 

Distribution

 

              Name

       Company

                 Reason

              David

       Kisters AG

                 Created

 

 

History of change

 

Version

Date

Changed by

Changed chapters

Reason of change

Version 1.0

2009.4.15

David

-

      Created.

 

 

 

 

 

 

 

 

 

 

 

Introduction

           As we know, Doxygen is a very convenient tool to generate documentation of widespread formats. Usually, the output format is HTML, and doxygen can generate HTML directly. However, It needs extra work to generate PDF documentation, because doxygen only generate Latex files which can be transformed to pdf.

Generate Latex files

           Suppose you are familiar with doxygen, otherwise, you need to learn to use doxygen before you read this document.

           To generate a pdf file, you should enable output format Latex, set the tag GENERATE_LATEX  and LATEX_OUTPUT to Yes. Also, to improve the quality of the pdf, the tag  PDF_HYPERLINKS and  USE_PDFLATEX need to be set to yes.

            After then, run doxygen, then latex files will be generated in the output directory under the directory “latex”.

Convert Latex to PDF

             Now you have latex files, you need to transform the latex files to pdf. There are several tools that you can use. One popular one is MikTex. It is free to use, you can find the software at http://miktex.org/.

             Currently I am using another tool called CTex which is a Chinese version of miktex. You can find the package at  www.ctex.org

             After CTex is installed, you can use WinEdit (which is a tool in the package)to open the file  refman.tex in the Latex directory. And press PDF Latex button, then a pdf file will be generated in the same directory of the file refman.tex.                      

     After the pdf file is generated, you need to press button MakeIndex to generage index for the pdf file.  Since WinEdit is not free, you only have 30 trial days. However, all this can be done without WinEdit. You can type command “Pdflatex” and “makeindex” in the command prompt.

 

for more information , please contanct bicheng.gui@gmail.com

 

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值