0 votes

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 by (106 points)

1 Answer

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.

by (2.6k 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"

Related questions

Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And let us consider how we may spur one another on toward love and good deeds, not giving up meeting together, as some are in the habit of doing, but encouraging one another—and all the more as you see the Day approaching.
Hebrews 10:24-25
2,627 questions
5,369 answers
5,045 comments
1,420 users