View Single Post
  #7   Report Post  
Posted to microsoft.public.word.formatting.longdocs,microsoft.public.word.numbering
Gary Burton
 
Posts: n/a
Default Hidden text won't stick

I expect I will switch to using headings instead of styles based on your
warnings, which I appreciate. I don't want to make any changes to my overall
approac yet, however, because I still have my problem.

More information that may apply:

I left this out before because my posting was already pretty long. I have
invented a pretty convenient system here, and I don't want to give up the
convenience unless I absolutely have to. I tried very hard to make it easy
for my fellow instructors to use. I use a lot of macros.

Once I select text to hide, I have a macro (Alt-M) that hides it,
capitalizes it, and turns it red.

When I want to put a paragraph in in the numbered question style, I hit
Alt-N. Likewise Alt-L for the lettered answer style. Alt-H hides the text
marked as hidden, Alt-S shows all text. There are more macros that don't
relate to this.

Besides the problem I told you about, there is smaller one that may be
related. It consists of the fact that sometimes when I have a paragraph of
visible text followed by hidden text, the number or letter itself turns red
and becomes hidden even though it was never selected to get that way.

Here is what happened today:

I looked at the LISTNUM help. It looks like a safer way to go, but it seems
would require a lot of extra manipulation compared to the way I do it now.
My macros and styles now preserve the indentation and font. This is my first
introduction to fields, so I may be wrong; but it looks like a lot more work
if I go that way. It would surely be too much for my colleagues unless I put
it in macro form. A macro that uses fields to accomplish what I do with
styles seems like it would be very complex.

I tried using the headings instead of styles. I can accomplish the same
thing I do now. And after reading your warnings I will probably wind up
switching to the headings, although it will take a lot of time.

When I programmed the headings with the same style information as my former
styles, however, there was no improvement in terms of the problem I first
wrote about. The second problem mentioned above (number also becoming
hidden), is also still there.

If I have exhausted your supply of ideas, I will edit all the documents to
place all the hidden text in separate paragraphs and switch to the headings
instead of styles. The downside to moving the hidden text (besides the time
involved) is that it is much harder for the instructors to associate the
questions with the answers that way. I work at a military training facility,
and we have to move through this stuff very quickly to save the taxpayers
money. When in front of the class we don't have much time to read and
cross-reference things. If you have any more ideas, I would love to pursue
them. If not, I will proceed with plan B described above.

I have not experienced any of the problems you described with styles, but I
believe you and I don't need those problems. If you can't help me otherwise,
please feel good about the help you gave me by suggesting headings.



"John McGhie [MVP - Word and Word Macintosh]" wrote in
message ...
Hi Gary:

Eeeewwww.... This is not going to be easy.

Generically, the paragraph mark stores all of the formatting properties
for
the text preceding it up to the previous paragraph mark. This amounts to
several hundred pieces of data that collectively describe all of the
formatting, numbering and layout of the paragraph.

So: The numbering is stored IN the paragraph mark. If it's "hidden" the
operation of the numbering becomes VERY unstable.

So one problem you have is that in order for the numbering to function,
the
terminating paragraph mark MUST be "non-hidden". If you want part of that
paragraph's text to be "hidden", you need to apply the hidden property to
the TEXT you want hidden, but not to the final paragraph mark.

The problem you will run into, is that if you hack around in this way long
enough, the paragraph mark itself corrupts. At that point, it may corrupt
the document, preventing Word from opening it. More often, it will simply
turn the paragraph mark "read-only". Once Word can no longer write to the
information store contained in the paragraph mark, you get these
paragraphs
you can't fix: nothing seems to work.

The cure there is to create a NEW paragraph AFTER the bad one (so it does
not inherit the properties of the bad para) then copy the text into the
new
para.

The approach you are using (partially hidden paragraphs with list
numbering
applied) is highly dangerous. I strongly suggest that you find another
way
to achieve your aim.

Look up LISTNUM fields in the Help: I think these are a better option of
you
need to have bits of hidden text in the paragraph. The other alternative
is
to use the built-in "Heading 1" through "Heading 9" styles for numbering
purposes. You can change the formatting to suit yourself, but the Heading
series have special hard-coded properties that makes them FAR more
reliable
when they have numbering applied as part of their style definition.

Hope this helps

On 15/2/06 1:26 PM, in article ,
"Gary
Burton" wrote:

I am using Word 2002 and a later version of word. Both are
on
Win XP machines, and both have the same problem. It's important that I
find
a solution because it affects a lot of documents.

I am a teacher, working with other teachers; and I am making
up
a homework book to be used by several teachers. The homework book has 2
basic styles: 1. "Numbered question" for the questions and, 2. "Lettered
answer" for the answer choices. There is hidden text at the end of both
styles with no carriage return separating the hidden text from the
visible
text.

Sometimes the format gets messed up by me or one of the other
teachers, and I want to be able to just click on the appropriate style
form
the styles window and fix it. That usually works, but there are some
paragraphs in both of these styles for which I have a common problem.
The
problem is that while clicking on the appropriate style does reformat the
numbered question or the lettered answer, it also makes the hidden text
visible. I sometimes make changes to a large number of paragraphs at
once,
so I can't even tell which ones are getting visible answers. The
students
appreciate that because it shows them the answers, but I don't like it.

The paragraphs that are bad (show the hidden text whenever I
click on the style in the styles window) are consistently bad, and the
paragraphs that are good (fixable without showing hidden text) are
consistently good.

I have looked very hard to find a difference between the good
paragraphs and the bad ones. It seems that there must be a hidden
control
character that is in one paragraph and not the other, but the only
difference I can see between good and bad paragraphs is the wording of
the
questions and the point within the paragraph at which the answer begins
and
the text becomes hidden.

I have compared the fonts at several places within the good
and
bad paragraphs and found no settings that were different between the
visible
text of one paragraph and the visible text of the other. Likewise, with
the
hidden text.

I have used the "Reveal formatting" tool to make comparisons
between good paragraphs and bad paragraphs. The tool could find no
differences.

I have used the format painter to copy the formatting from a
good paragraph to a bad one, copying first the visible text then the
hidden
text. That doesn't work either.

I now have many hundreds of pages, and I can't tell which
paragraphs are good and which ones are bad until I try to reformat them.
Then I have to read every question and every answer to find the problem
spots. If I find an answer to the basic problem, there might be
something I
can use as a search criterion to find all the bad paragraphs.

Sorry this was so long, but it's a complicated problem. Any
help would be greatly appreciated!!!! This one is baffling me and
everyone
I work with.


--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410