0 votes

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.

PTXprint by (143 points)

4 Answers

0 votes

Is this in monoglot or diglot text? For diglot text, the answer is no, sorry,
because the diglot proceeor dosn’t know what other bits of text will do to the page when the headers are getting typeset. If it’s monoglot, then, urm, I’m confused because I didn’t think there was a blank line above by default.

It might be that you are getting confused by the process by which titles are put into boxes an exact integer number of lines high. That might give you an apparent blank space above the text, which might only actually be 0.9 lines or something like that, depending on the size of your section-heading font.

by (707 points)
reshown
0 votes

This is a monoglot. The section heading font is the same size as the text font. I imagine it is some setting I am missing. Here are a couple of screenshots.
image
image

by (143 points)

I think the setting you need is under Styles, s- Heading - Section Level 1 and Font Size Factor. If you mouse over Font Size Factor a popup explanation of how that factor is used will appear. See screenshot below.

JG

0 votes

@mlucas53 This is a very common question, but I don’t think we’ve answered it particularly well in the distant past.

The issue here is that the \s - Heading style is requesting 0.67 of a line BEFORE the text and another 0.33 of a line AFTER the text.
image

The text itself takes one line, so it will always swallow 2 lines.

However, if you tweak those values (sometimes with a bit of trial and error) you should be able to convince it to scrunch up at the top of the page while still keeping sufficient space when the space comes half way through a column of text. Here I tried 0.33 above and 0.11 below and that seems to have done the trick:
image

But make sure you look at headers elsewhere to ensure it hasn’t messed them up too much.

You can also tweak the Font Size Factor and/or the Line Spacing Factor to make it squeeze in, but generally the tweaking of the Space Before/After has the quickest impact.

And for anyone who wants to have even more fun experimenting (especially if you have \r references after the \s heading) note that the Space Before/After values can also be negative!

by (2.6k points)
0 votes

Thanks everyone. Before posting I had played with the \s Space Before/After values (even negative) but couldn’t achieve the desired results. Eventually I set Base Font, Base Line spacing and Start of Page to Top of Text back to their default settings, applied Mark’s values above to \s style and got nice results. I then reintroduced my Base Font size, Base line spacing and top margin settings back in and still maintained the desired section-heading spacing. I doubt the order really made any difference but I’m glad to report my columns are now even at the top. Thanks!

by (143 points)

Related questions

0 votes
2 answers
0 votes
3 answers
0 votes
2 answers
PTXprint Feb 27, 2023 asked by SokChin (122 points)
0 votes
1 answer
0 votes
2 answers
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
So Peter was kept in prison, but the church was earnestly praying to God for him.
Acts 12:5
2,627 questions
5,366 answers
5,042 comments
1,420 users