Automatic linked paragraph numbering under a defined Header

N

netorius77

I need some help to automatically link paragraph numbering in
specification to the heading number. I am pretty familiar with Styles
so not looking for the basic "define the paragraph as the next leve
Header", and have set up my machine with Shauna Kelly's outlin
numbering recomendation. I would prefer not to use header numbering fo
the paragraph number for two reasons,
i) I need paragraph numbering under level 1, 2 & 3 Headings ie. firs
para may be numbered 2.1 or 2.1.1 or even 2.1.1.1 for example
depending on what header level it appears under.
ii) I use the Table of contents function in which I do not want t
include paragraphs.
After spending quite a bit of time with outline numbering, I suspec
that I may need to use some kind of inserted field.

To give an example, I am looking to do the following (using define
styles if possible):

2. *Heading*(Used defined Style, say Heading 1)

2.1 Normal paragraph where I would like to have the "2.1" automaticall
numbering the paragraph depending on the level of header above
2.2 Normal paragraph

3. *Heading* (Used defined Style, say Heading 1)

3.1 _Sub_Heading_ (Used defined Style, say Heading 2)

3.1.1 Here again I need the numbering to be automatically linked to th
paragraph number above. I would anticipate to predefine a style o
some kind to use through out my document (which is quite long), so
don't want to define each paragraph numbering individually/manually.

3.1.2 This para would follow in the sequence from previous.

I am sure there is a way to do it, but at a loss to get it right. Mayb
I should produce the document in Excel in true engineering style ;-
where I could manage these issues more easily!
:confused
 
S

Stefan Blom

You can use the AUTONUMLGL field for this purpose. This field numbers the
built-in headings according to their levels, that is, Heading 1 paragraphs
will be numbered 1, 2, 3, etc, and Heading 2 paragraphs will be numbered
1.1, 1.2, 2.1, 2.2, etc. For non-heading paragraphs, such as paragraphs with
the Normal or Body Text style applied, numbering will include the most
recent heading numbering. For example:

1 Heading 1
1.1 Body Text
1.2 Body Text
2 Heading 1
2.1 Heading 2
2.2 Heading 2
2.2.1 Body Text
2.2.2 Body Text

In order to insert the AUTONUMLGL field, do the following:

1. Press CTRL+F9, which inserts field delimiters {}.

2. Inside these field delimiters, type

AUTONUMLGL \e

3. Click F9 to display the field result. (AUTONUMLGL is one of the fields
that update automatically, so it would be sufficient to press SHIFT+F9,
which toggles between displaying field codes and field result for the
selected field.)

Note that you can copy and paste the field code; you don't have to type it
in more than once.

It's probably possible to automate the insertion of the fields, but for that
you need someone who is more familiar with wildcard searches and/or VBA than
I am.
 
B

Bruce Brown

You might also experiment with the LISTNUM field.

According to Word's Help on the AUTONUMLGL field, "The AUTONUMLGL
field is provided for compatibility with previous versions of
Microsoft Word; it is recommended that you use the LISTNUM field in
place of the AUTONUMLGL field. The LISTNUM field can be incorporated
into numbering from a simple or outline-numbered list, and it can be
inserted anywhere in a paragraph."

The LISTNUM field gives you control over which level you want the
number to be with the \L switch and what the number value is with the
\S switch. Both switches are optional, but you'd probably want the \L
switch:

1. = Heading 1
1.1 = Heading 2
1.1.1 = Heading 3
1.1.999. = { LISTNUM LegalDefault \L 3 \S 999 )

The one drawback of the LISTNUM field, shown above, is that with the
LegalDefault style it adds a period after the number and there's no
way to get rid of it. So I guess you'd have to add it to the Heading
styles to make them conform. - Bruce


Stefan Blom said:
You can use the AUTONUMLGL field for this purpose. This field numbers the
built-in headings according to their levels, that is, Heading 1 paragraphs
will be numbered 1, 2, 3, etc, and Heading 2 paragraphs will be numbered
1.1, 1.2, 2.1, 2.2, etc. For non-heading paragraphs, such as paragraphs with
the Normal or Body Text style applied, numbering will include the most
recent heading numbering. For example:

1 Heading 1
1.1 Body Text
1.2 Body Text
2 Heading 1
2.1 Heading 2
2.2 Heading 2
2.2.1 Body Text
2.2.2 Body Text

In order to insert the AUTONUMLGL field, do the following:

1. Press CTRL+F9, which inserts field delimiters {}.

2. Inside these field delimiters, type

AUTONUMLGL \e

3. Click F9 to display the field result. (AUTONUMLGL is one of the fields
that update automatically, so it would be sufficient to press SHIFT+F9,
which toggles between displaying field codes and field result for the
selected field.)

Note that you can copy and paste the field code; you don't have to type it
in more than once.

It's probably possible to automate the insertion of the fields, but for that
you need someone who is more familiar with wildcard searches and/or VBA than
I am.

--
Stefan Blom


netorius77 said:
I need some help to automatically link paragraph numbering in a
specification to the heading number. I am pretty familiar with Styles,
so not looking for the basic "define the paragraph as the next level
Header", and have set up my machine with Shauna Kelly's outline
numbering recomendation. I would prefer not to use header numbering for
the paragraph number for two reasons,
i) I need paragraph numbering under level 1, 2 & 3 Headings ie. first
para may be numbered 2.1 or 2.1.1 or even 2.1.1.1 for example,
depending on what header level it appears under.
ii) I use the Table of contents function in which I do not want to
include paragraphs.
After spending quite a bit of time with outline numbering, I suspect
that I may need to use some kind of inserted field.

To give an example, I am looking to do the following (using defined
styles if possible):

2. *Heading*(Used defined Style, say Heading 1)

2.1 Normal paragraph where I would like to have the "2.1" automatically
numbering the paragraph depending on the level of header above
2.2 Normal paragraph

3. *Heading* (Used defined Style, say Heading 1)

3.1 _Sub_Heading_ (Used defined Style, say Heading 2)

3.1.1 Here again I need the numbering to be automatically linked to the
paragraph number above. I would anticipate to predefine a style of
some kind to use through out my document (which is quite long), so I
don't want to define each paragraph numbering individually/manually.

3.1.2 This para would follow in the sequence from previous.

I am sure there is a way to do it, but at a loss to get it right. Maybe
I should produce the document in Excel in true engineering style ;-)
where I could manage these issues more easily!
:confused:
 
S

Stefan Blom

What you're suggesting is using LISTNUM LegalDefault for numbered body
text paragraphs and style-based numbering for headings? Wouldn't that
produce two separate outline numbering schemes?

--
Stefan Blom


Bruce Brown said:
You might also experiment with the LISTNUM field.

According to Word's Help on the AUTONUMLGL field, "The AUTONUMLGL
field is provided for compatibility with previous versions of
Microsoft Word; it is recommended that you use the LISTNUM field in
place of the AUTONUMLGL field. The LISTNUM field can be incorporated
into numbering from a simple or outline-numbered list, and it can be
inserted anywhere in a paragraph."

The LISTNUM field gives you control over which level you want the
number to be with the \L switch and what the number value is with the
\S switch. Both switches are optional, but you'd probably want the \L
switch:

1. = Heading 1
1.1 = Heading 2
1.1.1 = Heading 3
1.1.999. = { LISTNUM LegalDefault \L 3 \S 999 )

The one drawback of the LISTNUM field, shown above, is that with the
LegalDefault style it adds a period after the number and there's no
way to get rid of it. So I guess you'd have to add it to the Heading
styles to make them conform. - Bruce


"Stefan Blom" <[email protected]> wrote in message
You can use the AUTONUMLGL field for this purpose. This field numbers the
built-in headings according to their levels, that is, Heading 1 paragraphs
will be numbered 1, 2, 3, etc, and Heading 2 paragraphs will be numbered
1.1, 1.2, 2.1, 2.2, etc. For non-heading paragraphs, such as paragraphs with
the Normal or Body Text style applied, numbering will include the most
recent heading numbering. For example:

1 Heading 1
1.1 Body Text
1.2 Body Text
2 Heading 1
2.1 Heading 2
2.2 Heading 2
2.2.1 Body Text
2.2.2 Body Text

In order to insert the AUTONUMLGL field, do the following:

1. Press CTRL+F9, which inserts field delimiters {}.

2. Inside these field delimiters, type

AUTONUMLGL \e

3. Click F9 to display the field result. (AUTONUMLGL is one of the fields
that update automatically, so it would be sufficient to press SHIFT+F9,
which toggles between displaying field codes and field result for the
selected field.)

Note that you can copy and paste the field code; you don't have to type it
in more than once.

It's probably possible to automate the insertion of the fields, but for that
you need someone who is more familiar with wildcard searches and/or VBA than
I am.

--
Stefan Blom


"netorius77" <[email protected]> skrev i meddelandet
I need some help to automatically link paragraph numbering in a
specification to the heading number. I am pretty familiar with Styles,
so not looking for the basic "define the paragraph as the next level
Header", and have set up my machine with Shauna Kelly's outline
numbering recomendation. I would prefer not to use header numbering for
the paragraph number for two reasons,
i) I need paragraph numbering under level 1, 2 & 3 Headings ie. first
para may be numbered 2.1 or 2.1.1 or even 2.1.1.1 for example,
depending on what header level it appears under.
ii) I use the Table of contents function in which I do not want to
include paragraphs.
After spending quite a bit of time with outline numbering, I suspect
that I may need to use some kind of inserted field.

To give an example, I am looking to do the following (using defined
styles if possible):

2. *Heading*(Used defined Style, say Heading 1)

2.1 Normal paragraph where I would like to have the "2.1" automatically
numbering the paragraph depending on the level of header above
2.2 Normal paragraph

3. *Heading* (Used defined Style, say Heading 1)

3.1 _Sub_Heading_ (Used defined Style, say Heading 2)

3.1.1 Here again I need the numbering to be automatically linked to the
paragraph number above. I would anticipate to predefine a style of
some kind to use through out my document (which is quite long), so I
don't want to define each paragraph numbering individually/manually.

3.1.2 This para would follow in the sequence from previous.

I am sure there is a way to do it, but at a loss to get it right. Maybe
I should produce the document in Excel in true engineering style ;-)
where I could manage these issues more easily!
:confused:
 
B

Bruce Brown

Hi, Stefan -

No, it wouldn't.

LISTNUM is like a chameleon. The whole idea behind it is to continue
numbering from whatever level of whatever list template it immediately
follows.

Sometimes that's a blessing, sometimes it's not, because a *blank*
LISTNUM field is entirely at the mercy of what comes before it. If
the paragraph before the LISTNUM field happens to be in a bulleted
style, then LISTNUM will give you a bullet -- instead of the number
you want.

However, LISTNUM has two optional switches and one optional
instruction that give you maximum control over list template
numbering, unavailable by any other means:

\L = level
\S = start value
MyListTemplate = name of named list template

If A,B,C is the style of the fifth level in your list template, and C
is the last number to appear, then . . .

{ LISTNUM \L 5 } = D

If you wanted to restart the the fifth level at AA, then . . .

{ LISTNUM \L 5 \S 27 ) = AA

But wait, it gets more precise than that. If you have *multiple*
outline numbered list templates in one document, and each is named at
the bottom of the Customize dialog, then you can specify which list
template to use . . .

( LISTNUM MyLegalListTemplate \L 1 \S 999 } = ARTICLE CMXCIX
{ LISTNUM MyTechSpecsListTemplate \L 7 \S 999 } = 13.7.2.9.4.1.999

The only thing LISTNUM won't let you change is the numbering style
because it uses only those styles found in the list template it's
continuing. That's one huge difference between the LISTNUM and SEQ
fields. Three other differences:

* You don't have to update LISTNUM fields;
* You don't have to name LISTNUM fields; and
* LISTNUM fields never give error messages.

Although LISTNUM is interchangeable with numbering from any list
template -- including single level numbering like the List Number
styles -- its primary uses are:

* to do the next level up on the same line, when it follows a numbered
style:

3.4 { LISTNUM } = 3.4 (a)

* to substitute for a numbered style when that paragraph doesn't have
a subheading and you don't want it to appear in the table of contents:

(a) Technical Specifications.
(b) Timetable.
{ LISTNUM } In some instances the project can be delayed.

becomes (a) Technical Specifications.
(b) Timetable.
{c} In some instances the project can be delayed.

Only (a) and (b) above will appear in the Table of Contents.

One other thing: LISTNUM has three list templates of its own. They
are:

LegalDefault, NumberDefault and OutlineDefault. But beware -- they
are actually belong to the *same* list template!

In my opinion LISTNUM is fabulous for restarting too because it
doesn't create any unwanted, extra list templates. A foolproof way of
restarting any list is to put a hidden LISTNUM field at the end of the
previous paragraph like this:

Single level lists: { LISTNUM \S 0 )
Outline numbered lists: { LISTNUM \L 5 \S 0 }

The next occurrence of the style will be number 1. - Bruce


Stefan Blom said:
What you're suggesting is using LISTNUM LegalDefault for numbered body
text paragraphs and style-based numbering for headings? Wouldn't that
produce two separate outline numbering schemes?

--
Stefan Blom


Bruce Brown said:
You might also experiment with the LISTNUM field.

According to Word's Help on the AUTONUMLGL field, "The AUTONUMLGL
field is provided for compatibility with previous versions of
Microsoft Word; it is recommended that you use the LISTNUM field in
place of the AUTONUMLGL field. The LISTNUM field can be incorporated
into numbering from a simple or outline-numbered list, and it can be
inserted anywhere in a paragraph."

The LISTNUM field gives you control over which level you want the
number to be with the \L switch and what the number value is with the
\S switch. Both switches are optional, but you'd probably want the \L
switch:

1. = Heading 1
1.1 = Heading 2
1.1.1 = Heading 3
1.1.999. = { LISTNUM LegalDefault \L 3 \S 999 )

The one drawback of the LISTNUM field, shown above, is that with the
LegalDefault style it adds a period after the number and there's no
way to get rid of it. So I guess you'd have to add it to the Heading
styles to make them conform. - Bruce


"Stefan Blom" <[email protected]> wrote in message
You can use the AUTONUMLGL field for this purpose. This field numbers the
built-in headings according to their levels, that is, Heading 1 paragraphs
will be numbered 1, 2, 3, etc, and Heading 2 paragraphs will be numbered
1.1, 1.2, 2.1, 2.2, etc. For non-heading paragraphs, such as paragraphs with
the Normal or Body Text style applied, numbering will include the most
recent heading numbering. For example:

1 Heading 1
1.1 Body Text
1.2 Body Text
2 Heading 1
2.1 Heading 2
2.2 Heading 2
2.2.1 Body Text
2.2.2 Body Text

In order to insert the AUTONUMLGL field, do the following:

1. Press CTRL+F9, which inserts field delimiters {}.

2. Inside these field delimiters, type

AUTONUMLGL \e

3. Click F9 to display the field result. (AUTONUMLGL is one of the fields
that update automatically, so it would be sufficient to press SHIFT+F9,
which toggles between displaying field codes and field result for the
selected field.)

Note that you can copy and paste the field code; you don't have to type it
in more than once.

It's probably possible to automate the insertion of the fields, but for that
you need someone who is more familiar with wildcard searches and/or VBA than
I am.

--
Stefan Blom


"netorius77" <[email protected]> skrev i meddelandet

I need some help to automatically link paragraph numbering in a
specification to the heading number. I am pretty familiar with Styles,
so not looking for the basic "define the paragraph as the next level
Header", and have set up my machine with Shauna Kelly's outline
numbering recomendation. I would prefer not to use header numbering for
the paragraph number for two reasons,
i) I need paragraph numbering under level 1, 2 & 3 Headings ie. first
para may be numbered 2.1 or 2.1.1 or even 2.1.1.1 for example,
depending on what header level it appears under.
ii) I use the Table of contents function in which I do not want to
include paragraphs.
After spending quite a bit of time with outline numbering, I suspect
that I may need to use some kind of inserted field.

To give an example, I am looking to do the following (using defined
styles if possible):

2. *Heading*(Used defined Style, say Heading 1)

2.1 Normal paragraph where I would like to have the "2.1" automatically
numbering the paragraph depending on the level of header above
2.2 Normal paragraph

3. *Heading* (Used defined Style, say Heading 1)

3.1 _Sub_Heading_ (Used defined Style, say Heading 2)

3.1.1 Here again I need the numbering to be automatically linked to the
paragraph number above. I would anticipate to predefine a style of
some kind to use through out my document (which is quite long), so I
don't want to define each paragraph numbering individually/manually.

3.1.2 This para would follow in the sequence from previous.

I am sure there is a way to do it, but at a loss to get it right. Maybe
I should produce the document in Excel in true engineering style ;-)
where I could manage these issues more easily!
:confused:
 
J

John McGhie [MVP - Word]

That's simple standard Outline numbering. You simply define your Heading 3
or whatever style to look like a text paragraph instead of a heading.

It's conceptually naughty, but it works fine. Where you may run into
trouble is if you want a Level 2 body text paragraph and a level four body
text paragraph looking exactly the same.

You can do one of two things:

1) decide what the lowest level of heading is going to be, then make your
body text paragraph the Heading style below that: so Heading 4 if you are
going to use Headings 1, 2 and 3 for headings.

2) Use ListNum fields as described by the other posters.

If you can force your Outline numbering to do what you want, as described by
Shauna, that's the best method, because Outline numbering is stable and
automatic. You MUST use the built-in Heading 1 through Heading 9 styles
exactly as described by Shauna.

Once you get used to ListNum fields, they are easy and very stable.
However, it's a bad idea to use them in a document that is going to be
edited by someone else because they won;t know how to use them and they will
mess things up for you.

Shauna's articles go on to show you how to remove the counters from Outline
Numbering definitions: just because you are using a Heading 4 does not mean
you have to print all four levels of numbering: you can take some out once
you understand the process.

Hope this helps


from said:
I need some help to automatically link paragraph numbering in a
specification to the heading number. I am pretty familiar with Styles,
so not looking for the basic "define the paragraph as the next level
Header", and have set up my machine with Shauna Kelly's outline
numbering recomendation. I would prefer not to use header numbering for
the paragraph number for two reasons,
i) I need paragraph numbering under level 1, 2 & 3 Headings ie. first
para may be numbered 2.1 or 2.1.1 or even 2.1.1.1 for example,
depending on what header level it appears under.
ii) I use the Table of contents function in which I do not want to
include paragraphs.
After spending quite a bit of time with outline numbering, I suspect
that I may need to use some kind of inserted field.

To give an example, I am looking to do the following (using defined
styles if possible):

2. *Heading*(Used defined Style, say Heading 1)

2.1 Normal paragraph where I would like to have the "2.1" automatically
numbering the paragraph depending on the level of header above
2.2 Normal paragraph

3. *Heading* (Used defined Style, say Heading 1)

3.1 _Sub_Heading_ (Used defined Style, say Heading 2)

3.1.1 Here again I need the numbering to be automatically linked to the
paragraph number above. I would anticipate to predefine a style of
some kind to use through out my document (which is quite long), so I
don't want to define each paragraph numbering individually/manually.

3.1.2 This para would follow in the sequence from previous.

I am sure there is a way to do it, but at a loss to get it right. Maybe
I should produce the document in Excel in true engineering style ;-)
where I could manage these issues more easily!
:confused:

--

Please respond only to the newsgroup to preserve the thread.

John McGhie, Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. GMT + 10 Hrs
+61 4 1209 1410, mailto:[email protected]
 
S

Stefan Blom

Yes, a blank LISTNUM field -- such as { LISTNUM } -- continues
numbering of the previous numbered or bulleted list, but in your
original message I got the impression that you meant that { LISTNUM
LegalDefault } would continue the numbering of a style-based numbering
scheme, which is contrary to my experience. Clearly this was a simple
misunderstanding on my part. (I am aware of the fact that naming a
list template from the user interface or VBA allows it to be re-used
in a LISTNUM field.)

--
Stefan Blom


Bruce Brown said:
Hi, Stefan -

No, it wouldn't.

LISTNUM is like a chameleon. The whole idea behind it is to continue
numbering from whatever level of whatever list template it immediately
follows.

Sometimes that's a blessing, sometimes it's not, because a *blank*
LISTNUM field is entirely at the mercy of what comes before it. If
the paragraph before the LISTNUM field happens to be in a bulleted
style, then LISTNUM will give you a bullet -- instead of the number
you want.

However, LISTNUM has two optional switches and one optional
instruction that give you maximum control over list template
numbering, unavailable by any other means:

\L = level
\S = start value
MyListTemplate = name of named list template

If A,B,C is the style of the fifth level in your list template, and C
is the last number to appear, then . . .

{ LISTNUM \L 5 } = D

If you wanted to restart the the fifth level at AA, then . . .

{ LISTNUM \L 5 \S 27 ) = AA

But wait, it gets more precise than that. If you have *multiple*
outline numbered list templates in one document, and each is named at
the bottom of the Customize dialog, then you can specify which list
template to use . . .

( LISTNUM MyLegalListTemplate \L 1 \S 999 } = ARTICLE CMXCIX
{ LISTNUM MyTechSpecsListTemplate \L 7 \S 999 } = 13.7.2.9.4.1.999

The only thing LISTNUM won't let you change is the numbering style
because it uses only those styles found in the list template it's
continuing. That's one huge difference between the LISTNUM and SEQ
fields. Three other differences:

* You don't have to update LISTNUM fields;
* You don't have to name LISTNUM fields; and
* LISTNUM fields never give error messages.

Although LISTNUM is interchangeable with numbering from any list
template -- including single level numbering like the List Number
styles -- its primary uses are:

* to do the next level up on the same line, when it follows a numbered
style:

3.4 { LISTNUM } = 3.4 (a)

* to substitute for a numbered style when that paragraph doesn't have
a subheading and you don't want it to appear in the table of contents:

(a) Technical Specifications.
(b) Timetable.
{ LISTNUM } In some instances the project can be delayed.

becomes (a) Technical Specifications.
(b) Timetable.
{c} In some instances the project can be delayed.

Only (a) and (b) above will appear in the Table of Contents.

One other thing: LISTNUM has three list templates of its own. They
are:

LegalDefault, NumberDefault and OutlineDefault. But beware -- they
are actually belong to the *same* list template!

In my opinion LISTNUM is fabulous for restarting too because it
doesn't create any unwanted, extra list templates. A foolproof way of
restarting any list is to put a hidden LISTNUM field at the end of the
previous paragraph like this:

Single level lists: { LISTNUM \S 0 )
Outline numbered lists: { LISTNUM \L 5 \S 0 }

The next occurrence of the style will be number 1. - Bruce


"Stefan Blom" <[email protected]> wrote in message
What you're suggesting is using LISTNUM LegalDefault for numbered body
text paragraphs and style-based numbering for headings? Wouldn't that
produce two separate outline numbering schemes?

--
Stefan Blom


Bruce Brown said:
You might also experiment with the LISTNUM field.

According to Word's Help on the AUTONUMLGL field, "The AUTONUMLGL
field is provided for compatibility with previous versions of
Microsoft Word; it is recommended that you use the LISTNUM field in
place of the AUTONUMLGL field. The LISTNUM field can be incorporated
into numbering from a simple or outline-numbered list, and it can be
inserted anywhere in a paragraph."

The LISTNUM field gives you control over which level you want the
number to be with the \L switch and what the number value is
with
the
\S switch. Both switches are optional, but you'd probably want
the
\L
switch:

1. = Heading 1
1.1 = Heading 2
1.1.1 = Heading 3
1.1.999. = { LISTNUM LegalDefault \L 3 \S 999 )

The one drawback of the LISTNUM field, shown above, is that with the
LegalDefault style it adds a period after the number and there's no
way to get rid of it. So I guess you'd have to add it to the Heading
styles to make them conform. - Bruce


"Stefan Blom" <[email protected]> wrote in message
You can use the AUTONUMLGL field for this purpose. This field numbers the
built-in headings according to their levels, that is, Heading
1
paragraphs
will be numbered 1, 2, 3, etc, and Heading 2 paragraphs will
be
numbered
1.1, 1.2, 2.1, 2.2, etc. For non-heading paragraphs, such as paragraphs with
the Normal or Body Text style applied, numbering will include
the
most
recent heading numbering. For example:

1 Heading 1
1.1 Body Text
1.2 Body Text
2 Heading 1
2.1 Heading 2
2.2 Heading 2
2.2.1 Body Text
2.2.2 Body Text

In order to insert the AUTONUMLGL field, do the following:

1. Press CTRL+F9, which inserts field delimiters {}.

2. Inside these field delimiters, type

AUTONUMLGL \e

3. Click F9 to display the field result. (AUTONUMLGL is one of
the
fields
that update automatically, so it would be sufficient to press SHIFT+F9,
which toggles between displaying field codes and field result
for
the
selected field.)

Note that you can copy and paste the field code; you don't
have to
type it
in more than once.

It's probably possible to automate the insertion of the
fields,
but for that
you need someone who is more familiar with wildcard searches and/or VBA than
I am.

--
Stefan Blom


"netorius77" <[email protected]> skrev i meddelandet

I need some help to automatically link paragraph numbering in a
specification to the heading number. I am pretty familiar
with
Styles,
so not looking for the basic "define the paragraph as the
next
level
Header", and have set up my machine with Shauna Kelly's outline
numbering recomendation. I would prefer not to use header numbering for
the paragraph number for two reasons,
i) I need paragraph numbering under level 1, 2 & 3 Headings
ie.
first
para may be numbered 2.1 or 2.1.1 or even 2.1.1.1 for example,
depending on what header level it appears under.
ii) I use the Table of contents function in which I do not
want
to
include paragraphs.
After spending quite a bit of time with outline numbering, I suspect
that I may need to use some kind of inserted field.

To give an example, I am looking to do the following (using defined
styles if possible):

2. *Heading*(Used defined Style, say Heading 1)

2.1 Normal paragraph where I would like to have the "2.1" automatically
numbering the paragraph depending on the level of header above
2.2 Normal paragraph

3. *Heading* (Used defined Style, say Heading 1)

3.1 _Sub_Heading_ (Used defined Style, say Heading 2)

3.1.1 Here again I need the numbering to be automatically
linked
to the
paragraph number above. I would anticipate to predefine a
style
of
some kind to use through out my document (which is quite
long),
so I
don't want to define each paragraph numbering individually/manually.

3.1.2 This para would follow in the sequence from previous.

I am sure there is a way to do it, but at a loss to get it right. Maybe
I should produce the document in Excel in true engineering
style
;-)
where I could manage these issues more easily!
:confused:
 
B

Bruce Brown

I'm sorry about my first post, Stefan. You're right -- it should've
been a blank LISTNUM field instead of a LegalDefault one, which, as
you correctly pointed out, will "produce two separate outline
numbering schemes." Apologies.


Stefan Blom said:
Yes, a blank LISTNUM field -- such as { LISTNUM } -- continues
numbering of the previous numbered or bulleted list, but in your
original message I got the impression that you meant that { LISTNUM
LegalDefault } would continue the numbering of a style-based numbering
scheme, which is contrary to my experience. Clearly this was a simple
misunderstanding on my part. (I am aware of the fact that naming a
list template from the user interface or VBA allows it to be re-used
in a LISTNUM field.)

--
Stefan Blom


Bruce Brown said:
Hi, Stefan -

No, it wouldn't.

LISTNUM is like a chameleon. The whole idea behind it is to continue
numbering from whatever level of whatever list template it immediately
follows.

Sometimes that's a blessing, sometimes it's not, because a *blank*
LISTNUM field is entirely at the mercy of what comes before it. If
the paragraph before the LISTNUM field happens to be in a bulleted
style, then LISTNUM will give you a bullet -- instead of the number
you want.

However, LISTNUM has two optional switches and one optional
instruction that give you maximum control over list template
numbering, unavailable by any other means:

\L = level
\S = start value
MyListTemplate = name of named list template

If A,B,C is the style of the fifth level in your list template, and C
is the last number to appear, then . . .

{ LISTNUM \L 5 } = D

If you wanted to restart the the fifth level at AA, then . . .

{ LISTNUM \L 5 \S 27 ) = AA

But wait, it gets more precise than that. If you have *multiple*
outline numbered list templates in one document, and each is named at
the bottom of the Customize dialog, then you can specify which list
template to use . . .

( LISTNUM MyLegalListTemplate \L 1 \S 999 } = ARTICLE CMXCIX
{ LISTNUM MyTechSpecsListTemplate \L 7 \S 999 } = 13.7.2.9.4.1.999

The only thing LISTNUM won't let you change is the numbering style
because it uses only those styles found in the list template it's
continuing. That's one huge difference between the LISTNUM and SEQ
fields. Three other differences:

* You don't have to update LISTNUM fields;
* You don't have to name LISTNUM fields; and
* LISTNUM fields never give error messages.

Although LISTNUM is interchangeable with numbering from any list
template -- including single level numbering like the List Number
styles -- its primary uses are:

* to do the next level up on the same line, when it follows a numbered
style:

3.4 { LISTNUM } = 3.4 (a)

* to substitute for a numbered style when that paragraph doesn't have
a subheading and you don't want it to appear in the table of contents:

(a) Technical Specifications.
(b) Timetable.
{ LISTNUM } In some instances the project can be delayed.

becomes (a) Technical Specifications.
(b) Timetable.
{c} In some instances the project can be delayed.

Only (a) and (b) above will appear in the Table of Contents.

One other thing: LISTNUM has three list templates of its own. They
are:

LegalDefault, NumberDefault and OutlineDefault. But beware -- they
are actually belong to the *same* list template!

In my opinion LISTNUM is fabulous for restarting too because it
doesn't create any unwanted, extra list templates. A foolproof way of
restarting any list is to put a hidden LISTNUM field at the end of the
previous paragraph like this:

Single level lists: { LISTNUM \S 0 )
Outline numbered lists: { LISTNUM \L 5 \S 0 }

The next occurrence of the style will be number 1. - Bruce


"Stefan Blom" <[email protected]> wrote in message
What you're suggesting is using LISTNUM LegalDefault for numbered body
text paragraphs and style-based numbering for headings? Wouldn't that
produce two separate outline numbering schemes?

--
Stefan Blom


"Bruce Brown" <[email protected]> skrev i meddelandet
You might also experiment with the LISTNUM field.

According to Word's Help on the AUTONUMLGL field, "The AUTONUMLGL
field is provided for compatibility with previous versions of
Microsoft Word; it is recommended that you use the LISTNUM field in
place of the AUTONUMLGL field. The LISTNUM field can be incorporated
into numbering from a simple or outline-numbered list, and it can be
inserted anywhere in a paragraph."

The LISTNUM field gives you control over which level you want the
number to be with the \L switch and what the number value is
with
the
\S switch. Both switches are optional, but you'd probably want
the
\L
switch:

1. = Heading 1
1.1 = Heading 2
1.1.1 = Heading 3
1.1.999. = { LISTNUM LegalDefault \L 3 \S 999 )

The one drawback of the LISTNUM field, shown above, is that with the
LegalDefault style it adds a period after the number and there's no
way to get rid of it. So I guess you'd have to add it to the Heading
styles to make them conform. - Bruce


"Stefan Blom" <[email protected]> wrote in message
You can use the AUTONUMLGL field for this purpose. This field numbers the
built-in headings according to their levels, that is, Heading
1
paragraphs
will be numbered 1, 2, 3, etc, and Heading 2 paragraphs will
be
numbered
1.1, 1.2, 2.1, 2.2, etc. For non-heading paragraphs, such as paragraphs with
the Normal or Body Text style applied, numbering will include
the
most
recent heading numbering. For example:

1 Heading 1
1.1 Body Text
1.2 Body Text
2 Heading 1
2.1 Heading 2
2.2 Heading 2
2.2.1 Body Text
2.2.2 Body Text

In order to insert the AUTONUMLGL field, do the following:

1. Press CTRL+F9, which inserts field delimiters {}.

2. Inside these field delimiters, type

AUTONUMLGL \e

3. Click F9 to display the field result. (AUTONUMLGL is one of
the
fields
that update automatically, so it would be sufficient to press SHIFT+F9,
which toggles between displaying field codes and field result
for
the
selected field.)

Note that you can copy and paste the field code; you don't

have to
type itfields,
but for that
with
Styles, next
level ie.
first want
to
linked
to the
long),
so I
style
;-)
 
S

Stefan Blom

Apology accepted ;-)

--
Stefan Blom


Bruce Brown said:
I'm sorry about my first post, Stefan. You're right -- it should've
been a blank LISTNUM field instead of a LegalDefault one, which, as
you correctly pointed out, will "produce two separate outline
numbering schemes." Apologies.


"Stefan Blom" <[email protected]> wrote in message
Yes, a blank LISTNUM field -- such as { LISTNUM } -- continues
numbering of the previous numbered or bulleted list, but in your
original message I got the impression that you meant that { LISTNUM
LegalDefault } would continue the numbering of a style-based numbering
scheme, which is contrary to my experience. Clearly this was a simple
misunderstanding on my part. (I am aware of the fact that naming a
list template from the user interface or VBA allows it to be re-used
in a LISTNUM field.)

--
Stefan Blom


Bruce Brown said:
Hi, Stefan -

No, it wouldn't.

LISTNUM is like a chameleon. The whole idea behind it is to continue
numbering from whatever level of whatever list template it immediately
follows.

Sometimes that's a blessing, sometimes it's not, because a *blank*
LISTNUM field is entirely at the mercy of what comes before it. If
the paragraph before the LISTNUM field happens to be in a bulleted
style, then LISTNUM will give you a bullet -- instead of the number
you want.

However, LISTNUM has two optional switches and one optional
instruction that give you maximum control over list template
numbering, unavailable by any other means:

\L = level
\S = start value
MyListTemplate = name of named list template

If A,B,C is the style of the fifth level in your list template,
and
C
is the last number to appear, then . . .

{ LISTNUM \L 5 } = D

If you wanted to restart the the fifth level at AA, then . . .

{ LISTNUM \L 5 \S 27 ) = AA

But wait, it gets more precise than that. If you have *multiple*
outline numbered list templates in one document, and each is
named
at
the bottom of the Customize dialog, then you can specify which list
template to use . . .

( LISTNUM MyLegalListTemplate \L 1 \S 999 } = ARTICLE CMXCIX
{ LISTNUM MyTechSpecsListTemplate \L 7 \S 999 } = 13.7.2.9.4.1.999

The only thing LISTNUM won't let you change is the numbering style
because it uses only those styles found in the list template it's
continuing. That's one huge difference between the LISTNUM and SEQ
fields. Three other differences:

* You don't have to update LISTNUM fields;
* You don't have to name LISTNUM fields; and
* LISTNUM fields never give error messages.

Although LISTNUM is interchangeable with numbering from any list
template -- including single level numbering like the List Number
styles -- its primary uses are:

* to do the next level up on the same line, when it follows a numbered
style:

3.4 { LISTNUM } = 3.4 (a)

* to substitute for a numbered style when that paragraph doesn't have
a subheading and you don't want it to appear in the table of contents:

(a) Technical Specifications.
(b) Timetable.
{ LISTNUM } In some instances the project can be delayed.

becomes (a) Technical Specifications.
(b) Timetable.
{c} In some instances the project can be delayed.

Only (a) and (b) above will appear in the Table of Contents.

One other thing: LISTNUM has three list templates of its own. They
are:

LegalDefault, NumberDefault and OutlineDefault. But beware -- they
are actually belong to the *same* list template!

In my opinion LISTNUM is fabulous for restarting too because it
doesn't create any unwanted, extra list templates. A foolproof
way
of
restarting any list is to put a hidden LISTNUM field at the end
of
the
previous paragraph like this:

Single level lists: { LISTNUM \S 0 )
Outline numbered lists: { LISTNUM \L 5 \S 0 }

The next occurrence of the style will be number 1. - Bruce


"Stefan Blom" <[email protected]> wrote in message
What you're suggesting is using LISTNUM LegalDefault for
numbered
body
text paragraphs and style-based numbering for headings?
Wouldn't
that
produce two separate outline numbering schemes?

--
Stefan Blom


"Bruce Brown" <[email protected]> skrev i meddelandet
You might also experiment with the LISTNUM field.

According to Word's Help on the AUTONUMLGL field, "The AUTONUMLGL
field is provided for compatibility with previous versions of
Microsoft Word; it is recommended that you use the LISTNUM
field
in
place of the AUTONUMLGL field. The LISTNUM field can be incorporated
into numbering from a simple or outline-numbered list, and
it
can be
inserted anywhere in a paragraph."

The LISTNUM field gives you control over which level you
want
the
number to be with the \L switch and what the number value is with
the
\S switch. Both switches are optional, but you'd probably
want
the
\L
switch:

1. = Heading 1
1.1 = Heading 2
1.1.1 = Heading 3
1.1.999. = { LISTNUM LegalDefault \L 3 \S 999 )

The one drawback of the LISTNUM field, shown above, is that
with
the
LegalDefault style it adds a period after the number and
there's
no
way to get rid of it. So I guess you'd have to add it to
the
Heading
styles to make them conform. - Bruce


"Stefan Blom" <[email protected]> wrote in message
You can use the AUTONUMLGL field for this purpose. This
field
numbers the
built-in headings according to their levels, that is,
Heading
1
paragraphs
will be numbered 1, 2, 3, etc, and Heading 2 paragraphs
will
be
numbered
1.1, 1.2, 2.1, 2.2, etc. For non-heading paragraphs, such
as
paragraphs with
the Normal or Body Text style applied, numbering will
include
the
most
recent heading numbering. For example:

1 Heading 1
1.1 Body Text
1.2 Body Text
2 Heading 1
2.1 Heading 2
2.2 Heading 2
2.2.1 Body Text
2.2.2 Body Text

In order to insert the AUTONUMLGL field, do the following:

1. Press CTRL+F9, which inserts field delimiters {}.

2. Inside these field delimiters, type

AUTONUMLGL \e

3. Click F9 to display the field result. (AUTONUMLGL is
one of
the
fields
that update automatically, so it would be sufficient to
press
SHIFT+F9,
which toggles between displaying field codes and field
result
for
the
selected field.)

Note that you can copy and paste the field code; you don't

have to
type it
in more than once.

It's probably possible to automate the insertion of the
fields,
but for that
you need someone who is more familiar with wildcard
searches
and/or VBA than
I am.

--
Stefan Blom


"netorius77" <[email protected]>
skrev i
meddelandet
I need some help to automatically link paragraph
numbering
in a
specification to the heading number. I am pretty
familiar
with
Styles,
so not looking for the basic "define the paragraph as
the
next
level
Header", and have set up my machine with Shauna Kelly's outline
numbering recomendation. I would prefer not to use
header
numbering for
the paragraph number for two reasons,
i) I need paragraph numbering under level 1, 2 & 3
Headings
ie.
first
para may be numbered 2.1 or 2.1.1 or even 2.1.1.1 for example,
depending on what header level it appears under.
ii) I use the Table of contents function in which I do
not
want
to
include paragraphs.
After spending quite a bit of time with outline
numbering, I
suspect
that I may need to use some kind of inserted field.

To give an example, I am looking to do the following
(using
defined
styles if possible):

2. *Heading*(Used defined Style, say Heading 1)

2.1 Normal paragraph where I would like to have the
"2.1"
automatically
numbering the paragraph depending on the level of header above
2.2 Normal paragraph

3. *Heading* (Used defined Style, say Heading 1)

3.1 _Sub_Heading_ (Used defined Style, say Heading 2)

3.1.1 Here again I need the numbering to be
automatically
linked
to the
paragraph number above. I would anticipate to predefine
a
style
of
some kind to use through out my document (which is quite
long),
so I
don't want to define each paragraph numbering individually/manually.

3.1.2 This para would follow in the sequence from previous.

I am sure there is a way to do it, but at a loss to get
it
right. Maybe
I should produce the document in Excel in true
engineering
style
;-)
where I could manage these issues more easily!
:confused:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top