Skip to main content
Participant
January 24, 2024
Answered

Creating a dynamic numbered list in InDesign with individual, unchained text blocks

  • January 24, 2024
  • 3 replies
  • 830 views

In indesign, I'd like to create the following numbered list (or variable):
- it's an independent list: it's not linked to page, chapter or other numbers.
- I'd like the numbers to be in separate, unchained blocks of text.
- finally, I'd like the numbering to be dynamic, depending on the order in which the text block appears on the page (left to right, top to bottom). If I move a block of text within the page, I'd like the numbering to adapt.

 

This doesn't seem like rocket science to me, but I can't figure out how to do it in indd. Many thanks in advance if you have a solution!

This topic has been closed for replies.
Correct answer Robert at ID-Tasker
quote

I'm sorry, I'm not sure I understand. Could you describe a little more precisely what you have in mind?


By @hyphen104

 

You need custom script that will be either run manually - or will constantly monitor location of "your" TFs - and update their contents accordingly.

 

Not sure if the constant monitoring part is achievable with UXP - but if you work on a PC - piece of cake. 

 

3 replies

jmlevy
Community Expert
Community Expert
January 26, 2024

You can do this with automatic numbering and lists.

https://creativepro.com/setting-up-numbered-lists-that-jump-frames-in-cs3/

 

But keep in mind that the order is defined by the creation order of the frame and not by its position on the page.

Robert at ID-Tasker
Legend
January 26, 2024
quote

But keep in mind that the order is defined by the creation order of the frame and not by its position on the page.


By @jmlevy

 

Then it's not a solution - as OP needs numbering to update dynamically - every time TFs are moved around...

 

Robert at ID-Tasker
Legend
January 25, 2024

If just by their location - by rows & columns - it would be fairly easy. 

 

TextFrames should either be on a separate layer or have the same label / ObjectStyle applied. 

 

James Gifford—NitroPress
Legend
January 25, 2024

You mean using scripting? Maybe. Nothing inherent, as far as I can remember/determine.

Robert at ID-Tasker
Legend
January 26, 2024
quote

You mean using scripting? Maybe. Nothing inherent, as far as I can remember/determine.


By @James Gifford—NitroPress

 

Yeah, scripting, as always.

 

James Gifford—NitroPress
Legend
January 25, 2024

Maybe it's not rocket surgery in that you could pretty easily code a simple app that does this — in some ways, it's just a simple puzzle game sort of model — but I can't think of any way that InDesign handles numbering that meshes with the idea.

 

Unless I'm overlooking some subtle feature, or not giving enough credit to scripting possibilities, ID numbers paragraphs by their order in text flow. You could break each paragraph into its own text frame, and move those frames around, but ID threads them by the order in which they are created. So you could move Block #3 anywhere on the page, above or below or to the left or right of any other block, and ID is always going to see it as Block #3 and number the contents following whatever is in Block #2.

 

ID is a powerful tool, but it's not really strong on realtime dynamic content like this autonumbering would require.

hyphen104Author
Participant
January 26, 2024

"So you could move Block #3 anywhere on the page, above or below or to the left or right of any other block, and ID is always going to see it as Block #3 and number the contents following whatever is in Block #2."
yes, that's the problem in my case. I just have very small blocks, with 3 digits in each one, spread over a double page:
- the first number corresponds to the chapter, it's automated thanks to a variable, no problem there.
- the second digit corresponds to an audio track number, numbered from 01 to 20 maximum.

I'd like to be able to copy-paste/move/add/remove a block without having to modify all the following audio track numbers by hand. Maybe via a script? I'm still looking....