Numbered List Re Starting From 1

Numbered List Re Starting From 1

Numbered List Re Starting From 1 Average ratng: 3,6/5 8215 votes

I just posted an answer on Stack Overflow where I wanted to have nested numbered lists, something like 1. German Shepherd 1.2. Belgian Shepherd 1.2.1. Malinois 1.2.2. Groenendael 1.2. A list template defines a numbering scheme, including the form of number to be. This is the 'out-of-the-box' method of restarting numbering, available from Word 2002. That restarts numbering of a lower level paragraph after a higher one.

Here’s an interesting problem: How can you make an auto-numbered list of paragraphs that goes 1.0, 2.0, 2.01, 2.02, 2.1, and so on? It seems like it should be simple, but it takes a little extra work.

I’ve discussed how to make multi-level numbered lists here, and stressed the importance of making multiple paragraph styles. So here, I’ve made three paragraph styles — one for each level in my list:

As you can see, there is something wrong with “pineapple.” It is numbered 2.2.1, even before 2.1! That’s because the last second-level numbered paragraph was 1.2… so even though the first level “restarted” with 2, it didn’t reset the 2nd level. Oops.

There are two solutions to this, both involving making another paragraph style. The easiest thing is probably to just make a new kind of level-3 numbering, but actually force the “zero” into it in the Number field. See how the Number field in the following image shows “first level number, followed by a zero, followed by the current level-3 number, followed by a tab”:

When you apply this to the paragraph, it appears just the way we want it to. Here I show it with both on the page and in Story Editor, so you can see that I have applied the paragraph style to that paragraph and got the numbering I wanted:

(If you look closely, you’ll see that I also changed the first-level heads in the image above… I removed the “.0″ from the end so they’d just show 1 and 2. But then I decided to change it back for the rest of the images.)

If you want, you can download my file here in IDML format to play with it yourself. (Sorry, you must be logged in as a free or paid member to download this file.)

The Invisible Reset Hack

Here’s a second way to achieve this effect. It also involves making a paragraph style, but this time it’s going to be an “invisible” style that forces the reset. It’s a bit of a hack, but I think it’s interesting that it works, so I wanted to share it with you.

Let’s make a numbered paragraph style that that is set to Level 2, but has nothing in the Number field… it’s just blank:

Now let’s apply it to a blank paragraph before the one we want to reset:

This is weird, but because there is no ^# value in the Number field definition, InDesign resets the numbering to zero! Now we will also change the leading for this paragraph style definition to zero. That makes the paragraph effectively disappear.

And the result is what we want:

I think I like the first method more because I’m not fond of having blank paragraphs in the middle of my list, even if you can’t see them on the page. But it’s fascinating that it works, no?!

Mac B2520 MFP; B2520 MFP. Where to buy. Where to buy. Drivers & Utilities: Select Your Product Product Detail. OKI no longer guarantee the use of OKI products under unsupported OS. Please refer to OS compatibility if you can not find your printer driver. OKI Europe at a Glance. 30 Years of Innovation. The Leadership Team. OKI Offices across the Globe. Corporate Social Responsibility. OKI Offices in EMEA. Careers at OKI. Our Customers. Shinrai Partner Programme. Code of Conduct. Corporate Policies. Anti-Corruption & Anti-Bribery Policy Statement. Corporate Philosophy. Modern Slavery.

David Blatner is the co-founder of the Creative Publishing Network, InDesign Magazine, and the author or co-author of 15 books, including Real World InDesign. His InDesign videos at Lynda.com are among the most watched InDesign training in the world. You can find more about David at 63p.com.
  • - November 30, -0001