Image Docbook-一个图中有多个图像
Docbook中是否有类似于乳胶的Subfig的东西 我想在一个图形中并排放置两个图像-在Docbook中是如何实现的?您可以在一个图形中放置两个(或更多)图像Image Docbook-一个图中有多个图像,image,docbook,figures,subfigure,Image,Docbook,Figures,Subfigure,Docbook中是否有类似于乳胶的Subfig的东西 我想在一个图形中并排放置两个图像-在Docbook中是如何实现的?您可以在一个图形中放置两个(或更多)图像 <figure><title>The Pythagorean Theorem Illustrated</title> <mediaobject> <imageobject> <imagedata fileref="figures/pythag.png"/>
<figure><title>The Pythagorean Theorem Illustrated</title>
<mediaobject>
<imageobject>
<imagedata fileref="figures/pythag.png"/>
</imageobject>
<textobject><phrase>An illustration of the Pythagorean Theorem</phrase></textobject>
</mediaobject>
<mediaobject>
<imageobject>
<imagedata fileref="figures/pythag2.png"/>
</imageobject>
<textobject><phrase>the second</phrase></textobject>
</mediaobject>
</figure>
毕达哥拉斯定理说明
毕达哥拉斯定理的一个例证
第二
但根据DocBook标准,这些元素之间的相互关系并没有具体说明。换句话说,你必须自己发展你的表现力
如果您使用XSLT将DocBook转换为HTML(就像我一样),您可以为图块中的图像添加一个CSS规则以使其浮动。您可以通过使用两个大小适当的内联媒体对象来绕过您的限制
<inlinemediaobject>
<imageobject><imagedata fileref='image1' /></imageobject>
</inlinemediaobject>
<inlinemediaobject>
<imageobject><imagedata fileref='image2' /></imageobject>
</inlinemediaobject>
虽然最终结果取决于您的发布者,但这在许多样式表中都能发挥一定的作用。我从来没有想过这是一个非常“好”的xml,不过…我就是这样做的(经过多次尝试…)-我正在使用它生成pdf(使用publican生成pdf)。我需要检查是否可以使用html
<figure id="fig09">
<title>.....</title>
<inlinemediaobject>
<imageobject>
<imagedata align="left" fileref="images/waveformSingle.png" scale="30"/>
</imageobject>
</inlinemediaobject>
<inlinemediaobject>
<imageobject>
<imagedata align="right" fileref="images/waveformAll.png" scale="30"/>
</imageobject>
<textobject>
<phrase>.....</phrase>
</textobject>
</inlinemediaobject>
</figure>
.....
.....
正在使用(可从)从LaTeX中引入子图形功能。akond的示例如下所示(当工具更新时,工作如预期):
勾股定理
毕达哥拉斯定理的一个例证
毕达哥拉斯定理的第二个例证
我无法修改使用的XSLT(转换由发布者完成)。还有别的办法吗?脑海中浮现出表格……然后你必须向出版商提出这个问题。另外一个解决方案是通过合并从两个图像中创建一个图像。请尝试我的答案和这里提供的示例:[[1]:
<formalgroup>
<title>The Pythagorean Theorem Illustrated</title>
<figure>
<title>An illustration of the Pythagorean Theorem</title>
<mediaobject>
<imageobject>
<imagedata fileref="figures/pythag.png"/>
</imageobject>
</mediaobject>
</figure>
<figure>
<title>The second illustration of the Pythagorean Theorem</title>
<mediaobject>
<imageobject>
<imagedata fileref="figures/pythag2.png"/>
</imageobject>
</mediaobject>
</figure>
</formalgroup>