如何利用doxygen產生pdf文檔

來源:互聯網
上載者:User

 

自己工作中寫的一個文檔。希望能對有需要的人有所協助。
                           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

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.