在通过mathjax之后立即将任何乳胶方程式添加到doxygen中时(添加了额外的不需要的空间。
例如(\f$m\f$)
在生成的html代码中生成(m)。
在doxygen生成的html文件中出现'('后面出现的空间图像
除了让mathjax生成()之外,有没有人知道修复它的方法?
代码:
/** @brief Calculates Earth Similarity Index (\f$ESI\f$) of a planet.
*
* The earth similarity index is a number that denotes how similar a planet is to that of earth. 1 is being exactly earth like.
*
* @param planetMeanRadius \f$r\f$(\f$m\f$) is the mean radius of a planet.
* @param planetBulkDensity \f$\rho\f$(\f$\frac{kg}{m^3}\f$) is the bulk density of the planet.
* @param planetEscapeVelocity \f$v_e\f$(\f$\frac{m}{s}\f$) is the escape velocity. The velocity needed to escape the planet's gravitational pull.
* @param planetSurfaceTemperature \f$T\f$(\f$K\f$) is the average surface temperature of the planet.
* @return \f$ESI\f$(dimensionless) Earth Similarity Index for a planet.
* @see PlanetSimilarityIndex() for \f$ESI\f$ equation using any planet as reference.
* @see EarthSimilarityIndexInterior() for \f$ESI_I\f$ equation.
* @see EarthSimilarityIndexSurface() for \f$ESI_S\f$ equation.
*/
template<typename T>
T EarthSimilarityIndex( const T& planetMeanRadius, const T& planetBulkDensity, const T& planetEscapeVelocity, const T& planetSurfaceTemperature );
Ran on Doxygen 1.8.13