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

Fri Mar 03, 2017 4:38 pm

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 ?

Many thanks for your help,
Christine
Radu
Posts: 5571

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

Mon Mar 06, 2017 5:22 pm

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,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Christine
Posts: 11

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

Mon Mar 06, 2017 7:24 pm

Hi Radu,

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?

Many thanks for your help,Rregards,
Christine

Image
Radu
Posts: 5571

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

Tue Mar 07, 2017 9:48 am

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,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Christine
Posts: 11

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

Tue Mar 07, 2017 12:34 pm

Hi Radu,

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
Radu
Posts: 5571

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

Tue Mar 07, 2017 1:36 pm

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,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Christine
Posts: 11

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

Tue Mar 07, 2017 6:26 pm

Hi Radu,

Thanks for great help : there was a "sans-serif" font type for the TOC in the pdf output custom configuration file. Using a monospaced font involves a better alignment for the figures.

Regards,
Christine

Return to “Common Problems”

Who is online

Users browsing this forum: kmank and 1 guest