Field Code Gurus

K

Karen

The following almost works perfectly

{ TC { REF caption1 \* Caps } \f C \l "1" }

In a TOC, the above gives me

12th
Item........................................................................
.............................1

'12th Item' is the text referred to with the bookmark 'caption1'

What I really need in the TOC is something like

1.........First
Item........................................................................
.................1
2.........Second
Item........................................................................
............1
3.........Third
Item........................................................................
...............2

So I need a way to concatenate the numbers on the left with what I have so
far.

What do I need to add to the field code to show a concatenation of 'any
number' with the 'caption1' text?
 
K

Karen

OK, that looks really messy, try this



The following almost works perfectly

{ TC { REF caption1 \* Caps } \f C \l "1" }

In a TOC, the above gives me

12th Item..............................................1

'12th Item' is the text referred to with the bookmark 'caption1'

What I really need in the TOC is something like

1.........First Item......................................1
2.........Second Item.................................1
3.........Third Item....................................2

So I need a way to concatenate the numbers on the left with what I have so
far.

What do I need to add to the field code to show a concatenation of 'any
number' with the 'caption1' text?
 
S

Suzanne S. Barnhill

Have you tried adding numbering to the TOC style used for the TOF? If you'll
be including a TOC as well as the TOF, be sure to set them up so that they
use different TOC style levels. For example, if the TOC uses TOC 1, TOC 2,
TOC 3, then use TOC 4 for the TOF.



Karen said:
OK, that looks really messy, try this



The following almost works perfectly

{ TC { REF caption1 \* Caps } \f C \l "1" }

In a TOC, the above gives me

12th Item..............................................1

'12th Item' is the text referred to with the bookmark 'caption1'

What I really need in the TOC is something like

1.........First Item......................................1
2.........Second Item.................................1
3.........Third Item....................................2

So I need a way to concatenate the numbers on the left with what I have so
far.

What do I need to add to the field code to show a concatenation of 'any
number' with the 'caption1' text?



--
Karen
Karen said:
The following almost works perfectly

{ TC { REF caption1 \* Caps } \f C \l "1" }

In a TOC, the above gives me

12th
Item........................................................................
............................1

'12th Item' is the text referred to with the bookmark 'caption1'

What I really need in the TOC is something like

1.........First
Item........................................................................Item........................................................................Item........................................................................
 
K

Karen

Suzanne,

That would probably be the best solution and I've tweaked the TOC style BUT
I'm not sure how to add the numbers. Could you perhaps just walk through
the first few steps?

--
Karen
Suzanne S. Barnhill said:
Have you tried adding numbering to the TOC style used for the TOF? If you'll
be including a TOC as well as the TOF, be sure to set them up so that they
use different TOC style levels. For example, if the TOC uses TOC 1, TOC 2,
TOC 3, then use TOC 4 for the TOF.



Karen said:
OK, that looks really messy, try this



The following almost works perfectly

{ TC { REF caption1 \* Caps } \f C \l "1" }

In a TOC, the above gives me

12th Item..............................................1

'12th Item' is the text referred to with the bookmark 'caption1'

What I really need in the TOC is something like

1.........First Item......................................1
2.........Second Item.................................1
3.........Third Item....................................2

So I need a way to concatenate the numbers on the left with what I have so
far.

What do I need to add to the field code to show a concatenation of 'any
number' with the 'caption1' text?
Item........................................................................Item........................................................................Item........................................................................Item........................................................................ have
 
K

Karen

Suzanne,

Be still my heart. Oddly enough the numbering for the TOC style is called
numbering so I've got it working. Now to see if the extra tab messes up by
indenting.

--
Karen

Suzanne S. Barnhill said:
Have you tried adding numbering to the TOC style used for the TOF? If you'll
be including a TOC as well as the TOF, be sure to set them up so that they
use different TOC style levels. For example, if the TOC uses TOC 1, TOC 2,
TOC 3, then use TOC 4 for the TOF.



Karen said:
OK, that looks really messy, try this



The following almost works perfectly

{ TC { REF caption1 \* Caps } \f C \l "1" }

In a TOC, the above gives me

12th Item..............................................1

'12th Item' is the text referred to with the bookmark 'caption1'

What I really need in the TOC is something like

1.........First Item......................................1
2.........Second Item.................................1
3.........Third Item....................................2

So I need a way to concatenate the numbers on the left with what I have so
far.

What do I need to add to the field code to show a concatenation of 'any
number' with the 'caption1' text?
Item........................................................................Item........................................................................Item........................................................................Item........................................................................ have
 
S

Suzanne S. Barnhill

You need to set the indents in the number formatting, as that will override
any indents set in the paragraph style.
 
Top