阻止图像权利并在其周围流动文本? [英] Block Image Right and Flow Text Around It?

查看:42
本文介绍了阻止图像权利并在其周围流动文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 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
...

根据在图像周围环绕文本,我应该可以使用floatstylefigure 上.但它对我不起作用.

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.在过去的三四个小时内,我不会使用来自网络的建议来让读者厌烦所有失败的尝试.但它们包括figureinformalfiguremediaobjectinlinemediaobjectimageobjectscalefloatstyle 以及无数其他无数组合的标签.

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.

http://xmlgraphics.apache.org/fop/compliance.html

例如,它会是这样的:

<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>

这篇关于阻止图像权利并在其周围流动文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆