in asciidoctor I have a table with the content centered.
|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
flag and all the Tables entries contain a
Afaik fopub uses apache fop under the hood. So I found this link Does 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?
Also:: after generating the FO (not using fopub but using the standard stylesheets as regards tables), I ran that thru Antenna House XSL Formatter 6.6 (Lite version), and the contents of the formatted table's cells were horizontally centered.
Excuse me, I fear I may have misunderstood your problem. Are you talking about the alignment of cell-contents (as I gathered, based on on your description and your AsciiDoc), or about the alignment of the table as a whole?
I responded based on my reading of your problem, and (therefore) without even testing in on fopub itself. But now that I do that test, I can't even see a problem: The table takes up the width of the page, and contents of all of the cells are centered.
So please, could you go into a little more detail on the exact problem? Thanks!