如何利用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的生成和索引创建。
部署运行你感兴趣的模型镜像

 

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

                           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

 

 

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

Doxygen 中文使用文档 及 适合Doxygen的注释宏 使注释更简单 统一 注释宏 已经过修改 使用简单方便 Doxygen 是一个程序的文件产生工具,可将程序中的特定批注转换成为说明文件。通常我们在写程序时,或多或少都会写上批注,但是对于其它人而言,要直接探索程序里的批注,与打捞铁达尼号同样的辛苦。大部分有用的批注都是属于针对函式,类别等等的说明。所以,如果能依据程序本身的结构,将批注经过处理重新整理成为一个纯粹的参考手册,对于后面利用您的程序代码的人而言将会减少许多的负担。不过,反过来说,整理文件的工作对于您来说,就是沉重的负担。   对于未归档的源文件,也可以通过配置Doxygen来提取代码结构。或者借助自动生成的包含依赖图(includedependency graphs)、继承图(inheritance diagram)以及协作图(collaborationdiagram)来可视化文档之间的关系。Doxygen生成的帮助文档的格式可以是CHM、RTF、PostScript、PDF、HTML和Unixman page等。   一个好的程序设计师,在写程序时,都会在适当的地方加上合适的批注。如果,能够在撰写批注时,稍微符合某种格式,接着就可以透过一个工具程序依据程序结构及您的批注产生出漂亮的文件。这将令许多工作繁重的程序设计师有时间多喝几杯咖啡。   Doxygen 就是这样的一个工具。在您写批注时,稍微按照一些它所制订的规则。接着,他就可以帮您产生出漂亮的文件了。因此,Doxygen 的使用可分为两大部分。首先是特定格式的批注撰写,第二便是利用Doxygen的工具来产生文件。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值