Alignment of page numbers in TOC on the right side. How?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
DAN SEA
Posts: 59
Joined: Tue Sep 13, 2022 4:13 pm

Alignment of page numbers in TOC on the right side. How?

Post by DAN SEA »

Good day everyone!
There was such a question: the standard way to generate a table of contents (at the same time with the document) - generates page numbers that are not aligned on the right side (it would be much more accurate) - I tried to show this in the attached picture.

Is there any way to improve this point?

Thank you in advance!
2.jpg
You do not have the required permissions to view the files attached to this post.
chrispitude
Posts: 922
Joined: Thu May 02, 2019 2:32 pm

Re: Alignment of page numbers in TOC on the right side. How?

Post by chrispitude »

Hi Dan,

When I generate a generic pdf-css-html5 PDF with no custom CSS, all the page numbers are properly right-aligned.

If you temporarily remove your CSS, does it publish correctly?
DAN SEA
Posts: 59
Joined: Tue Sep 13, 2022 4:13 pm

Re: Alignment of page numbers in TOC on the right side. How?

Post by DAN SEA »

Hello, Chrispitude!
Yes, just checked - it's only with my Custom CSS! Without him, everything is fine. But I need it to be good with him ... :-)

A small observation where such unaliging occurs: my TOC contains paragraphs with different font sizes and styles. For example:

1.Example (size 14, normal)
1.1. Example (size 10, italic )
1.1.1. Example (size 8, normal )

And all the page numbers of these items are displayed not aligned with each other.
chrispitude
Posts: 922
Joined: Thu May 02, 2019 2:32 pm

Re: Alignment of page numbers in TOC on the right side. How?

Post by chrispitude »

Hi Dan,

I created a testcase with the TOC styles you described, but I can't reproduce the misalignment:

chemistry_deep_toc.zip

Can you share a simple testcase that reproduces the issue, or perhaps modify the testcase above to reproduce it?

- Chris
You do not have the required permissions to view the files attached to this post.
Post Reply