How to insert figure caption numbering according to headings numbering?

I want to assign the figure caption to heading numbering.

  • Now I have 4 photos per example

  • Tools > Outline Numbering > Level 2 (paragraph style heading 2) == Results: 1.1 1.2 1.3 1.4 … etc

  • Tools > Outline Numbering > Level 3 (paragraph style heading 3) == Results: 2.1 2.2 2.3 2.4 … etc

  • when I insert caption for figures the results is always Figure 1 then Figure 2 then Figure 3 even if i modified numbering captions by chapter levels

  • How can I make photo 1 caption (Figure 1.0) and photo 2 (Figure 1.1) photo 3 (Figure 2.0) photo 4 (Figure 2.1) ?

Thanks

I suppose you inserted your figure first by creating a frame (Insert>Frame>Frame...) and then added a caption with menu Insert>Caption ... after clicking inside the frame.

The dialog which opens allows you to set many properties of the caption.

If the preview does not show something like Figure 1.1, click on the Options button.

The first item in this second dialog is Numbering figures per chapter (or equivalent in your locale). The drop-down menu allows control on the number of levels displayed (from none up to 10). For chapter numbers only, choose Level: 1.

Other options are rather for fancy text decoration and layout but you can experiment to your liking.

Click OK twice and you’re done.

EDIT (to answer @Joeynn’s questions in comments)

Chapter numbering in captions will work only if outline numbering is enabled. You enable it with Tools>Chapter numbering... and choosing a numbering style for the adequate Heading x paragraph style.

If there is no numbering, chapter number is “void” and this “void” is transferred into the caption which gives a correctly numbered caption “void”-then-sequential-figure-number.

With chapter numbering enabled, you get chpter-number/separator-/sequential-number. If your chapter one contains no figure, the first figure in chapter two is captioned 2.1 as expected.

END OF EDIT

COMMENTS ON YOUR SAMPLE FILE

The most important comment is you are not using LO as it should be: there is a mixture of old-fashioned typewriter usage with modern document processing features. It looks like you are discovering /learning LO while you have a deadline with a professional task.

LO is based on styles, the most important of which are paragraph styles. Their parameters (attributes) allow you to set all visual characteristics of the geometric area occupied by the paragraph: spacing above and under (must never be achieved with “carriage return” strokes), alignment with page break (again, not to be done with carriage returns because a simple text update will ruin your manual sync), first line indent (without the need for Tab character).

Let’s start with your text. It is styled Default Style; it should be Text Body. Default Style is the ancestor of all styles and should be used only to set globally shared attributes, usually only the font.

Open the style navigator with F11. Right click Text Body and chose Modify.... Go to Indents & Spacing tab. Set First line indent to 1 cm, Spacing above and below to 0.3 cm (you may prefer some non symmetric values, experiment) and maybe Line spacing to Single instead of your 120%. Go to Alignment tab and set Options to Justified (it is usually better to justify paragraphs extending on the full width of the page). Click OK.

In your “main text” paragraphs, you can now suppress the initial Tabs and manual spacing above/under. With the cursor inside the paragraph, double-click on Text Body and your paragraph is restyled. All modifications made on the style will be instantly transferred to all such styled paragraphs.

Your bulleted paragraphs should likewise be styled List 1 and you can set the attributes independently from the “main text” paragraphs styled Text Body.

Now to the paragraphs making the outline of your documents, aka. chapters, sections, …

They should receive some Heading x style which are all children of Heading style. Heading, though child of Default Style, plays the same role as Default Style for all “titling” styles and should not be used in a document. You’ll set there the default font for all titles, usually a sans serif font (like Arial, Liberation Sans, Helvetica, …) because titles are bigger and shorter than “main text”.

Once this is done, modify Heading 1 used for chapter titling. When entering tabs, push Standard button to restore all attributes to parent’s values (thus erasing your present settings which might prevent automatic updates). Go to Indents & Spacing. Set Spacing above to 0 and below to 1 cm. Go to Text Flow tab. Check Breaks Insert to cause a page break before this paragraph. Go to Font tab to set character size (and eventually bold). If you find it convenient, go to Font Effects tab and choose Effects>Capitals (or Small Capitals) to spare you the pain of typing your title uppercase. Click OK

Customise your Heading 2 and Heading 3 to your taste.

Back to your text where you typed “Chapter X” in one paragraph and the title in another one, both styled Heading 1. The net result is: you have chapter 1 titled “CHAPTER 1” with empty contents and chapter 2 titled “LITERATURE …”. That is, you are now one off from the expected chapter number! The same holds for your subsequent chapters. It is easy to correct it.

Open Tools>Outline Numbering..., tab Numbering. In level 1, with Heading 1, make sure Number is set to 1, 2, 3, .... Set Separator Before to "CHAPTER " (with a space after the word) and nothing in After.

While you’re at it, correct your buggy levels 2 and 3. Level 2 should be set at Heading 2, 1, 2, 3, ..., Show sublevels 2 and erase Separator Before and After. Level 3 similarly is set at Heading 3, 1, 2, 3, ..., Show sublevels 3 and nothing in Separator Before and After. The chapter/section/subsection number will be automatically provided by LO.

Click OK.

Review your chapter titles. Erase the “CHAPTER X” paragraphs and manual spacings. You see your chapter title preceded by “CHAPTER x” and a Tab character. If you want the chapter number on an independent line, click between the Tab and the first character of your title and type Shift+Enter.

Note: since you seem to have manually formatted your titles, fully select the chapter title (triple-click is a shortcut) and Format>Clear Direct Formatting or Ctrl+M to reset all attributes to style values.

Review your section titles (paragraphs numbered with x.y) and re-style them as Heading 2 (The 2 here means "two numbers precede the paragraph). Thanks to LO, the first number is equal to chapter number. Consequently, do not use Heading 3 in your chapter 2!

You are now ready to face your original question: automatic figure numbering.

Select a figure (just click it once). Insert>Caption.... Type your caption in box Caption, without “Figure …”. Select Category as Figure (each category has its own numbering sequence). Click Options... to customise numbering and select how many “outline” numbers you want in the figure number: 1 for chapter only, 2 for chapter-section, 3 for chapter-section-subsection, etc. The choice you make here is global, i.e. you cannot have different number of levels in different parts of your document.

Figure numbers are entered into an LO dictionary and are available as automatically available references. In your text, instead of typing “see figure 2.1” which incurs the risk of being erroneous if you add a figure before this one, type "see figure " and Insert>Cross-reference.... In Type pane, select Figure, in Insert reference to choose Chapter for figure number and/or Reference for full title and click on the desired figure description. Click OK. If the figure number/title ever changes, the reference is magically updated.

I noticed you created your bibliography as a chapter. This is wrong. Conceptually, a bibliography is not a chapter, it is a table. Moreover, chapters have a number and bibliography none. With LO, you can’t have simultaneously numbered and unnumbered chapters. The solution to this dilemma is to use Insert>Table of Contents and Index>Bibliography Entry... and generate a special table “Bibliography” at end of document. This is not complicated but this site is not supposed to be a tutorial.

One final word: read the User Guide available for free download here. Make a pause with your document and read it. This is not wasted time. You’ll then write your document much faster and more reliably and you’ll be able to concentrate on your contents and not on the way to display it.

Remember that LO style architecture is akin to semantic marking. Define a style associated to a purpose, not to a visual effect. Once your document is completed, you play with style definitions to decorate your text without ever changing the wording. If your style collection fits your intent, achieving a nice presentation is a matter of a few minutes only.

If this is the answer you expected, accept it by checking the tick mark at left and close the question for community benefit. Karma permitting, upvote the answer if you deem it valuable.

I can not figure out where is chapter numbering located, here are my settings:
link text
can you help me with a video please ? outline numbering level 3 begins with 2.1, when i choose level 3 in numbering captions by chapter, it gives me 2.0 figure 1 not figure 2.0

1/ In the latest LO release, menu Tools>Ouyline Numbering changed to Outline>Chapter Numbering. You are on the correct menu to enable chapter (=outline) numbering.

2/ Your settings are very strange: Heading 1 (usually chapter title style) is not numbered, hence no chapter number. I can’t tell for Heading 2 (sub-chapter) and hope it has Show sublevels set at 2 without anything in Separator Before. Your Heading 3 (section in subchapter) is definitely buggy: sublevels set at 1 means you display no chapter nor subchapter (note this is a valid choice), but you force a constant 2. before the number with Separator before.

3/ Try to upload your file because I can’t imagine what you’ve done with such a terse description.

Thank you for your help, Here is my file: link text
There are 4 Images in the document. Image 1 is in chapter 1 (its caption should be figure 1.0) Image 2 - 3 - 4 are in chapter 2 and there caption should be: Image 2 [figure 2.0] Image 3 [figure 2.1] Image 4 [figure 2.2]

When I choose Insert>Caption (Category: Figure)>Options>Numbering Captions by Chapter>Level 1
Here is the result:

and when I choose Insert>Caption (Category: Figure)>Options>Numbering Captions by Chapter>Level 2
Here is the result:

Is there something wrong ? the preview in the insert caption menu isn’t the same caption format in level 2

Preview is updated after OK on Caption Options because options are validated only after OK. In your snapshots, Preview is consistent with pre-existing options, i.e. “none” when you set “1”, then “1” (as set by your first attempt) when you choose “2”. The options do not update existing captions.

To get your expected results, delete existing captions and insert new ones.

I haven’t overwrite a caption over an existing ones. I inserted new ones with these configurations, my snapshots was only to show you the settings I have used. These are my steps:
1- Insert > Image
2- Insert> Caption
3- Options > Numbering Captions by Chapter > Level 2
4- Category: Figure
5- Preview: Figure 1.1: Results
6- What I get in the caption is Figure 1: Results not Figure 1.1: Results

I have a question also, how can the numbering caption begins with 2? Example: Figure 2.1 Figure 2.2. I can’t figure it out

See edit of my answer