gpt4 book ai didi

html - 使用 Doxygen 内联显示图像

转载 作者:行者123 更新时间:2023-12-05 04:01:21 36 4
gpt4 key购买 nike

我正在使用 Doxygen 从 Markdown 文件生成 html 用户手册。我想给出诸如“单击 [image.png] 按钮”之类的说明,让 png 图像出现在生成的 html 中的文本行中。

根据Doxygen的文档,可以按如下方式添加图片: \image['{'[option]'}'] <format> <file> ["caption"] [<sizeindication>=<size>]

文档还说“目前只支持内联选项。如果指定了内联选项,图像将放置在“行中”,当出现标题时,它会在 HTML 中显示为工具提示(忽略其他格式)。” 这听起来像我想做的。

我尝试了\image 命令的几种变体,但都没有成功。这些成功地生成了一个图像,但在它自己的行中:

!["caption"](image.png)
\image html image.png "caption"

这些命令失败了:

\image inline html image.png "caption"
\image{inline} html image.png "caption"

有谁知道是否可以实现我想要实现的目标?我只是把语法弄错了吗?

最佳答案

在 1.8.15 版本中引入了 {inline} 选项和 \image 命令版本:

\image{inline} html image.png "caption"

在 1.8.15 中有效。

OP 使用了旧版本并且会收到如下警告:

warning: image type inline specified as the first argument of inline is not valid warning: expected whitespace after { command

关于html - 使用 Doxygen 内联显示图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55522057/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com