On 26 July 2012 05:37, Tomek Kaczanowski <[email protected]> wrote:
> Hi All,
>
> such snippet of asciidoc code:
>
> [caption="image caption"]
> image::img/image.png[align="center", title="image title"]
>
> when converted to html using
> asciidoc -a data-uri -o file.html file.txt
>
> <div class="imageblock" style="text-align:center;">
> <div class="content">
> <img alt="img/image.png" src="data:image/png;base64,
> BASE64_CONTENT_HERE" />
> </div>
> <div class="title">image captionimage title</div>
> </div>
>
> What is surprising me is the fact that both title and caption gets
> into the same div.
>
> Would it be possible to have something like
> <div class="title">image title</div>
> <div class="caption">image caption</div>
> instead?

Sorry, probably no again.

The caption is intended as the prefix for figure autonumbers, so it
might be "Figure" or "Plate" in English or something else in another
language.  The output is:

caption nnn. title

all in one line and style.

Changing this would break existing documents.

Of course if you really need to format the caption differently you can
create your own custom xhtml11.conf and copy the [image-blockmacro]
section from the system xhtml11.conf and edit as you please.

Cheers
Lex

@Stuart,

The {figure-caption} attribute used in the image-blockmacro template
doesn't seem to be documented anywhere?

Cheers
Lex

>
> --
> Regards,
> Tomek Kaczanowski
>
> --
> 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.
>

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