attaching a 'heading level' based numbered prefix to a character...

Z

zexdance

This is my first time posting, so if I did something wrong, please
just let me know and I'll try not to repeat the mistake ;)

Here's what I want to do: I'm putting together my thesis and within
a given chapter (associated with style - heading 1), I want to refer
to compound 1, 2, 3, etc... However, I would like to create a style
that can change this to 1.1, 1.2, 1.3... etc.

now - here's the tricky part (for me at least)
I don't know for sure the final order of my chapters will be... so i
want to be able to drag one chapter to a different position (in
outline view), and I want the labeling of the compound numbers to
change accordingly... that means (for example) to change _from_ 1.1,
1.2, 1.3... _to_ 4.1, 4.2, 4.3...

for example
let's say I am referring to compound 3.2
the 3 is automatically filled in according to the heading level (i.e.
- by chapter)
the 2 is never changed no matter where I move the chapter it's in.

furthermore, I want 3.2 to be able to appear in the normal body text
and take on whatever the font is that the text around it is using...

I'm concerned that I'm trying to smoosh together the capabilities of
'paragraph' and 'character' styles, and that's why it's not working
for me.

finally - I feel like this should be a simple thing to do.... maybe
I'm just going about it all wrong. It seems to me that the easiest
way to do this would be to just put something like $level$.2 and have
word make a substitution any time it sees something enclosed by $
signs... is it possible to do something like that?

thanks for your help,
-z
 
S

Suzanne S. Barnhill

Use Insert | Reference | Cross-reference: Heading: Heading number for the
first part of the number. Use a SEQ field for the second; at the beginning
of each chapter, include an \r 1 switch in the first SEQ field to make the
numbers restart in each chapter. This is basically the way caption numbering
works when you include the chapter number, though captions use a StyleRef
rather than Ref field for the first number.
 
Z

zexdance

Use Insert | Reference | Cross-reference: Heading: Heading number for the
first part of the number. Use a SEQ field for the second; at the beginning
of each chapter, include an \r 1 switch in the first SEQ field to make the
numbers restart in each chapter. This is basically the way caption numbering
works when you include the chapter number, though captions use a StyleRef
rather than Ref field for the first number.


Thanks Suzanne,
I've got quite a bit of coding experience, but none using this sort
of stuff in word. I tried doing what you said, and (frankly) I must
have done it wrong. I've also tried finding good instructions for
what you said, but I'm having a tough time doing that also. Are there
any links that you can provide me with that give more of a step-by-
step walkthrough of what you're saying?

thanks
-z
 
S

Suzanne S. Barnhill

Okay, let's say you are inserting a number in Chapter 3. I'm assuming that
the chapter number is to be found somewhere in a numbered heading; if not,
then all bets are off (though even if the number is hard-coded, you could
still bookmark it and insert a cross-reference to the bookmark text).

So you have a heading that says "Chapter 3" (where the 3 is an autonumber)
or "3. This is the third chapter" (ditto). To get the 3 in your compound
number, use Insert | Reference | Cross-reference. Choose "Heading" for
"Reference type" and "Heading number" for "Insert reference to." This will
give you a REF field that will not update automatically if the heading
number change but will update when you update fields (by printing, for
example).

For the second part of the number, insert a SEQ field. For more on this, see
the relevant Word Help topic.
 

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