Reputation:
I have a block image inserted as shown below:
[[myimage]]
image::fig1.png[align="center", title="My caption"]
Unfortunately, the image is centered but the caption is left-aligned. I also tried doing this:
[[myimage]]
.My caption
image::fig1.png[align="center"]
but the result does not change. How can I get the image caption to also be center-aligned?
I am generating HTML output with this command (using xhtml11 as backend makes no difference):
asciidoc -v -a asciimath -d article -b html5 -o file.html file.txt
Upvotes: 5
Views: 3847
Reputation: 21
themes
in your working directory then download this file into themescaption:
align: center
asciidoctor-pdf ${adoc_file} -o ${output_pdf} -a pdf-stylesdir=themes -a pdf-style=custom-theme.yml
Upvotes: 0