fopub - Horizontal align table content
Posted by
canyon on
Sep 24, 2019; 8:52am
URL: https://discuss.asciidoctor.org/fopub-Horizontal-align-table-content-tp7161.html
Hello,
in asciidoctor I have a table with the content centered.
[cols="3*^",options="header", options="footer"]
|===
|Name of Column 1
|Name of Column 2
|Name of Column 3
|Cell in column 1, row 1
|Cell in column 2, row 1
|Cell in column 3, row 1
|Cell in column 1, row 2
|Cell in column 2, row 2
|Cell in column 3, row 2
|Footer in column 1
|Footer in column 2
|Footer in column 3
|===
The html output with asciidoctor works fine.
When converting to pdf via fopub though, I don't get the expected result, but instead all content in the table is left aligned.
I've taken a look into the .xml generated with the
-b docbook
flag and all the Tables entries contain a
align="center"
attribute.
Afaik fopub uses apache fop under the hood. So I found this
linkDoes this ultimately mean there's no way to get an in .adoc centered table centered in the pdf output, without manually padding the columns with empty cells in the .fo file?
Thanks in advance!