0 votes
332 views

The \c ## comes before the \s xxxx in the SFM, but PtxPrint puts the Chapter number larger and inline with the first paragraph after the section heading.

============
\c 1
\s भ्रन्‍सी चिमुला प्रभु येशू
\b
\li1 \bd को: \bd*

Screenshot 2022-03-17 163541

How do I disable the special positioning and size of Chapter number.

I changed the font size in “\C Style” to 1.0 (from 1.5) but it had no affect.

PTXprint by (1.2k points) | 332 views

3 Answers

0 votes

If you want a heading-like chapter like “Chapter 1”, then you can put:

\cl Chapter

before \c 1 in the USFM.
If you want the order different, something more like Hungarian’s
“1. Fejezet”, where the number comes before the chapter, then in `ptxprint-mods.tex" you would also put:

\def\MakeChapterLabel#1#2{#2. #1}

If you want to just have the number, then the \cl line could be, for instance \ZWNBSP (zero width non-breaking space).

For completeness, if you want The First Chapter as a title, or something similar, then you would put:

\cl The first Chapter

AFTER the relevant chapter number.

by (1.1k points)
0 votes

There’s actually a place in the UI to control this at the end of the Body tab. The tooltips tell you what to do. Normally this kind of different chapter styling is done for Poetical books (such as PSA and PRO), but if you leave the book list empty, it should apply to all books.

As it expects a “Chapter”-like label, if you don’t put anything in there, it probably won’t do what you’re expecting. So the \ZWNBSP hack puts in an invisible but valid character before the number.

What I don’t know is how to make a chapter appear between two pieces:
e.g. - 1 -

or how to have the chapter label come after the number:
e.g. 1va adyayam

Maybe it isn’t even possible…

by (3.2k points)

Chapter number between dashes, ignoring any “Psalm” or other \cl contents (but still needing a \cl somethng to trigger it):
\def\MakeChapterLabel#1#2{- #2 -}
Including any \cl contents, before the number:
\def\MakeChapterLabel#1#2{- #1 #2 -}

Label afterwards, with ‘va’ ‘magically’ appearing after the number:
\def\MakeChapterLabel#1#2{#2va #1}
(lets you end up with 2va capitolo, 3va ghili, etc)

In other words, you end up seeing what’s in the curly brackets, and #1 is replaced by the text of the \cl, and #2 by the chapter number.

(all of those \def… things go into ptxprint-mods.tex, I forgot to say, sorry.)

0 votes

By the way… if someone wanted TeX to to automatically provide a varying suffix, like English’s 1>1st, 2>2nd 3>3rd, 111-> 111th, 121 → 121st etc. then it gets fairly tricky. First the number would need to be re-interpreted to be a number (as opposed to text, as it is now), and then someone would need to supply the correct logic, or maybe an \ifcase for all values up to 150.

by (1.1k points)

Related questions

0 votes
4 answers 273 views
Is there a way to remove the blank line before the section heading when the heading is at the top of a column? I have space before and space after set to 0.
mlucas53 148 asked Jul 28, 2023
0 votes
2 answers 158 views
Hi, What is the best way to manage space between chapters when a chapter doesn't have a section ... the ptxprint side without inserting paratext markers. Thanks Wilfred Ball
wilfred_ball 102 asked Feb 4, 2023
0 votes
1 answer 210 views
Could you please let me know if there is a good way to extract section headings from a model project. As I ... together. Thanks so much, I really appreciate it. C. anon342075
Thiyagarajan 110 asked Sep 12, 2022
0 votes
1 answer 168 views
When I type a reference in the portions or Multiple books window, any section header (/S) within that verse ... PTXprint provide the section headers as well when using modules?
MnKN 134 asked Dec 16, 2023
0 votes
2 answers 348 views
I am selecting a number of passages by provided a range of verses and would like to have the section heading and range of ... to be included as well. How do I do that? Thanks
MnKN 134 asked Dec 8, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Live in harmony with one another. Do not be proud, but be willing to associate with people of low position. Do not be conceited.
Romans 12:16
3,037 questions
5,994 answers
5,661 comments
2,022 users