DoxyGen文档之八

第五章:添加公式

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

  • 0
    点赞
  • 0
    收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页
评论

打赏作者

SigmaSys

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值