Resetting figure number in caption

M

Martin Andersen

--
Martin Andersen
M.Sc. Agricultural Economics
Research Analyst

I am trying to implement the directions in an article by Pietsch and Rado
"How to insert captions that include chapter numbers, ind documents where
some Heading styles are not build in".
The syntax i use is:
Figure {styleref "Heading 1 with numbers" \s}.{seq Figure \* ARABIC \s
"Heading 1 with numbers"}. Figure text.
In the styleref field, the \s sequres that only the number of the chapter
heading is shown. In the seq field, the \s followed by the name of the
heading typografy should course the sequence number to be reset. For some
reason, this doesn't happen. When a new chapter starts, the figure numbering
continues where it left in the preveous chapter.

Any ideas?

Regards, Martin Andersen
 
S

Suzanne S. Barnhill

I'm not familiar enough with this construction to be sure, but it does
appear that this should work, assuming that your heading style is named
"Heading 1 with numbers."

If you're doing what I think you're doing, though, may I suggest another
approach that will make life easier for you? If most of your Level 1
headings *are* numbered (and it sounds as if they are), you'd be a lot
better off adding the numbering to Heading 1. This will allow you to pick it
up in captions, page numbers, and other fields that require use of the
built-in heading styles. For the Level 1 headings that are not numbered,
create another style, identical to Heading 1 except for the numbers, and
apply that. Make sure that it has an outline level of 1. When you create a
TOC, it will also be included at the TOC 1 level.
 
M

Martin Andersen

Thank you for your answer.

What i am trying to do is to make Word act like Tex. I have created a
chapter heading with numbers, based on the build-in chapter heading. At the
same time, i have created a appendix heading, also based on the build-in
chapter heading. This works fine, when at want to use chapter headings and
create a table of contents. The build-in chapter heading is used for
"chapters" without numbers, such as the introduktion and the reference list.

At first i tried your suggestion, applying numbers to the build-in chapter
headings and then create a chapter heading without numbers based on the
build-in chapter heading with numbers. This works fine. The problem arices
when i try to create appendix headings based on the build-in chapter headings
and assing at new numbering system, starting with "Appendix A". Appearently
some internal conflict regarding numbering arices, which gives unvanted
results.

In short; now i have a chapter - appendix heading, in four system levels,
that works. I am reluctant to give up the idea of making these headings
appear in figure and table captions.

As i se it, it is at question of debugging the mark-up programming applying
the mentioned fields. Does anybody have an idea on how to debug fields in
Word?

Any suggestions are appreciated.

Regards, Martin
 
M

Margaret Aldis

Hi Martin

You might want to look at Shauna Kelly's suggestions for Appendix
numbering - this addresses the difficulties of getting a scheme that
satisfies all the different requirements for the displayed heading
numbering, TOC, captions and page numbering - it's only too easy to set up
partial solutions that then let you down further along the track!

http://www.shaunakelly.com/word/numbering/NumberingAppendixes.html

In general, I would aim to use the built-in styles for the real headings,
and to use a custom style for the common base - you can change Heading 1
etc. to be based on your custom style. Note though that some of the "magic"
of the built-ins comes with strings - you must use the standard Outline
levels for built-in headings, and the outline paragraph *numbering* levels
must match those levels - you can successfully use lower level built-ins for
secondary sets of headings such as Appendices, but you have to accept using
default levels, not a completely separate numbering scheme starting at level
1. This is only really an issue for Outline view though - for the TOC you
can easily assign any style to any TOC level.

On debugging the field - Word can be very picky about spaces in fields, so
make sure you are following the standard model exactly - copying a field
that works, and editing only the values can be helpful.

If the field syntax is OK, the other possibility is that you don't have a
trigger paragraph in the style you think you have. Things like having
headings in text boxes (where they can't be seen by many Word features) and
applying paragraph styles to selected text (so that the "paragraph style"
gets applied only as character formatting) can confuse. With numbering there
are additional opportunities for muddle - for instance, setting up the
numbering as a List Style and not a Paragraph Style can hide the real
paragraph style applied.

Hope this gives a few more avenues to explore.
 
M

Martin Andersen

Hi Margeret

Concerning blanks and so on in the field commands; i tried deleting the
fields which gave the wrong figure number and then inserting the field code
copyed from the previous chapter. At first it gave the same chapter and
figure numbers as in the previous position. After updating the chapter and
figure number fields, i got the same wrong figure number. Conclusion; the
error is not in the syntax of the field commands, but in the underleing
number handling.

Now i consider implementing Shauna Kelly's workaround. I believe it wil
work, but it is unsatisfactory to have to trick the program in this way in
order to do at simple typesetting task. Will Microsoft (or anyone else) ever
make at tool suited for academid writing?

Regards, Martin
 
M

Margaret Aldis

Hi Martin

If you've narrowed it down to a position problem - if the same field is
restarting correctly after some chapter headings and not others - then you
should look very carefully at the paragraph (chapter heading) you think
ought to be restarting the caption numbering but isn't. Try a Ctrl-Space to
remove any char formatting, and then reapply the style to that heading,
making sure you either select the whole paragraph, or select nothing (cursor
in the paragraph).
 
M

Martin Andersen

Hi Margeret

Thank you for your suggestion. I tried, but without any luck. Actually, the
numbering in the Heading 1 is incremented (from 2 to 3), but the seq field in
the caption don't pick it up. I see that there is at newsgroup on numbering;
maybe i can find an answer there.

Regarding Academic Writing or Academid Word Processing or whatever it is
called in english, it is my impression that at lot op people use Word for
this purpose, ewen though it isn't suited for it. Advanced Tex users always
point out Tex' ability of doing all tasks connected with writing books or
articels. It should be possible to create Word templates that can do the same.

On the basis of this thougth i searched the internet for Word templates for
Academic Word Processing. I got a lot of hits, so i couldn't check them all.
The closest i came was a template for writing papers in accordance with the
standards set by the American Association of Psycologists. Not much help when
i need at template that can do math, tables figures, references and so on.

Currently i use MathType for math in my Word documents. I expect to get
acces to Reference Manager later. All i need then is at template that in
combination with these two ad-ons can do the tricks inherent in Tex. Actually
i would like to do some of the work on such at template myself, but due to my
lach of skill regarding Word fields and VBA, i think i would be to big at
task for me alone. So it would be interesting if i could find some people who
would be interested in the project and would devote some time to it. Maybe it
would ewen be possible to start at newsgroup on Academic Word Processing or
whatever i is called.

"Margaret Aldis" skrev:
 

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