On Dec 23 2010, 11:28 pm, Lex Trotman <[email protected]> wrote: > IIUC unbreakable just makes the image unbreakable, it doesn't join the > image to anything else. > > You would have to group the image and what you wanted on the same page > in a block and then use passthrough to apply a dbfo keep-together > instruction, but I've never tried it. > > Cheers > Lex >
Has anyone tried this successfully? I do not seem to be having any luck. I used this post as a reference but the author unfortunately does not provide an example with their solution: https://groups.google.com/group/asciidoc/browse_thread/thread/1f34d88f7719fe36 I tried using the dbfo keep-together instruction in a passthrough but I have not found a way to make it work. Any ideas on what I'm doing wrong (or if this will work at all)? If I do this it breaks the list: ========================= +++<?dbfo keep-together="always"?>+++ . My list item + image::image.png[] ========================= This will not break the list, but the dbfo is inserted into the simpara element which contains only the list item text and not the image that follows: ========================= . +++<?dbfo keep-together="always"?>+++My list item + image::image.png[] ========================= If I try to insert the entire list item as a passthrough, then a2x fails when calling xmllint because it appears that while converting the passthrough it attempts to put the entire passthrough block inside of a <simpara> block: ========================= . previous list item +++ <listitem> <?dbfo keep-together="always"?> <simpara> My list item text </simpara> <informalfigure> <mediaobject> <imageobject> <imagedata fileref="myimage.png"/> </imageobject> <textobject><phrase>myimage.png</phrase></textobject> </mediaobject> </informalfigure> </listitem> +++ . Next list item. <listitem><?dbfo keep-together="always"?><simpara>Lorem ipsum</ simpara></listitem> =============================== Thanks, -Tim -- 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.
