如何在Doxygen中添加脚注? [英] How do I add a footnote in doxygen?
问题描述
我想在Doxygen输出中插入一个数字(或其他,我不太挑剔)脚注。 特殊命令列表不包含任何我可以确定为启用了此功能。我希望有这样的东西:
I'd like to insert a numbered (or other, I'm not picky) footnote in my doxygen output. The list of special commands doesn't include anything that I could identify as enabling this. I was hoping for something like:
This is my text.\footnote{This is my footnote}
将产生
是我的文字。 1
然后
1:这是我的脚注
页面底部的
。有没有办法做到这一点或功能上等效的东西?
at the bottom of the page. Is there a way to accomplish this or something functionally equivalent?
推荐答案
您可以通过ALIASES选项定义自己的\footnote命令。在doxygen的配置文件中是这样的:
You can define your own \footnote command via the ALIASES option in doxygen's configuration file like this:
ALIASES = footnote{1}="\latexonly\footnote\{\1\}\endlatexonly\htmlonly<sup title=\"\1\">*</sup>\endhtmlonly"
这将在LaTeX输出中产生一个真实的脚注,并在HTML输出中产生一个带有工具提示的 * 。
This will produce a real footnote in the LaTeX output and a * with a tooltip in the HTML output.
这篇关于如何在Doxygen中添加脚注?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!