asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.89k stars 297 forks source link

Change page number to center of page #443

Closed hdquemada closed 4 years ago

hdquemada commented 4 years ago

I have been trying to change the docbook-xsl files to customize for my purposes, but one problem I have encountered is that I have been unable to figure out how change the position of the page number to the center of the page at the bottom when redering a pdf. I have been making changes to the fo-pdf.xsl file. Is there a solution for where I can change it? I am a new user of Asciidoc FX, and also new to xsl, but am trying to learn. This one has me stumped. Thanks!

hdquemada commented 4 years ago

I managed to figure it out: In the docbook-config/fo-pdf.xsl file, set

0 Then in the docbook/pagesetup.xsl, set