Numbering formulas with chapter number and a autoupdating counter from 1 to X, how?

Hi there,

I am wondering if I can numerate the formulas automatically with the chapter number and a counter which updates itself every time I add another formula in the chapter section and is also independent of each chapter.

I use the f+n+F3 method to create a table, where I write or copy the formula object and the goal is to have the formula correctly numbered with the chapter number, such as “2.3.4.A.3” plus a formula counter for the section, “5” for the fifth formula. I am referencing it using “Insert” → “Cross reference” and should be able to select the reference as “2.3.4.A.3-5”.

Is it possible to do with Libre Office Writer?

I have tried adding the field “Chapter number” with the highest level “10” and a counter, but the problem is that the counter is common for the whole document and it does not reset itself within a different chapter.
Is there an easy and straight way to fulfill my goal?

This is very easy; all you need is to customise a bit the “fn” + F3 AutoText.

  • Enable View>Field Shadings (should be “on” by default).
  • Insert a first formula with “fn” + F3 if not already done.
  • Double-click on the formula number (with the gray background)
  • Enable Numbering by Chapter by selecting the appropriate Level (1 for chapter, 2 for sub-chapter, …). Don’t forget to enter a Separator like a dot or a hyphen.

Existing and new formula numbers are prefixed with the chapter number. If the numbers don’t change, Tools>Update>Update All will trigger a forced update.

Since Writer is now aware you want to number per chapter, the formula counter is reset when the selected level changes.