0 votes
295 views

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

PTXprint by (1.9k points) | 295 views

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 (1.1k 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 (656 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
1 answer 16 views
Hi, I find that PDFs generated by PTXprint omit the drop-cap for the very first chapter. For example, if I were to ... I add drop-caps to all chapters that I try to generate?
anonymous asked Feb 24
0 votes
2 answers 287 views
A team I’m helping would like the name of God to display as all caps (not small caps). What do I need to put in Changes.txt to get the contents of \nd…\nd* to display as all caps?
Ruth Mathys 153 asked Oct 25, 2023
0 votes
6 answers 420 views
I want the \nd style to be in small caps. When I export from PT to RTF, \nd is underlined. I checked the box ... distinction of style whatsoever. What can I do to get small caps?
anon054969 123 asked Feb 20, 2021
0 votes
2 answers 354 views
Is there any way to generate a list that shows how many notes are in each chapter? I can find out by clicking ... things like planning how many chapters I should check per day.
skim1124 219 asked Sep 22, 2022
+1 vote
1 answer 242 views
In PT9 when I select a book, wait for the drop down to go away and the book to appear in the box, highlight the chapter ... going to be faster, but it's just the same as PT8.)
anon953007 213 asked Apr 7, 2020
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,037 questions
5,995 answers
5,661 comments
2,022 users