I need ten headings instead of nine

  • Thread starter Susanne_Kirkegaard
  • Start date
S

Susanne_Kirkegaard

Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Hi
I am currently working on a document where the headings have to have different names, see below:
G.1
G1.1
B.1
B.1.1
CM.1
CM.1.1
CL.1
CL.1.1
GL.1
GL.1.1

Can make it all fit until the last one, then I am missing one heading to make this kind of formatting.
Is there any tricks to doing this??
 
C

CyberTaz

You're not limited to 9 *Headings*, you can have as many as you need. What
is restricted is the number of *Heading Levels* based on outlining
structure. In your example, the "Headings" followed by the number 1 would
all be Level 1 Headings, those followed by 1.1 would all be Level 2 Headings
within those respective Level 1s. So IOW your example only requires 2 of the
9 levels that are avilable.
 
J

John McGhie

Yeah, no, I can see her problem: She wants to auto-number the bit after
"GL". She needs to use field-based numbering for that.

As Bob says, you DON'T have ten levels of heading, you have only THREE
levels, but you have ten "kinds".

The issue you have is that your highest level "number" is the alphabetic
"identifier": for example "G" or "CL". Which is not a number. The actual
number is not printed.

Now, field-based numbering is tricky to learn and to set up. If you really
have only ten headings, I would simply type the numbers: it's much quicker.

But if we're talking about a 500-page catalogue here, then you do need
automatic numbering.

Before you begin, you need to apply styles Heading 1, Heading 2, and Heading
3 to your headings to make this work. (Must be those styles, no others).
REMOVE the Outline numbering from your heading styles.

There are two kinds of field that you can use, the LISTNUM and the SEQ
field. They forgot to include either of them in the Word 2008 Help
(extremely poor help makes Word 2008 appear a lot worse than it actually
is...) :)

A LISTNUM field will produce numbering like this:
G.1
G1.1
B.2
B.2.1
CM.3
CM.3.1
CL.4
CL.4.1
GL.5
GL.5.1

Notice that the top-level number (the first digit in the heading) increments
each time we see a new Heading 1. If that's OK, it's far simpler than the
SEQ field series.

A SEQ field will produce any kind of numbering you like. Greg Maxey has an
excellent tutorial here, but not all of it will work in Mac Word
http://gregmaxey.mvps.org/SEQ_Field_Numbering.htm

Microsoft has a more expansive explanation here:
http://office.microsoft.com/en-us/word/HP051861901033.aspx
(You may need to go for that page with Safari, Microsoft appears to be
blocking FireFox this morning...)

In your case you need to put the following in front of each Heading 1
heading:
ID{SEQ Head1 \s1}.

The curly braces are field bounding characters: use Control + F9 to insert
them, you cannot type them.

Before each Level 2 (Heading 2) heading, you need:
ID{SEQ Head1 \c}.{SEQ Head2 \s1}

And before each Level 3 you need:
ID{SEQ Head1 \c}.{SEQ Head2 \c}.{SEQ Head3 /s2}.

In each case, "ID" stands simply for the characters you type: e.g. "CM" or
"BL". The series of SEQ fields goes in after that.

We make three series of SEQ fields: "Head1", "Head2" and "Head3". Each is
set to restart whenever a higher-level heading appears in the document:
that's what the "\s2" switch does.

For heading 1s, we need only {SEQ Head1 \s1} because we are not going to
print any others. But we need it to restart at "1" each Heading 1.

For Heading 2s, we need {SEQ Head1 \c}.{SEQ Head2 \s2} -- the Head1 SEQ
field simply repeats the number from its predecessor, the Head2 SEQ field
restarts at "1" after each Heading 1.

For Heading 3s, we need three fields: {SEQ Head1 \c}.{SEQ Head2 \c}.{SEQ
Head3 /s2}. The first two simply repeat the previous numbers, the third
generates a new number which it restarts at 1 after each Heading 2.

Study the articles I referred you to, and play until this drops in. It
enables you to create any kind of numbering you like.

Caution: SEQ fields are "cold" fields: they will update only if you
explicitly update them. Select all text in the document, and press F9 to do
that.

Use ListNum fields if you can: they are hot fields, they update
automatically.

Hope this helps


You're not limited to 9 *Headings*, you can have as many as you need. What
is restricted is the number of *Heading Levels* based on outlining
structure. In your example, the "Headings" followed by the number 1 would
all be Level 1 Headings, those followed by 1.1 would all be Level 2 Headings
within those respective Level 1s. So IOW your example only requires 2 of the
9 levels that are avilable.

This email is my business email -- Please do not email me about forum
matters unless you intend to pay!

--

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:[email protected]
 
S

Susanne_Kirkegaard

Hi John

You are on to what I mean, and the first option is not what I want, so is going, to try the second option you listed.
thank you so much, will get back to you, if I have any problems.
Thanks a lot!
 
J

John McGhie

Aaaarrrggghhhh...

I included a "deliberate mistake" to see if you were all paying attention
:)

The Level 3 should be:
ID{SEQ Head1 \c}.{SEQ Head2 \c}.{SEQ Head3 \s2}.

Not:
ID{SEQ Head1 \c}.{SEQ Head2 \c}.{SEQ Head3 /s2}.

Back-slashes for field switches, not forward slashes. {Blush}

And note the "principle" involved: the SEQs all:

* Reset on the occurrence of the one higher than themselves,
* Continue the higher, and increment their own level.

So Heading 1 Resets (always)

Heading 2 Resets on 1, Continues 1, and increments 2

Heading 3 Resets on 2, Continues 1 and 2, and increments 3.

Certain deeply-disturbed people get a lot of fun playing with fields: they
are an extremely powerful mechanism. The upside is you can have any kind of
numbering you like, and it's rock-solid stable across all versions of Word.
The downside is that it requires substantial brain-work to get it to go.

Cheers

Hi John

You are on to what I mean, and the first option is not what I want, so is
going, to try the second option you listed.
thank you so much, will get back to you, if I have any problems.
Thanks a lot!

This email is my business email -- Please do not email me about forum
matters unless you intend to pay!

--

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:[email protected]
 
S

Susanne_Kirkegaard

Hi John
You did not get my other message??
My Mac wont do {SEQ} when I press control+ F9, any help on that. seems a bit basic to actual do the whole thing...
Cant figure out where else it could be

Suanne
 
S

Susanne_Kirkegaard

Hi John

I tried what you said. Found the {SEQ} i another document and copied it..
But but but..
Now the numbering comes out like this, when I try what you said.
G.1
G.1.1
G.2.2
G.3.3
And I want it to do like this
G.1
G.1.1
G.1.2
G.1.3
Can make it do it, but then I have to do like this:

ID{SEQ Head1 \s1}.
ID{SEQ Head2 \c}.{SEQ Head2 \s1}
ID{SEQ Head3 \c}.{SEQ Head2 \s1}
ID{SEQ Head4 \c}.{SEQ Head2 \s1}
Which takes all kind of practicality form it.. is there another solutions?
Because this means i have to write in front of all, and cant do automatic updates, but have to change each one, id I out in an extra heading..

ANd cant find much help in the two docs you send me.

Best
susanne
 
J

John McGhie

Hi Suzanne:

I gave you the path to the command in the earlier post. It's in
Insert>Field...

You have to read this stuff character-for-character, it's very complex.

Cheers

Hi John
You did not get my other message??
My Mac wont do {SEQ} when I press control+ F9, any help on that. seems a bit
basic to actual do the whole thing...
Cant figure out where else it could be

Suanne

This email is my business email -- Please do not email me about forum
matters unless you intend to pay!

--

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:[email protected]
 
J

John McGhie

Hi Susanne:

OK, you have to understand this mechanism to make it work for you, and you
need a little programming ability. Don't panic, stay with us, and we'll get
there...

Foolishly, I assumed you already knew how to use Fields. That was an error
on my part, because no users these days do know this: it hasn't been in the
Word Help for years. My bad!

A "Field" in Word is an embedded command. It tells Word to perform a
computation and create some text that was not there before. Such as a
number, or the result of a calculation; or to go look someplace and return
the text it finds there, such as a cross-reference or a file name.

In this case, the field we want to use is a SEQ field. It stands for
"Sequence" and it runs a calculation that "adds one to the number from the
previous calculation" (or produces "1" if there was no previous SEQ field in
the document).

First: understand the components of a SEQ field.

The { and } are "bounding characters". They tell Word that what is inside
are codes that it needs to submit to the "Field Engine".

SEQ is the name of a command. It tells the field engine to put a
placeholder in the text and use specific behaviours to decide what text will
appear in the placeholder. In this case, "the next number in the sequence".

Now: The SEQ command expects three parameters in sequence, as explained in
the second page I sent you to:

{ SEQ Identifier [Bookmark ] [Switches ] }

OK, it's "not" explained. I will have to do that :)

The "identifier" is a name. The name, in this case, of the sequence. You
can have thousands of SEQ fields in a document. Each one needs a name to
say which sequence it belongs to. You will find SEQ fields used most
commonly for Captions, and there you will find they have names such as
"Table", "Figure", "Equation" to say that for example the field is producing
one of the table numbers in the document.

In your case, you are creating three number sequences:
* one to express the Level 1 number, for paragraphs with Heading 1 style,
* one to express the Level 2 number, for paragraphs with Heading 2 style,
* and one to express the Level 3 number, for paragraphs with Heading 3
style.

So I called them "Head1", "Head2" and "Head3", but you can call them
"Sweet", "Sour" and "Pickles" if you like. So long as you then refer to the
correct sequence of numbers in the correct places, you can use any names for
them that you like (but the names cannot contain spaces).

The [ and ] indicate that the parameter is optional: you can leave it out.

We're not going to use a bookmark for this job, so we will leave that one
out.

The next parameter is "switches". A switch must begin with a backslash to
say it is a switch, followed by a letter which stands for a command, and for
some commands, a number that says 'how much' of the command to apply.

In your case, you are using two switches:
\c for continue, which continues the number from the previous SEQ in the
same number series without incrementing it.
And \s for "set to 1". "Set" takes a sub-parameter: the level number of
the heading at which you want the reset to occur.

You can have multiple switches in a SEQ field: {SEQ Test \n \s1\ \h} would
be perfectly valid.

In your case, you want each number series to reset if the higher-level
number series occurs in the document. So you use \s2 in the Head3 number
sequence, which resets the level 3s back to 1 whenever a Level 2 occurs.

So now let's look at the problem you have:
Now the numbering comes out like this, when I try what you said.
G.1
G.1.1
G.2.2
G.3.3

That indicates that you did not try "what I said" but something quite
different, albeit in a somewhat subtle way. Character-for-character
accuracy is essential in computer coding.

If you look at the field codes, you have:
G{SEQ Head2 \c}.{SEQ Head2 \s1}

That is the computer equivalent of a tautology: you are telling Word to
"continue" Head2 and to "reset" Head2. It's going to get very confused.

The first digit that appears in the sequence is generated by your "Head2"
number series (you do not actually use "Head1" in this job, it exists only
to keep things logically easy to understand).

Now: The Head2 series needs to Reset every time a Heading 1 appears. It
needs to increment in each Heading 2. And it needs to Continue in each
Heading 3.

So: In a Heading 1 paragraph, we do not include the Head2 field.
In a Heading 2 paragraph, we include the Head2 field, but with only one
switch, to reset it after a Heading 1 paragraph.

Like this:
G This is a Heading 1 paragraph with Heading 1 style
G{SEQ Head2 \s1}. This is a Heading 2 paragraph
G{SEQ Head2 \s1}. This is a Heading 2 paragraph
G{SEQ Head2 \s1}. This is a Heading 2 paragraph

Now, when we come to the level 3 headings, we need to add a field:
G{SEQ Head2 \c}.{SEQ Head3 \s2}. This is a Heading 3 paragraph
G{SEQ Head2 \c}.{SEQ Head3 \s2}. This is a Heading 3 paragraph
G{SEQ Head2 \c}.{SEQ Head3 \s2}. This is a Heading 3 paragraph


Notice how this time the Head2 sequence "continues". We don't want it
incrementing in a heading 3, we want it to print its existing number from
the Heading 2 paragraph. That's the answer to this specific question of
yours: the Head2 fields need to "continue" in a Heading 3 paragraph.

Notice that we added the Head3 field here? And this one is set to reset on
Heading 2 (the level above) ‹ \s2

What we are NOT showing is the \n switch. That simply says "next: increment
the number by 1 and print it". It's the default, and it's what we want to
happen in the level 3 fields, so we don't bother to include it.
And I want it to do like this
G.1
G.1.1
G.1.2
G.1.3
Can make it do it, but then I have to do like this:

No. You are still thinking of the headings in terms of numbering from the
top. They are in fact "Levels" of headings in a nested outline list.

In your example, G is the top level (level 1), which you do not show.
G.1 is the second level (level 2)

And you have three level 3 headings ‹ G.1.1, G.1.2 and G.1.3
ID{SEQ Head1 \s1}.
ID{SEQ Head2 \c}.{SEQ Head2 \s1}
ID{SEQ Head3 \c}.{SEQ Head2 \s1}
ID{SEQ Head4 \c}.{SEQ Head2 \s1}

Your second, third and fourth lines are showing Head2, Head3 and Head4.
That is creating two more lists that are not part of your numbering
sequence. They should all be "Head3" because they are all members of the
third level of the outline list.
Which takes all kind of practicality form it.. is there another solutions?
Because this means i have to write in front of all, and cant do automatic
updates, but have to change each one, id I out in an extra heading..

No, you have misunderstood. Once you get the codes for each level correct,
you can copy them in front of each heading of that level. Once you have the
correct codes, store them as AutoTexts and you can simply inject the correct
codes after typing the letter at the front of hundreds of headings.

You could make the SEQ field do the letters too, but it gets seriously
complex, so let's not go there.
ANd cant find much help in the two docs you send me.

Sadly, there IS NO good, simple description of how to use SEQ fields out
there on the web. They all "assume" you already know how to use FIELDS, and
continue on to tell you how to do scary things with them.

This explanation here is about as good as you will get!

Feel free to post back as many times as it takes to do this. Fields are
complex little critters, but well within your capabilities, and there is
great power and time-savings available to you if you take the time now to
learn them.

Hope this helps

This email is my business email -- Please do not email me about forum
matters unless you intend to pay!

--

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:[email protected]
 

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