0 votes
273 views

I’m working on the lists in Ezra (1:9-10, etc.) What is the best way to get the numbers to be right-justified? I’d like to avoid tables, but is there an alternative?

PTXprint by (153 points) | 273 views

4 Answers

0 votes

Are the numbers marked up with litl?
If so you can put a hook into ptxprint-mods.tex
image

Add a line:

\sethook{start}{litl}{\hfill}

Which will put an infinitely stretchy bit of space at the start of the character class.
If you want that space to be a row of dots, it’s more complex:

\sethook{start}{litl}{\leaders\hbox to 0.5em{\hfill.\hfill}\hskip 0pt plus 1fill\relax}
by (1.1k points)
0 votes

Ah, I had started with \lik and \liv, but I’ll change them over.

Thanks for answering this and my other query. I understand the process enough to generate questions, but not answers! And I’m not done yet…

by (153 points)

That is working nicely except for lines where the text prior to the total already fills the line. Then the total doesn’t shift to the right. Would this need to be fixed line-by-line, and if so, what code do I use?

0 votes

Sorry if I implied there was something magic with litl… what was really important was that the bits that needed to be offset needed to have their own markup (but then you change the hook to be before whatever the relevant marker is.

Now, \hfill (and \leaders) getting discarded if there’s a line-break is a very useful feature, not a bug - it stops there being a space at the start/end of a broken line. There’s no need to treat things as exceptions, we just need to educate TeX…

The question that needs to be answered, though, is what would you like to happen?

  1. Never ever break the line before the number (even if the result is horrible): change the end of the sethook to be:
    litl}{\penalty10000\hfill}
  2. A whole blank line / line of dots before the number:
    litl}{\unskip\penalty500\hbox{}\penalty10000\hfill}

In both of these, if you are using the \leaders, put the extra bit in front of that instead.

Explanation:

What these are doing is giving the line-breaking algorithm some extra instructions.
I’ve also added \unskip which removes a preceding space if there is one - that’s more useful for the \leaders-based code, and stops there being a space between the dots and the preceding word.
The \penalty 500 means the line can be broken there, but it’s a long way from ideal. and \hbox{} is just a zero-width thing that it can’t discard. \penalty10000 says the cost of breaking the line here is ‘infinite’. Thus for both of these versions, TeX is not allowed to break the line at (just before) the fill, and thus it cannot be discarded by the normal process.

by (1.1k points)
reshown
+1 vote

Thanks for that information, and I managed to do the same for Scripture references in book outlines ALL BY MYSELF!

by (153 points)

Related questions

0 votes
1 answer 25 views
Our team needs access to a second-language Paratext project as Observers because our translation is based on its consultant- ... to resolve it. Any help would be much appreciated.
gplunk57 102 asked Jul 29, 2025
0 votes
0 answers 104 views
I always thought that switching between justified and unjustified text just left justified the lines over inserting space to ... to share, I would be interested in hearing it.
mhosken 656 asked Aug 27, 2024
0 votes
2 answers 196 views
I help operate ScriptureEarth.org. We are dreaming about the possibility of setting up an option for people to request ... . Does this sound at all reasonable? --Loren Hawthorne
LorenHawthorne 173 asked Aug 5, 2024
0 votes
2 answers 218 views
I'm preparing a text using the Noto Nastiliq Urdu font. But I need to use a Roman font in the changes.txt edit screen ... font, but PTXprint hung up when I tried to print. Advice?
mlucas53 148 asked Jul 22, 2024
0 votes
1 answer 246 views
The partial verse at the bottom of the left column occurs after a list marked as a table in ParaText.
anon180868 195 asked Jul 11, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And over all these virtues put on love, which binds them all together in perfect unity.
Colossians 3:14
3,037 questions
5,994 answers
5,661 comments
2,022 users