A better way to control spacing?

General TRichView support forum. Please post your questions here
Post Reply
ozznixon
Posts: 4
Joined: Thu Jun 26, 2025 8:34 am

A better way to control spacing?

Post by ozznixon »

If you view the attached screenshot. I am porting a PDF into RFV (by hand).

Please notice that the right margin of the periods, is staggered. I would like to know is there a setting or a way to make this align on the right?
Attachments
2025-08-17_23-42.png
2025-08-17_23-42.png (16.38 KiB) Viewed 4419 times
Sergey Tkachenko
Site Admin
Posts: 17896
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: A better way to control spacing?

Post by Sergey Tkachenko »

Do you use tabs with a dot as a leader character? Do numbers have spaces before them?
ozznixon
Posts: 4
Joined: Thu Jun 26, 2025 8:34 am

Re: A better way to control spacing?

Post by ozznixon »

Hey Sergey.

Right now it is just a line of period, space, period, space, etc.

The Page Numbers have a TAB before the number - that is why those line up.
Sergey Tkachenko
Site Admin
Posts: 17896
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: A better way to control spacing?

Post by Sergey Tkachenko »

Instead of using dots and spaces and tabs, you can use a single tab character.
But you need to set in the corresponding RVStyle.ParaStyles[].Tabs an item having:
- Positon = position of the page number
- Leader = '. '.

In RichViewActions, you can add tab in the paragraph dialog (or add a tab by clicking on the ruler, then set is properties in the paragraph dialog)/
But this dialog allows choosing only from a limited set of tab leaders (the same set as used in MS Word). You can define '.' (dot), but not '. ' (dot and space).
ozznixon
Posts: 4
Joined: Thu Jun 26, 2025 8:34 am

Re: A better way to control spacing?

Post by ozznixon »

I took your suggestion - and in Paragraphs -> Tabs, leader (......) but it is still coming out a little staggered.
Attachments
2025-08-20_21-54.png
2025-08-20_21-54.png (2.51 KiB) Viewed 3046 times
standay
Posts: 303
Joined: Fri Jun 18, 2021 3:07 pm

Re: A better way to control spacing?

Post by standay »

ozznixon wrote: Thu Aug 21, 2025 2:55 am I took your suggestion - and in Paragraphs -> Tabs, leader (......) but it is still coming out a little staggered.
Try 2 right-aligned tabs. First one with the leader (...) and second blank one. Play with the positioning and you might be able to make it work.

Stan
Sergey Tkachenko
Site Admin
Posts: 17896
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: A better way to control spacing?

Post by Sergey Tkachenko »

If the tab is left-aligned, a line of dot must be finished at the same position on all lines (providing that all the lines have the same paragraph style or paragraph styles with identical tab stops).
If you think it is rendered incorrectly, please send me a sample RVF file to email richviewgmailcom or attach it here.
ozznixon
Posts: 4
Joined: Thu Jun 26, 2025 8:34 am

Re: A better way to control spacing?

Post by ozznixon »

standay wrote: Thu Aug 21, 2025 3:08 pm
ozznixon wrote: Thu Aug 21, 2025 2:55 am I took your suggestion - and in Paragraphs -> Tabs, leader (......) but it is still coming out a little staggered.
Try 2 right-aligned tabs. First one with the leader (...) and second blank one. Play with the positioning and you might be able to make it work.

Stan
You got it much closer! Changing the Paragraph -> Tabs, Right Align... Not perfect, but *much* closer!
Attachments
2025-08-21_12-01.png
2025-08-21_12-01.png (8.03 KiB) Viewed 2023 times
2025-08-21_11-58.png
2025-08-21_11-58.png (3.54 KiB) Viewed 2034 times
Post Reply