Hello,
How can page numbers in the TOC be correctly right aligned?
Example (displayed in fixed font, to get the idea):
1 Chapter 1.................1 1.1 Chapter 1.1...........33 1.2 Chapter xyz...........123
But it should look like this:
1 Chapter 1.................1
1.1 Chapter 1.1..........33
1.2 Chapter xyz.........123
Changing the paragraph alignment to paralRight is no solution cause the chapter numbers on the left are not aligned anymore...
any idea?
#1
♥ 0
🔗
5.3k Views
2 users
read 1 min
And how is it done exactly?
this is an excerpt of the TOC code which does not produce the correct result
[...]
ActiveParagraph.TabstopAdd(Header.PageWidth -
Header.LeftMargin - Header.RightMargin - 560, tkRight, tkDots);
InputNewObject(wpobjReference).Name_Spaces := bobj.Name;
[...]
there is a tkRight, what is missing?
#3
♥ 0
🔗
Hi,
I assume if you do another ReformatAll this will work correctly. The reson is that the references are not calculated correctly when it formats the first time since then it does not know which pagenumber the destination will have.
Julian
#4
♥ 0
🔗
Now it works! I did a ReformatAll at the end.
Thanks!
#5
♥ 0
🔗
This category is archived. No new posts are possible.