Ask Your Question

List paragraph numbering with leading zeros

asked 2019-11-05 02:02:46 +0100

JoPro gravatar image

updated 2020-09-28 19:22:45 +0100

Alex Kemp gravatar image

Is it possible to define a list paragraph numbering format that has leading zeros?

In particular, patent applications need to be drafted with numbered paragraphs in square brackets with leading zeros such as [0001] .

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2020-02-17 23:24:24 +0100

stonefish2098 gravatar image

updated 2020-02-17 23:26:23 +0100

To use numbered paragraphs with brackets and leading zeros: (1) go to the paragraph you wish to number, (2) type an opening bracket, (3) select Insert->Field->More Fields->Variables Tab->Insert Formula, (4) under the "Formula" field enter PN=PN+1, (5) under "Format," select "Additional Formats", (6) select Number, format -1235, and set leading zeros to 4, (7) select the insert button, (8) type the closing bracket. (You only have to do these steps one time) For the first paragraph you've done this for, you should see [0001]. Select the [0001] using your mouse, and select "Copy." Now you can paste that at the front of each paragraph. As you move the paragraphs around, they will renumber properly if you select that text together with the paragraph when you cut and paste.

edit flag offensive delete link more


Very good, indeed!

ajlittoz gravatar imageajlittoz ( 2020-02-18 09:23:02 +0100 )edit

Ich habe jetzt mal verschiedene Varianten des obigen Vorgehens ausprobiert und scheitere immer irgendwie. Zum Ersten versetzt LO beim Einfügen immer irgendwie die Tabulatoren, sodaß die Ziffern übereinander "gestapelt" und quasi "unter" dem Nachbarfeld "versteckt" werden. Man sieht sie nicht, aber es macht die Zeile "drei Zeilen hoch". Ein Lösungsansatz wäre mMn eine Formel, in der "relative" Feldbezüge (wie in LibreOffice Calc als Standard quasi ohne "$")möglich sind. Dann würde das Ding mit der"Copy-and-Paste"-Methode funktionieren (aber nur, wenn ich JEDE Zeile nummerieren will; eine möglichkeit des "Eine Zeile nicht nummerieren" kann einen so dann wieder zur Verzweiflung bringen;vor allem, wenn man dann mehrere nummerierte und nicht-nummerierte Zeilen im Block verschieben will). Da ist dann die Methode mit der "F12-Taste" angenehmer.

vy 73 de Udo DO1UMR

DO1UMR gravatar imageDO1UMR ( 2020-04-20 15:11:20 +0100 )edit

answered 2020-04-10 11:06:34 +0100

Implemented in upcoming version 7.0.

edit flag offensive delete link more


Good idea?
Cannot history and compatibilty issues be overcome, and issues like the discussed one be solved by delegating the numbering of paragraphs and table rows to TextField objects like it is done for page numbering?
It would enhance internal consistency, imo. Are ODF standards prohibitive insofar?
(I dislike to think of LibO as a growing heap of crutches.)

Lupp gravatar imageLupp ( 2020-04-20 13:27:33 +0100 )edit

answered 2019-11-05 08:24:09 +0100

ajlittoz gravatar image

No, there is no formatting code for list numbers like you would find in Calc.

This question has already been asked here and the answer offered an ugly workaround, but I can't find it back. Maybe you'll have better luck.

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

edit flag offensive delete link more


Thank you for your answer.

It is the only feature keeping me (and at least a few other patent drafters) from switching and donating.

JoPro gravatar imageJoPro ( 2019-11-05 18:39:08 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-11-05 02:02:46 +0100

Seen: 254 times

Last updated: Apr 10 '20