Hello everyone !
I am looking for a way to automatically insert numbered tags in my writer documents (e.g. “TAG 1”, “TAG 2”, “TAG 3”, … “TAG 49”, “TAG 50”, …).
The tricky part is I don’t want this number to change with the insertion of new tags before as the usual behavior with numbered headings. I want the tag to be inserted and to remain the same whatever happens elsewhere in the document. So that when I have tags 1, 2, 3 ,4 already in the document and insert a fifth just after the first, I get 1, 5, 2, 3, 4 (not 1, 2, 3, 4, 5).
The reason is I am going to reference this number in another system (e.g. “See TAG 3”) , and I don’t want to update both the document and the ticket in the other system when I edit the document.
And I want LO to manage this number by itself so that I don’t have to look up in long documents for “the last number I used” to avoid re-using the same twice.
What do you think ? Macro with a counter ? (I definitely have a hard time with LO macros… :/).
Thanks for your help !