On 3 May 2012 23:02, Gour <[email protected]> wrote: > Hello! > > ?ve started workeing on several HTML docs which I want to convert into > AsciiDoc and make a book out of it (nice pdf output). > > What is the correct procedure to get text floating (left or right) > around image which could possibly work for *both* HTML & PDF output? > > If that's not possible, then we'll be happy to get it right in PDF > generated by dblatex back-end? > > Reading the docs (21.1.4) Images section is a bit confusing since once > it stated: > > image:<target>[<attributes>] > > and a little bit below: > > image::images/tiger.png["Tiger image",align="left"] > > so it looks that the latter is for block and not inline macro? >
Hi Gour, Yes there is both block and inline image macros. I guess it isn't clear that the image attributes section is talking about both and is referred to from the block image macro section (except where it says "block image macro"). Docbook image alignment is kinda complicated see: http://docbook.org/tdg/en/html/imagedata.html and Asciidoc only provides that part that overlaps HTML plus a small part of the full capabilities. Unfortunately neither of the free docbook toolchains will wrap text as far as I know (ie float the image). FOP explicitly does not support float but align left works. Dblatex is silent on float (that I could find) but it doesn't work and neither does align left. Cheers Lex > > I use: > > image::images/file.png[align="left",scale=200%] > > but the image is centered and we do not ± > > If we use image:images alternative, still - no floating and no proper > alignment? > > We use asciidoc 8.6.7. > > Any hint? > > > Sincerely, > Gour > > -- > Never was there a time when I did not exist, > nor you, nor all these kings; nor in the future > shall any of us cease to be. > > http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 -- 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.
