referencing the style number

V

Vijay J.

I am working in Word 2000. I wish to insert the Number of
Heading Style 1 in my text. (only the Number, not the
text). I can do this by Insert>CrossRef and then by
choosing Heading, and then Number. This inserts the
number of Heading 1. When I toggle the code, I can see
something like this:

{REF _Ref88649742 \r \h }

Now, this is particular to the heading bookmark which I
inserted. Is there a general way, which is not specific
to the particular bookmark of the Heading number, so that
if I use that field code in any document, it inserts the
Heading number of previous Heading 1?
 
S

Suzanne S. Barnhill

No. When you create the cross-reference, Word creates the bookmark. It will
almost certainly be different every time.
 
V

Vijay J.

Suzanne, thankyou for the reply.

I am a bit nervous to hear this. I would like to detail
my particular problem (i.e. why I need to cross reference
style number), in a hope that there may be some solution
to it, though it may not be in a way as I had thought
while posting my initial query. My problem is this:

I have separate chapters of thesis in separate documents
(WORD 2000). I have bibliographies at the end of each
chapter, rather than a combined bibliography at the end.
(I agree this is a bit strange, but I may have to carry
on with this !). I use the bibliography management
software ENDNOTE 5.0 to manage the bibliography. The
bibliography I am getting at the end of each chapter is

[1].......
[2].......
[3]......etc.

However, I would like to include the chapter number also,
i.e., for example, in my fifth chapter, I want the
bibliography as:

[5.1].....
[5.2]......
[5.3]......etc,

where the chapter number 5 is Heading 1 (in each
chapter).

Now, I have been successful in putting the field code of
bookmark of Heading 1 of a particular chapter into the
ENDNOTE style which I am using, and it generates a
bibliography as desired. But the problem is that since
the bookmark is particular to that heading (i.e. say
Chapter 5), I get the same prefix [5.] in every chapter,
whether it is chapter 2,3,4 or 5.

Is there a way out? (One way I can think is to define
different ENDNOTE style for each chapter, which is
similar in every respect other than the heading 1
bookmark).

Thanks in advance.
 
S

Suzanne S. Barnhill

I'm not familiar with EndNote, but I feel sure there must be a better way to
do what you're trying to do.



Vijay J. said:
Suzanne, thankyou for the reply.

I am a bit nervous to hear this. I would like to detail
my particular problem (i.e. why I need to cross reference
style number), in a hope that there may be some solution
to it, though it may not be in a way as I had thought
while posting my initial query. My problem is this:

I have separate chapters of thesis in separate documents
(WORD 2000). I have bibliographies at the end of each
chapter, rather than a combined bibliography at the end.
(I agree this is a bit strange, but I may have to carry
on with this !). I use the bibliography management
software ENDNOTE 5.0 to manage the bibliography. The
bibliography I am getting at the end of each chapter is

[1].......
[2].......
[3]......etc.

However, I would like to include the chapter number also,
i.e., for example, in my fifth chapter, I want the
bibliography as:

[5.1].....
[5.2]......
[5.3]......etc,

where the chapter number 5 is Heading 1 (in each
chapter).

Now, I have been successful in putting the field code of
bookmark of Heading 1 of a particular chapter into the
ENDNOTE style which I am using, and it generates a
bibliography as desired. But the problem is that since
the bookmark is particular to that heading (i.e. say
Chapter 5), I get the same prefix [5.] in every chapter,
whether it is chapter 2,3,4 or 5.

Is there a way out? (One way I can think is to define
different ENDNOTE style for each chapter, which is
similar in every respect other than the heading 1
bookmark).

Thanks in advance.

-----Original Message-----
No. When you create the cross-reference, Word creates the bookmark. It will
almost certainly be different every time.





.
 
P

Peter Gallmann

If I understand you correctly, you use numbered headings and you want
refer to the number of the preceding heading 1. You can do this. Insert
the following field:

{ styleref 1 \s }

This field should work in every document.

Peter Gallmann

++++++++
 
V

Vijay J.

Peter,

Thanks a lot !

This is exactly what I needed in the first place.
As my next assignment, I will now try to combine this
feature of MSWord with the Bibliography Management
Software (ENDNOTE 5.0), so that I can have a bibliography
list, in which each list number is preceded by the number
of Heading 1, though I have no idea how to do this.

Any ideas are most welcome and appreciated.

Thanks

Vijay
 
D

Daiya Mitchell

Hi Vijay,

The EndNote references are themselves fields....let us know what happens if
you try to put the field code into the EndNote bib style definition.
(barely conceivable that Word will remember it's a field code and not just
{} if you copy and paste it? Try both ways, I guess)

Alternatively, a Find and Replace after EndNote has spit out the reference
list might work. (probably require wildcards to search for [ followed by
any number).

Though to be honest, though nesting fields is usually fine, I don't know
about nesting fields within fields generated by a different application, and
I'm not sure I would trust EndNote to be able to handle this. Practice on a
copy. Also note that if you update your reference list, it will wipe out
the numbers.

Is this a one-time end solution or something you want to keep going as you
edit and work on the thesis?

DM
 
K

Klaus Linke

BTW, the built-in bookmark \HeadingLevel can sometimes be used for stuff
like this.
{ REF \\HeadingLevel \n } or { REF \\HeadingLevel \w } insert the number of
the previous heading (no matter whether that's a "Heading 1", "Heading 2",
....).

\HeadingLevel refers to the heading preceeding the selection, so you can't
select all and update fields (Ctrl+A, F9).
But if you plan to unlink the fields after inserting them (Ctrl+Shift+F9)
or lock them (Ctrl+F11), you can make use of \HeadingLevel.

Regards,
Klaus
 

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