Replacing an Existing Style

Everything related to our flagship word processor.
Post Reply
lawrencegoodman
Posts: 30
Joined: 2007-07-30 12:06:49

Replacing an Existing Style

Post by lawrencegoodman »

Perhaps there is a way to do this, but I don't see how. Suppose you have a style called "Footnote" and you modify it. I know how to save the modified style as a new style, but not how to replace or update the existing style. Is there a way to do this? A macro that might do it?

Thanks.
User avatar
mrennie
Posts: 173
Joined: 2004-11-10 07:31:31

Post by mrennie »

This cannot be done, and I agree that it would be a very useful feature to have. Send your feedback to Nisus by selecting the appropriate option in the Help menu. I don't know if it is possible to do this via a macro; you'll have to wait for someone more knowledgeable to give you a definite answer.
User avatar
martin
Official Nisus Person
Posts: 5230
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Post by martin »

I'm not sure I understand exactly. If you simply modify the original style the text in the document that the style is applied to will be updated automatically.

If you want to have your modified style (call it "A") replace a style (call it "B") in another document then:

1. Rename style A to have the same name as style B.
2. Copy style A in the stylesheet of the source document.
3. Switch to the destination document and paste. You should be prompted about replacing style B.
User avatar
mrennie
Posts: 173
Joined: 2004-11-10 07:31:31

Post by mrennie »

Hi Martin,

I understood something different. The way I interpreted lawrencegoodman's message is as follows:

let's say you've got a style called "Body Text", which you have set up in style sheet view. Let's also suppose it has no first line indent and the font is set to Times New Roman 12pt. Now imagine you are working on a document, using said style, when suddenly, you decide to change a paragraph to Helvetica 11pt with a first line indent of 1 cm. If you make these changes and you like them, you may want to update the style definition to reflect these changes (similarly to the way Pages and Word handle this). However, you cannot simply right-click on "Body Text" in the Styles palette and select an option that says "Update style based on modifications"; instead, you will need to switch back to style sheet view and re-apply all the modifications to the style in order to update it. Basically, the option I am talking about allows the user to redefine a style based on manual formatting.

If anything is unclear, let me know!

Thanks for reading!
mmm.johnson
Posts: 4
Joined: 2006-05-03 18:19:35
Location: Athens, Greece

Post by mmm.johnson »

Yes, mrennie, I think you've described it beautifully.

This "little" feature is, by far, the one I miss the most in NWP. This has been the primary way I edit styles in MS Word for about a zillion years (hardly ever visiting the official "Styles" dialog box): the mighty "Redefine Style Based on Selection" command. I was mortified to start using NWP and find out it was missing!

I don't say it's better or worse than a separate Styles Editor panel/pane/box whatever, but as a fussy yet indecisive designer-type who's constantly changing his mind about fonts & layout, it's a feature I used heavily. Let's hope it's en route in NWP 1.1...
User avatar
martin
Official Nisus Person
Posts: 5230
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Post by martin »

Thanks guys, I understand now and this feature is definitely filed with us. For now the best workaround might be to copy-paste the ruler or character attributes:

1. Select the text in your document that has the style and formatting applied.
2. Use the menu Edit > Copy > Copy Ruler (or Copy Character Attributes, depending).
3. Switch to the stylesheet view.
4. Use the menu Edit > Paste > Paste Ruler.
stackowax
Posts: 7
Joined: 2008-04-11 08:12:34

Post by stackowax »

A caution about the work around Martin describes. Let's say you want to change the paragraph style of all of the paragraphs in the document. If you choose "select all"from the edit menu and follow the procedure he describes, every style in the document (paragraph or not) will be changed. You need to be sure to select only the text that contains the style you want to change. For example, if your document contains footnotes and you choose select all, they will be changed to paragraph style. I don't believe this is true in Word; it won't change the footnote style unless you explicitly tell it to do so..

If, like me, you've made this mistake, it will then be impossible to select all the footnotes to change them back to footnote style (because they are now recognized as a paragraph sytle). The consequence of this is that footnotes no longer appear as superscripts in the text. This seems to be the case even though---at some level Nisus appears to still recognize the footnote numbers as footnote numbers, i.e., they remain shaded and double clicking them takes you to the relevant footnote.

Having learned this lesson the hard way, is there a way to somehow select all of the (hundreds) of footnotes in the text and change them back to footnote style. It seems like there should be since Nisus continues to recognize them as footnotes.
Post Reply