Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Numbering / January 2005

Tip: Looking for answers? Try searching our database.

Creating and working with counters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marko Pinteric - 25 Dec 2004 14:55 GMT
Howdy Word experts!

Is it possible to create and work with counters in Word (like in LaTeX,
for example)?  If it is, can someone give me some basic references for
working with counters in Word?

Thank you for your answers and best regards,

Marko
marko@pinteric.com
(please reply to my e-mail too, if possible)
Daiya Mitchell - 26 Dec 2004 15:47 GMT
Not so many people here seem to be familiar with LaTeX--if you explain what
counters are and what they do and what is the end result you are looking
for, people might be able to suggest some possibilities.

DM

> Howdy Word experts!
>
[quoted text clipped - 7 lines]
> marko@pinteric.com
> (please reply to my e-mail too, if possible)
Stefan Blom - 05 Jan 2005 10:33 GMT
Assuming that counters has to do with numbering (which seems like a
reasonable conclusion), you may want to look into SEQ fields in Word
Help.

If what you want is outline/heading numbering, please
see: http://www.shaunakelly.com/word/numbering/OutlineNumbering.html.

Signature

Stefan Blom

> Howdy Word experts!
>
[quoted text clipped - 7 lines]
> marko@pinteric.com
> (please reply to my e-mail too, if possible)
Marko Pinteric - 05 Jan 2005 13:17 GMT
> Assuming that counters has to do with numbering (which seems like a
> reasonable conclusion), you may want to look into SEQ fields in Word
> Help.
>
> If what you want is outline/heading numbering, please
> see: http://www.shaunakelly.com/word/numbering/OutlineNumbering.html.

What I want is parallel numbering like this:

G General part

G.1 First title
G.1.1 Subsection
G.1.2 Subsection
G.2 Second title
G.2.1 Subsection
G.2.2 Subsection

T Textual part

T.1 First title
T.1.1 Subsection
T.1.2 Subsection
T.2 Second title
T.2.1 Subsection
T.2.2 Subsection

OK, I DID THIS (I can hardly believe I succeeded), I even managed making
special table of contents for general and textual part separately.  The
problem is that footer should INCLUDE current paragraph number.  It is
possible to include paragraph number if it is based on Headings 1 -
Headings 9 (which I turned into T Headings), but I cannnot do similar
for S Headings.  I guess I need to define some counters and specify that
in footer counter for S Heading should be put into.
Suzanne S. Barnhill - 05 Jan 2005 15:55 GMT
Have you looked at Word's Help topic on the StyleRef field?

Signature

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> > Assuming that counters has to do with numbering (which seems like a
> > reasonable conclusion), you may want to look into SEQ fields in Word
[quoted text clipped - 30 lines]
> for S Headings.  I guess I need to define some counters and specify that
> in footer counter for S Heading should be put into.
Marko Pinteric - 06 Jan 2005 07:29 GMT
Thank you!  That was really a revelation!

One question though...  Is there any way to use If field in a way that
- if there is Heading 1 present on the page use Heading 1
- otherwise use Heading 2

e.g.

Page 1:  1. Main title  1.1. Subsection 1
Footer: 1.

Page 2:  1.2. Subsection 2
Footer: 1.2.

Thanks again!!

Marko.

> Have you looked at Word's Help topic on the StyleRef field?
Suzanne S. Barnhill - 06 Jan 2005 17:56 GMT
This is a question that has been asked before, and ISTR that it may have
been solved (but not by me). You might try Googling for the answer, or
perhaps someone else will post back with it.

Signature

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> Thank you!  That was really a revelation!
>
[quoted text clipped - 15 lines]
>
> > Have you looked at Word's Help topic on the StyleRef field?
Word Heretic - 06 Jan 2005 22:49 GMT
You need to embed the fields inside the if field...

{ IF { STYLEREF "Heading 1" } = "Error! No Text of specified style in
document." {STYLEREF "Heading 2"} {STYLEREF "Heading 1"} }

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice
Suzanne S. Barnhill - 07 Jan 2005 00:45 GMT
The problem is that there *will* be Heading 1 text in the *document*; the
trick is to limit the search to the page; and I don't think that's possible.

Signature

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> You need to embed the fields inside the if field...
>
[quoted text clipped - 5 lines]
> steve from wordheretic.com (Email replies require payment)
> Without prejudice
Word Heretic - 07 Jan 2005 06:51 GMT
G'day "Suzanne S. Barnhill" <sbarnhill@mvps.org>,

Ahhh! I see, a field that autosenses the last heading used and
auto-refers to it. Gee, that would be nice :-)

That sort of thing is what I use pre-production macros for. If it was
to be inline, I'd probably use tag text [LASTHEAD] and then come
publish time, make a copy & zap a macro through it to find these tags,
find the previous heading (reverse iterate paragraphs from tag to doc
start looking at outline levels) .and hard-insert the required
details.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice

Suzanne S. Barnhill reckoned:

>The problem is that there *will* be Heading 1 text in the *document*; the
>trick is to limit the search to the page; and I don't think that's possible.
Suzanne S. Barnhill - 07 Jan 2005 15:21 GMT
What is usually desired is to sense the first heading (any level or any of
specified levels) on the page and replicate it. I personally feel this may
be poor design since the header would then reflect large chunks of content
in some cases and smaller chunks in others. I think it's probably better to
pick one level (usually the top level of subhead--which could be Heading 2
if Heading 1 has been used for the chapter title) and stick with it.

Signature

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> G'day "Suzanne S. Barnhill" <sbarnhill@mvps.org>,
>
[quoted text clipped - 17 lines]
> >The problem is that there *will* be Heading 1 text in the *document*; the
> >trick is to limit the search to the page; and I don't think that's possible.
Word Heretic - 08 Jan 2005 02:06 GMT
G'day "Suzanne S. Barnhill" <sbarnhill@mvps.org>,

Yes, this would get very messy in most real world instances. It also
would never take the place of sensible structuring to start with.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice

Suzanne S. Barnhill reckoned:

>What is usually desired is to sense the first heading (any level or any of
>specified levels) on the page and replicate it. I personally feel this may
>be poor design since the header would then reflect large chunks of content
>in some cases and smaller chunks in others. I think it's probably better to
>pick one level (usually the top level of subhead--which could be Heading 2
>if Heading 1 has been used for the chapter title) and stick with it.
Marko Pinteric - 10 Jan 2005 08:31 GMT
I agree that this is a poor design.  Unfortunatelly in specifications
for technical reports in civil engineering projects it HAS TO BE this
way.  :-(

BTW, I *did* googled Internet for this specific problem and found no
solution.

Marko.

> What is usually desired is to sense the first heading (any level or any of
> specified levels) on the page and replicate it. I personally feel this may
> be poor design since the header would then reflect large chunks of content
> in some cases and smaller chunks in others. I think it's probably better to
> pick one level (usually the top level of subhead--which could be Heading 2
> if Heading 1 has been used for the chapter title) and stick with it.
Marko Pinteric - 10 Jan 2005 09:40 GMT
I *did* find this code today

{ IF {STYLEREF "Heading 2" \n }<{STYLEREF "Heading 1" \n } "{STYLEREF
"Heading 1" \n }" "{STYLEREF "Heading 2" \n }"}

but I don't know how to use it.  That is, I insert code field, put the
text (I have to use "=" in the beginning, and Word reports synthax
error.  I guess there is something wrong about how I put code fields
into Word.

Thanks for help,

Marko.

> What is usually desired is to sense the first heading (any level or any of
> specified levels) on the page and replicate it. I personally feel this may
> be poor design since the header would then reflect large chunks of content
> in some cases and smaller chunks in others. I think it's probably better to
> pick one level (usually the top level of subhead--which could be Heading 2
> if Heading 1 has been used for the chapter title) and stick with it.
Suzanne S. Barnhill - 10 Jan 2005 16:30 GMT
Every pair of field delimiters (those things that look like braces but can't
be typed from the keyboard) must be inserted using Ctrl+F9. As you can see,
there are several pairs nested within the outside pair, and you have to get
them right. Start by inserting one pair and typing IF, then insert
additional pairs for the StyleRef fields. Note that the TrueText and
FalseText do not need to be quoted since they are fields (only text needs to
be in quotes).

Signature

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> I *did* find this code today
>
[quoted text clipped - 16 lines]
> > pick one level (usually the top level of subhead--which could be Heading 2
> > if Heading 1 has been used for the chapter title) and stick with it.
Marko Pinteric - 10 Jan 2005 09:35 GMT
I was playing with this code.

I inserted code field and typed this text after "=" and word reported
sythax error!?

What's wrong?

Marko

> You need to embed the fields inside the if field...
>
[quoted text clipped - 5 lines]
> steve from wordheretic.com (Email replies require payment)
> Without prejudice
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.