kooijman@duteca4.et.tudelft.nl (Richard Kooijman) (06/13/91)
Hai, I tried to move a style off code in my document yesterday, and everything seemed to have worked fine. Until I noticed that all my other styles in the document after the moved one were screwed up. The style consisted of a base font change, Courier 12pt, at the start and a base font change back to Palatino 12pt at the end. I moved the Style off code with block on (of course) and from then all my Style off codes of the same style had a base font change to Courier 12pt. The original styles in the style library where of course unchanged, but replacing existing styles in my document with the original version didn't help either. When I deleted the style on and off of the block where I moved the style off code and added a new one again, only the Style on code was placed in the document. I now realize I shouldn't move Style Off codes, but the text instead, but I would like to know if anybody else experienced the same problem and if there is a solution in case I come across this kind of behavior again. Thanks Richard. -- Richard Kooijman | (__) Delft University of Technology | (oo) ------------------------- Dept. Electrical Engineering | /-------\/ - | Don't have a Bart, man! | Section Computerarchitecture | / | || ------------------------- Neural Network Group | * ||----|| Room 10.04 | ^^ ^^ kooijman@duteca.et.tudelft.nl | The Simpsons' cow
jwi@cbnewsj.att.com (Jim Winer @ AT&T, Middletown, NJ) (06/14/91)
Richard Kooijman writes: > I tried to move a style off code in my document yesterday, and everything > seemed to have worked fine. > Until I noticed that all my other styles in the document after the moved one > were screwed up. You can move an open style or an on/off pair of styles, but not just the style-on or style-off. What happens is this: When you move only the style-on code, WP cancels the ending style-off code. When you move only the style-off code, WP cancels the beginning style-on code. Except, it's not quite that simple. Think of a style as a subroutine where the style-on call is the CALL statement and the style-off code is the return statement -- the actual section of the document is stored that way -- the style-on code points to an out-of-line piece of the document. When the out-of-line piece ends, you return to the main section. Of course, you can have styles-within-styles, etc., so it's sort of recursive nesting. If you delete either style-code (which a move does), WP eliminates the other code. If you do home, home, home, up and then home, home, down, you will find them both gone. If you just look at reveal codes after the move, they may appear to still be there, but that's just because the reveal codes is now out-of-sync with reality. If you want to have lots of fun, include a block protect in a paired style and then insert a hard page inside the block. WP will generate block protect on and off codes all over the place and things really won't work right. Good luck Jim Winer -- jwi@mtfme.att.com -- Opinions not represent employer. ------------------------------------------------------------------ "No, no: the purpose of language is to cast spells on other people ..." Lisa S Chabot