In Writer, I would like a custom field, incrementing throughout the document, attached to my own counter. The end result should be somewhat like page number, but it displays instead its position within the document (so the Nth instance of this field says “N”).
The use case is numbering problems in an exam - I would like to be able to insert an automatic field in problem headings, so that the problem is labeled “Problem N”, with N auto-updating if I move problems around in the exam.
Is there a way to do this?