0 votes

How do I show chapter numbers on a single line–i.e. don’t have drop caps?

PTXprint by (1.8k points)

2 Answers

0 votes

You need a pre-chapter-number chapter label for that (\cl Chapter). You can set that to e.g. a zero width non-breaking space.
How about this sort of thing in your changes.txt:

at GEN  "(\\c 1)$" > "\\cl \ZWNBSP\n\1"

This is a crude and ugly hack, because it will destroy any real \cl in your input. This is, I think, one of the things that “Use Special features for these books” does, but I think they do some other things too.

by (737 points)

Thank you. That got me on the right track.

One note, your change above is missing a slash. It should be \\ZWNBSP

Your solution put the chapter number above and centered–actually above the section title. I was trying to keep the number on the same line as the first verse, so this code ended up working.
'\\c (\d+)\r?\n\\p' > '\\c \1\n\\m \1 '
I then turned off having chapter numbers show up in the Body tab. Eventually I’ll likely wrap that second \1 in some formatting markers so I can make the verse number slightly larger and bold, just not two lines tall.

I believe that chapter heading lines are styled with \cl, rather than \c. You should be able to re-style \cl as much as you like, it’s just a (heading) paragraph style so that might be a simpler solution (for most people).

0 votes

I’m not sure what you are asking for. Are you asking for a single line cutout rather than 2 line cutout? Or are you asking for something in a separate paragraph like \cl would give you?

by (366 points)

I think I have it working now.

I wanted the chapter number to fall on a single line. At that point I’m not even sure I’d consider it a “cutout”, just text that comes before the \v 1 number at the beginning of the first paragraph.

David’s solution put the chapter number in a separate paragraph, which isn’t what I wanted but is nice to know about.

Related questions

0 votes
2 answers
PTXprint Oct 25, 2023 asked by Ruth Mathys (140 points)
0 votes
6 answers
PTXprint Feb 20, 2021 asked by anon054969 (123 points)
0 votes
2 answers
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Don’t you know that you yourselves are God’s temple and that God’s Spirit dwells in your midst?
1 Corinthians 3:16
2,628 questions
5,370 answers
5,045 comments
1,420 users