Library of styles

Everything related to our flagship word processor.
Post Reply
Posts: 91
Joined: 2017-12-21 04:36:37

Library of styles

Post by Yohanan »

For any reason, when I import styles from the style library I have created into one of the numerous files I have, there are some superfluous styles like Normal 1, Footnotes 1. Moreover, since I use NWP, from one file to another I always have to made corrections to get the same styles available in all the files - right now the styles are not united from one file to another. So this is my question: is there a way to create a new Library Style on the basis of my Template "New Nisus" ? This would harmonise, I guess all my files.

Posts: 321
Joined: 2014-02-08 12:57:03
Location: Australia

Re: Library of styles

Post by adryan »

G'day, Yohanan et al

My suggestion would be that you create a series of template documents, each designed for a specific purpose and containing a tailor-made set of Styles appropriate for documents derived from that template.

You might have different templates for business letters, specific legal documents and screenplays, for example. Each will have its distinct set of Styles.

Open a Nisus New File document and add, create, modify and delete Styles as desired. Then save the file as a Document Template (so it has a .dot file extension) with a meaningful filename. Whenever you open that template file subsequently, it will open as an Untitled document with its specific Style set visible in the Styles Palette. You aren't restricted to using only those Styles in your new document: you can always import others from your Style Library if you wish. It's helpful to group related Styles in folders in the Style Library, to make retrieval easier.

The Nisus New File template itself might just have a few more-or-less generic Styles for more-or-less generic situations.

With this approach, you have Styles handy for the purpose at hand, without the need to trawl through a long list of irrelevant ones to find the one you want.

MacBook Pro (mid-2014)
macOS Mojave 10.14.6
Nisus Writer user since 1996

Official Nisus Person
Posts: 4667
Joined: 2002-07-11 17:14:10
Location: San Diego, CA

Re: Library of styles

Post by martin »

I'd just like to clarify that although the Style Library is a good tool for holding often-used styles, it does not have any provisions for keeping existing document stylesheets in sync. Once you import a style from the Style Library into another document that style is now a separate entity with a life of its own. The imported style can be modified or deleted in that document without any effect on the Style Library. The opposite is also true: changes to the style in the Style Library won't automatically be propagated to the document that imported the style.

So you can see that the Style Library may not help with this problem:
right now the styles are not united from one file to another
Only good style hygiene can prevent that kind of problem, where you have a variety of similarly named styles that enforce different formatting. A common cause of this problem is copy-paste introducing new styles into a document. It's easy to be unaware that styles are being added to a file as you paste or import new material.

The good news is that Nisus Writer can help you clear up unwanted styles. Let's say you have two styles in your file, "Normal" and "Normal 1". You want to get rid of "Normal 1" and standardize your text to use just "Normal". Here's what you might do:

1. Place the selection in any paragraph using the unwanted style (eg: Normal 1).
2. Use the menu Format > Paragraph Style > Select All in Style to select all text using that unwanted style.
    Note: similar commands are available from the status bar's paragraph style icon.
3. Apply the desired new style to all the selected paragraphs, eg: use the menu Format > Paragraph Style > Normal.

If you want to swap multiple styles with a single new style it might be easier to use the menu Macro > Find > Select By Style. That macro can easily select all text using multiple styles at once. Once the text is selected the process is the same: just apply the new desired style. The Formatting Examiner palette is also a good tool for finding and selecting all text using particular formatting.

I hope that helps!

Post Reply