0 votes
303 vues

Hi, I just started getting in depth with Paratext and now PTXprint and I can’t seem to make PTXprint output each verse on a new line like traditional Bibles. I’ve played with all the settings but can’t seem to find the trick.

I was able to make Paratext play nice with its PDF output by modifying a stylesheet, but that doesn’t seem to be an option (or I haven’t found that option just yet) in PTXprint.

Thank you in advance for your assistance.

PTXprint par (108 points) | 303 vues

1 Réponse

0 votes

I am assuming that your starting point is that verses appear within paragraphs like this:
image

The simplest way to do what you are asking for is to use the Advanced tab and apply some changes. So, ensure that you are using “Full View” and then enable the Apply Changes.txt option as shown below:

When you click on Edit… the View+Edit tab should show you your changes.txt file.

Add these lines to it (as shown below):

"\\v " > "\\p\n\\v "
"\\p[\s\r\n]*\\p" > "\\p"

image

These rules will place a \p marker before EVERY verse and remove any duplicate/redundant \p markers. So the end result should then appear like this:
image

Note that you could use \m for margin paragraphs (not-indented) by tweaking the change rules slightly:

"\\v " > "\\m\n\\v "
"\\p[\s\r\n]*\\m" > "\\p"

That would give you this kind of layout (slight change):
image

Just to be complete, it is worth noting that “Marginal Verses” is another possibility in case that is useful:

Which would result in this layout (you may need to adjust the formatting of the \v marker in the Styles tab):
image

I trust this gives you enough options to move forward.

par (3,2k points)

Hi Mark, thank you for your extremely detailed and helpful response. Unfortunately I seem to have run into a lot more issues since moving from a Windows 10 PC to a Windows 11 VM on my Mac and now I can’t get Paratext to output a PDF draft without using PTXprint, and now PTXprint is throwing up all sorts of weird errors that it wasn’t giving previously on Windows 10. I’ll have to start a new thread about this issue if I can figure out what exactly to ask for help with.

Thank you!

Can we add something to the change code above to take into account the verse within \q quotations, please?

For anyone looking, this seems to work, complements of Claude AI... using grep lookahead function.

"\\v(?<!\\q )" > "\\p\n\\v " "\\p[\s\r\n]*\\p" > "\\p"

Questions connexes

0 votes
1 réponse 80 vues
https://community.scripture.software.sil.org/t/verse-per-line-in-ptxprint/4185 On the above link I found it very helpful ... code to add to PTX print to get this desired format?
Jordan K 110 posée avr. 2, 2025
0 votes
2 réponses 744 vues
I have a user who wants to format the translation so that it will be printed one verse per line- that is, each ... this is handled in the best way possible. Thanks, anon609523 Hall
anon609523 108 posée août 8, 2017
0 votes
2 réponses 219 vues
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 posée août 5, 2024
+1 vote
0 réponses 29 vues
Lors de la citation des chapitres et des versets, utilisez uniquement une virgule (,) pour séparer le numéro du chapitre du ... . Exemple : Mc 1,39 (Marc chapitre 1 verset 39)
Petrus Khoa 103 posée juil. 26, 2025
0 votes
1 réponse 58 vues
I have lines like this in a custom.vrs file: *REV 21:6,a,b I have USFM marking like this in Paratext: \v 6a ... 'm missing? I'd rather not print more than required. Thanks, Paul
Paul 642 posée oct. 21, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Very truly I tell you, whoever accepts anyone I send accepts me; and whoever accepts me accepts the one who sent me.
John 13:20
3,044 questions
6,003 réponses
5,671 commentaires
2,026 utilisateurs