## Trying to get TOC numbers aligned in the PDF output

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Christine
Posts: 11

### Trying to get TOC numbers aligned in the PDF output

Hello,

I would like to have the page numbers aligned on the PDF output and I tried many things in my XSL custom configuration file, but all failed.
Is there a specific parameter in "OXYGEN_INSTALL_DIR\frameworks\docbook\xsl\fo\toc.xsl" to mention to have numbers aligned in TOC ?

Christine
Posts: 5221

### Re: Trying to get TOC numbers aligned in the PDF output

Hi Christine,

Maybe you could link to an image showing how the TOC looks like on your side and describe how it would need to look like.
We are not very familiar with Docbook customizations but maybe we can give you a hint...

Regards,
<oXygen/> XML Editor
http://www.oxygenxml.com
Christine
Posts: 11

### Re: Trying to get TOC numbers aligned in the PDF output

You will find below an example of the type of alignment I can get at the level of the numbers on the TOC on my PDF output.
Is it possible to have these numbers (o 2 and 3 digits) vertically aligned?

Christine

Posts: 5221

### Re: Trying to get TOC numbers aligned in the PDF output

Hi Christine,

I do not understand. You are showing me a Word document and you are discussing about the PDF TOC.
For example in my tests with the default PDF output the PDF TOC looks like this:

https://www.oxygenxml.com/forum/files/toc.png

To me the numbers seem aligned on the right hand side.

Regards,
<oXygen/> XML Editor
http://www.oxygenxml.com
Christine
Posts: 11

### Re: Trying to get TOC numbers aligned in the PDF output

Yes I am sorry for that but I was not able to upload the proper image using BBCode tags as my images are not on the internet and I do not run a webserver.
So this is the most representative image I found on the internet to show the problem I encounter for each PDF output.
The numbers on the TOC seem to be "floating" and they are not aligned on the right as they are on your image.

Regards,
Christine
Posts: 5221

### Re: Trying to get TOC numbers aligned in the PDF output

Hi Christine,

I obtained my PDF just by applying the default Docbook to PDF output without any customization.
It might be possible that your problems are derived from using a certain font for the TOC. Possibly when the used font is not monospaced, each figure has a different width and they may not look nice when placed one under the other.

Regards,
<oXygen/> XML Editor
http://www.oxygenxml.com
Christine
Posts: 11