We will be migrating from Ask to Discourse on the first week of August, read the details here

 Ask Your Question

How to put a chapter number on a different line from the heading [closed]

I'm trying to figure out how to use the outline numbering function in Writer to number a chapter and then to put the chapter number on a different line from the heading.

I would like to put the number on the first line of the chapter in a large novelty font. Then I'd put the chapter heading on the second line in the standard heading 1 font. I've figured out how to automatically generate the number using outline numbering. I've also figured out how to make the number a different character style from the chapter heading. What I can't figure out is how to put the number and the heading on different lines.

Can it be done?

edit retag reopen merge delete

3 Answers

Sort by » oldest newest most voted

Just put a line break (Shift+Enter) between the number and the text of the heading: on recent versions of LibO (I think it started with 5.0, but I'm not sure) the line break will be ignored by the TOC.

I do this all the time ;)

more

Comments

That did it. Thanks.

( 2017-05-07 23:51:56 +0200 )edit

You mean it can't be automated in the stylesheet.

What a ghastly mess of a wordprocessor. After all these years and you can't have 'Chapter 1' separated by vertical whitespace from the chapter title (not just a blank line, I need 17mm of space) — and automate it? I have to type it by hand every chapter? This is 2019, not 1969.

Time to go back to LaTeX.

more

Comments

This no novel answer but a request. Transfer it into a comment after my answer below. I'll then update it. Yes, it is 2019 and a small feature has been added allowing automation.

( 2019-09-30 07:57:44 +0200 )edit

The only way I know is rather a workaround than a solution.

You need to insert a newline as the first "character" of your heading. Unfortunately, you can't type a newline (which is shift+return) in the After box of the Tools>Outline Numbering... settings. You must type it explicitly in your title.

This has adverse effects on formatting and you will need to manually tune the left margin and first line indent in Heading x paragraph styles.

Also, the newline will be transferred to the table of contents, creating misalignments there.

If this answer helped you, please accept it by clicking the check mark to the left and, karma permitting, upvote it. If this is what you expected, close the question, that will help other people with the same question.

more

Stats

Asked: 2017-05-02 23:31:02 +0200

Seen: 1,412 times

Last updated: Sep 29 '19