Incremental margin numbers in legal texts / Randnummern
Posted: 2021-05-29 22:24:33
German legal texts often require marginalia in the form of the so called Randnummern (margin numbers.) Randnummern are serial numbers that are cited and allow people to refer to exact locations in the text. They are used in textbooks, legal commentaries, administrative regulations, court decisions, etc.
The other day, a Mellel user asked me whether this can be done in Nisus. If yes, he said, he would switch to NWP.
I think using Text Boxes with an incremental list style content seems the way to go. That's the easy part. But what makes this tricky is that on odd pages the numbers must appear on the LEFT margin whereas on even pages they must appear on the RIGHT margin.
If we have a book of 300 pages, we may be talking about 500 Randnummern here or more. Entering all the numbers manually as we plod along writing the book is not a problem. The problem I see is the following: if we delete or move around parts of the text we end up having numbers (text boxes) on a wrong margin because the text boxes will retain their former marginal position. The same applies, of course, if we drag headings up or down in the Navigator.
Considering this problem, would it perhaps be better to first insert a place holder at the beginning of each paragraph where we want a text box to appear later, and when we have finished the whole document we use a macro to add numbered text boxes on the left and right side, depending on whether we are on an odd or an even page?
Is it possible to write a macro for this purpose?
The other day, a Mellel user asked me whether this can be done in Nisus. If yes, he said, he would switch to NWP.
I think using Text Boxes with an incremental list style content seems the way to go. That's the easy part. But what makes this tricky is that on odd pages the numbers must appear on the LEFT margin whereas on even pages they must appear on the RIGHT margin.
If we have a book of 300 pages, we may be talking about 500 Randnummern here or more. Entering all the numbers manually as we plod along writing the book is not a problem. The problem I see is the following: if we delete or move around parts of the text we end up having numbers (text boxes) on a wrong margin because the text boxes will retain their former marginal position. The same applies, of course, if we drag headings up or down in the Navigator.
Considering this problem, would it perhaps be better to first insert a place holder at the beginning of each paragraph where we want a text box to appear later, and when we have finished the whole document we use a macro to add numbered text boxes on the left and right side, depending on whether we are on an odd or an even page?
Is it possible to write a macro for this purpose?