On Wed, 4 Jul 2012, Lex Trotman wrote:

On 4 July 2012 16:14, Jeroen Baten <[email protected]> wrote:

You are right, I forgot to mention the output format. I want to output to
pdf using a 'book' and fop.
Is there a way to get text next to an image?

Bearing in mind I'm not a FOP expert, you may be better asking them.
But FOP doesn't support flow control according to its compliance
matrix, so I would think the table is the only option

While the ODF backend is not production quality, the backend and stylesheet support something like this:

.Dag gesticulating
[width="50mm",height="50mm",align="right"]
image::dag-professional-250.jpg[Photo]

.Insckape logo
[width="50mm",height="50mm",align="left"]
image::inkscape.svg[Inkscape logo]

This will use the image-right and image-left styles which are by default configured to have text flowing resp. left and right of the image.

Unfortunately the dimensions of the image need to be provided in mm or cm for both height and width because LibreOffice does not do auto-scaling correctly (yet). There is a bug ticket opened.

Also while there is a page-break construct foreseen in AsciiDoc (which the ODF backend implements as well) there is no paragraph break (or something cfr. <break align="right">) in AsciiDoc afaik.

I am happy to receive more feedback about this.
--
-- dag wieers, [email protected], http://dag.wieers.com/
-- dagit linux solutions, [email protected], http://dagit.net/

[Any errors in spelling, tact or fact are transmission errors]

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to