Page 1 of 1
TOC - page numbers not on left of page
Posted: Wed Dec 17, 2014 5:56 pm
by Boreas
Hello,
my page numbers in my toc are displayed next to the text of my toc content (all levels). I was able to change the font, the leader, the color etc. but the alignment remains a mystery.
Regards
Carole
Re: TOC - page numbers not on left of page
Posted: Thu Dec 18, 2014 10:54 am
by Radu
Hi Carole,
When generating PDF using Oxygen with the bundled DITA Open Toolkit without any customizations the table of contents should properly produce the table of contents with the numbers right aligned.
The XSLT code which build the XSL-FO for the TOC is located here:
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\toc.xsl
It uses XSL-FO constructs like:
Code: Select all
<fo:leader xsl:use-attribute-sets="__toc__leader"/>
to add a leader between the title and the page number. The
__toc__leader attribute set is defined in:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/cfg/fo/attrs/toc-attr.xsl
I do not know what exactly you added in your XSLT customizations, did you overwrite these templates in the toc.xsl?
Regards,
Radu
Re: TOC - page numbers not on left of page
Posted: Thu Dec 18, 2014 9:50 pm
by Boreas
Hello,
I was unable to see any differences between my files and the Oxygen's file. (of course besides color, weigth etc.) but it does not mean ther was none..... :)In the process, I managed to break my scenario. I had to start the TOC formatting from scratch (using the out of the box xsl.) and everything was solved.
At least now, it works.
Thanks for your quick response.