问题描述
我在Ubuntu 13.04上使用DockBook 4.5和Apache FOP 1.1。 Docbook翻译由Ubuntu提供,FOP直接从Apache下载。
I'm working with DockBook 4.5 and Apache FOP 1.1 on Ubuntu 13.04. The Docbook translation are provided by Ubuntu and FOP was downloaded directly from Apache.
有人请告诉我如何在段落右侧插入图像,其中段落还有文字吗?如果缩放有效,则奖励积分(想想:缩略图)。例如:
Would someone please tell me how to insert an image on the right of a paragraph, where the paragraph has text, too? Bonus points if scaling works (think: thumbnail). For example:
xxx xxx xxx xxx +---------------+
xxxxxx xx xxx | |
xxxx xxxxx xxxxx | Image |
xxx xxxx xxx | |
xxx xxx xxxx xxx +---------------+
xxxxx xx xxx xxxx xxxxxx xx xx xxx
xx xxxxx xxx xxxxxxx xxx xxxx xx
...
根据和,我应该可以在数字上使用
。但它不适合我。 floatstyle
According to Wrap Text Around Image and Figure, I should be able to use floatstyle
on a figure
. But its not working for me.
我显然做错了,比如用错误的手指按 ENTER
。在过去的三四个小时内,我不会使用网络上的建议让读者感到失败。但它们包括数字
, informalfigure
, mediaobject
, inlinemediaobject
, imageobject
, scale
, floatstyle
,以及无数组合中的无数其他标签。
I'm obviously doing something wrong, like pressing ENTER
with the wrong finger. I won't bore readers with all the failed attempts using suggestions from the web over the past three or four hours. But they include figure
, informalfigure
, mediaobject
, inlinemediaobject
, imageobject
, scale
, floatstyle
, and countless other tags in untold combinations.
推荐答案
你需要使用格式化程序tnat支持fo:float。
you need to use a formatter tnat supports fo:float.
例如,它会是这样的:
<fo:float float="right">
<fo:block text-align="center"
border="1pt solid gray"
font="bold italic 9pt Helvetica">
<fo:block>
<fo:external-graphic src="url('smile.gif')"/>
</fo:block>
<fo:block>
Fig. 1: A Smiling Face
</fo:block>
</fo:block>
</fo:float>
这篇关于块图像右侧和流动文本围绕它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!