1 回答

TA貢獻1842條經驗 獲得超21個贊
我嘗試使用 doxygen 1.8.18 以下代碼:
## \file
# Create homogeneous probability matrix from the colors matrix
def create_probability_map1(colors_map):
"""!\f$(x_1,y_1)\f$"""
pass
# Create homogeneous probability matrix from the colors matrix
def create_probability_map2(colors_map):
"""Formula is: !\f$(x_2,y_2)\f$"""
pass
# Create homogeneous probability matrix from the colors matrix
def create_probability_map3(colors_map):
"""!\f$(x_3,y_3)\f$ is the formula"""
pass
# Create homogeneous probability matrix from the colors matrix
def create_probability_map4(colors_map):
"""!Formula is: \f$(x_4,y_4)\f$ is the formula"""
pass
使用默認的 doxygen 配置設置,這將導致:
對我來說,這看起來一切正常,文檔字符串"""!
被視為 doxygen 注釋,而只是"""
被視為逐字/代碼(如問題中提到的鏈接中所示)。
添加回答
舉報