Skip to main content
Participant
March 14, 2019
Answered

Two auto-numbering sequences in one paragraph format

  • March 14, 2019
  • 5 replies
  • 737 views

We use the following paragraph auto-numbering format:

C:<$chapnum>.<n>.<n+>< =0 >< >< >\t 

It works as expected.

For our purposes, we have multiple sub-chapters in a document.

For instance.

Chapter 1.1

Chapter 1.2

Chapter 1.3

The Auto-numbering from our paragraph format would be:

1.1.1

1.1.2

1.1.3

What I would like to do is to add another auto-number sequence after this, it would look like this:

1.1.1 XY1

1.1.2 XY2

Then it should continue in Chapter 1.2 like this

1.2.1 XY3

Basically I want to hard code "XY" in the paragraph format and increment the numerical digit after "XY" and have it increment across multiple chapters (1.1/1.2/1.3) sequentially.

The format would be: C:<$chapnum>.<n>.<n+>< =0 >< >< >\t  XY (?).  I don't know if this is possible, but what auto-numbering element would allow me to increment the digit after "XY" (signified by the question mark in my example).

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer dauphinb

    I'm not 100% sure I understand what you're trying to accomplish, but I'm assuming you can't just add another counter to your autonumber string because you need to reset/increment that number separately from any heading number? Would it work to make your 3-digit heading style a run-in head with nothing as the default punctuation (because your string already includes a tab character) and a new style for the XY numbering set as the Next Paragraph Tag?

    So the 3-digit heading autonumber format would be:

    C:<$chapnum>.<n>.<n+>< =0 >< >< >\t

    ...and the follow-on paragraph style (call it XY_Num or some such) would use:

    X:XY<n+>

    In this scenario, you would assign the 3-digit style to an empty paragraph, yielding (for example):

    1.3.7[tab][insertion pointer][paragraph symbol]

    ...and then immediately hit return, yielding (again, for example):

    1.3.7[tab][paragraph symbol]XY9[space][insertion pointer][paragraph symbol]

    ...and you could proceed to type the heading text. This would require some careful thought about setting TOC/MiniTOC formats (if necessary), but it would do what (I think) you want to do.

    Hope this helps....

    -Bill

    5 replies

    dauphinb
    dauphinbCorrect answer
    Inspiring
    March 14, 2019

    I'm not 100% sure I understand what you're trying to accomplish, but I'm assuming you can't just add another counter to your autonumber string because you need to reset/increment that number separately from any heading number? Would it work to make your 3-digit heading style a run-in head with nothing as the default punctuation (because your string already includes a tab character) and a new style for the XY numbering set as the Next Paragraph Tag?

    So the 3-digit heading autonumber format would be:

    C:<$chapnum>.<n>.<n+>< =0 >< >< >\t

    ...and the follow-on paragraph style (call it XY_Num or some such) would use:

    X:XY<n+>

    In this scenario, you would assign the 3-digit style to an empty paragraph, yielding (for example):

    1.3.7[tab][insertion pointer][paragraph symbol]

    ...and then immediately hit return, yielding (again, for example):

    1.3.7[tab][paragraph symbol]XY9[space][insertion pointer][paragraph symbol]

    ...and you could proceed to type the heading text. This would require some careful thought about setting TOC/MiniTOC formats (if necessary), but it would do what (I think) you want to do.

    Hope this helps....

    -Bill

    Participant
    March 14, 2019

    Thank you Bill.  This works perfectly.