Ask Your Question

How can I define auto-numbered paragraphs/styles with a static text before the numbering [closed]

asked 2017-02-23 04:19:03 +0200

michaelof gravatar image

updated 2017-02-23 04:20:32 +0200


if possible, I would like to get a paragraph/style (German "Formatvorlage") which contains some static text plus autonumbered parts like the following:

Question I: ......

< whatever content>

Question II: .......

Found this:, but, not sure if this is a bug, LibreOffice does not "remember" the last selected format, always switched (back?) to arabic instead of roman. Somewhat painful. And

Finnally I want an separate index about all "question ....", but all should be completely independent of any other potential numberings like headings, literatur, images etc.

I've also read about "list styles" etc. but I'm missing some illustrative example. Couldn't find any howto's and the online help itself is only describing fields and buttons, no concepts

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by michaelof
close date 2017-02-24 03:13:35.357522

1 Answer

Sort by » oldest newest most voted

answered 2017-02-23 08:46:40 +0200

ajlittoz gravatar image

Your questions addresses two issues, so let's tackle them one after the other, but I assume you know how to define custom styles.

Auto-numbering with static text

Define a new paragraph style for the question line; give it name Question for example. Tune the settings (margins, ...) to your likings. I'd suggest to set Next Style in the Organizer tab to Text Body or the name of a custom style for your <whatever content> paragraph.

In the Outline & Numbering tab, select a numering style (also called "list" style) from the drop-down menu for Numbering section, e.g. Numbering 1.

Click OK.

Note: I prefer to use existing built-in "list" style rather than to create a custom one because the built-in ones are seldom used and there is low risk of creating an incompatibility. But you can design a brand new one, it is just a little longer than modifying an existing one.

Now, open the selected numbering style (it is called a "list style" when you hover the mouse over the rightmost style icon in the F11 panel) with a right-click and Modify....

Go to the Options tab. Select how you number your questions from the drop-down menu Number: arabic, alphabetical, roman, ... Fixed text is set with Before (e.g. "Question ", with a space after) and After (e.g. ":" with or without space, en-space or non-breaking space according to your language typographical rules).

In the Position tab, you can tune how the "number" is highlighted from the rest of the text, notably if you use tab or space between the "number" and text.

Click OK.

When you type a question, give style Question to your paragraph and you're done.

Note: experiment with the various settings to tune the layout to your liking.

Table of questions

At the position where you want the table (index) of your questions, select Insert->Indexes and tables...->Indexes and Tables....

From the Index/Table tab, select User-defined and tick the Styles check box in the Create from area. Click on the ... button to choose the styled paragraphs to include in the index. Click on the Question style and move it with >> button from the Not applied column to 1 (index first level). Click OK.

Give a title to the table and click OK.

If you want to customise the appearance of the index, the other tabs of the dialog allow you to set various paragraph or character styles for nearly unlimited display aspect. Experiment.

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.

edit flag offensive delete link more



Fan - tas - tic answer, EXACTLY what I was searching for!!!

Thank you very, very much for spending so much time to answer my question that detailed.

Kind regards, Michael

michaelof gravatar imagemichaelof ( 2017-02-24 03:11:34 +0200 )edit

Question Tools

1 follower


Asked: 2017-02-23 04:19:03 +0200

Seen: 123 times

Last updated: Feb 23 '17