软件工程

本类阅读TOP10

·PHP4 + MYSQL + APACHE 在 WIN 系统下的安装、配置
·Linux 入门常用命令(1)
·Linux 入门常用命令(2)
·使用 DCPROMO/FORCEREMOVAL 命令强制将 Active Directory 域控制器降级
·DirectShow学习(八): CBaseRender类及相应Pin类的源代码分析
·基于ICE方式SIP信令穿透Symmetric NAT技术研究
·Windows 2003网络负载均衡的实现
·一网打尽Win十四种系统故障解决方法
·数百种 Windows 软件的免费替代品列表
·收藏---行百里半九十

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
DoxyGen文档之八

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

第五章:添加公式

Doxygen allows you to put formulas in the output (this works only for the HTML and output, not for the RTF nor for the man page output). To be able to include formulas (as images) in the HTML documentation, you will also need to have the following tools installed

·latex: the compiler, needed to parse the formulas. To test I have used the teTeX 0.9 distribution.

·dvips: a tool to convert DVI files to PostScript files I have used version 5.86 from Radical Eye software for testing.

·gs: the GhostScript interpreter for converting PostScript files to bitmaps. I have used Aladdin GhostScript 5.10 for testing.

有两种方式在文档中添加公式

1. Using in-text formulas that appear in the running text. These formulas should be put between a pair of \f$ commands, so

2.    The distance between \f$(x_1,y_1)\f$ and \f$(x_2,y_2)\f$ is 
3.    \f$\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\f$.

生成:

The distance between and is .

4. Unnumbered displayed formulas that are centered on a separate line. These formulas should be put between \f[ and \f] commands. An example:

5.    \f[
6.      |I_2|=\left| \int_{0}^T \psi(t) 
7.               \left\{ 
8.                  u(a,t)-
9.                  \int_{\gamma(t)}^a 
10.                                             \frac{d\theta}{k(\theta,t)}
11.                                             \int_{a}^\theta c(\xi)u_t(\xi,t)\,d\xi
12.                                          \right\} dt
13.                                       \right|
14.                               \f]

生成:

公式应该在 的“math-mode数学模式” 中是有效的

警告:

Currently, doxygen is not very fault tolerant in recovering from typos in formulas. It may have to be necessary to remove the file formula.repository that is written in the html directory to a rid of an incorrect formula




相关文章

相关软件