Search found 1300 matches
- 2022-07-14 01:57:37
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 4946
Re: Change identical style in several files
Before I address these questions, I just want to clear up one thing; the difference between styles and attributes . Attributes are the things that actually format the document and determine the appearance (color, font, size, paragraph spacing, …) Styles are named collections of attributes, However a...
- 2022-07-13 18:39:57
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 4946
Re: Change identical style in several files
Adding all styles from a Style Library file that is currently open to the current file is actually very simple. It needs just one line of code: $doc.addStyles $styleDoc.allStyles, "replace" The quick way to get such a Style Library file is to hard code the path into your macro. If you want...
- 2022-07-13 02:27:12
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 4946
Re: Change identical style in several files
Hello Adrian, and js, I was taking js at his word that it was easy to do what he wanted, so I only addressed the processing of multiple files. It really depends on how he is going about things. But in fact changing styles is a bit cumbersome in a macro. In the GUI you can just import styles from the...
- 2022-07-12 23:28:43
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 4946
Re: Change identical style in several files
Note 3: In the above code, it will probably be a good idea to use a more specific name for the $doc variable, unless these are the only documents your macro works with.
- 2022-07-12 23:21:32
- Forum: Nisus Writer Pro Macros
- Topic: Change identical style in several files
- Replies: 16
- Views: 4946
Re: Change identical style in several files
The thing to do is open each of the files in turn, process, and then close (if so desired). The basic outline of your macro will be something like this: # Identify Folder to process $folderPath = Choose Folder #-------------------------- # Loop through all files #-------------------------- foreach $...
- 2022-07-12 02:47:05
- Forum: Nisus Writer Pro Macros
- Topic: Glossary item executed inside a Macro?
- Replies: 3
- Views: 1620
Re: Glossary item executed inside a Macro?
Since the glossary item is itself a menu command, you can just put it's name on a line in a macro and it should execute. To make this clearer in a macro you may want to write it like this: Glossary:MyGlossary:MyAbbreviation Another approach, assuming you have the abbreviation already in the document...
- 2022-06-30 23:40:37
- Forum: Nisus Writer Pro
- Topic: EDITING IN SPIT VIEW
- Replies: 8
- Views: 1879
Re: EDITING IN SPIT VIEW
I'm a bit confused about your description here. Split view allows you to get two (or more) views of the same document. To edit two documents you will need to use two windows. FWIW: If I have two documents open, A with split view, and copy from A, and move to document B and paste, the display of A do...
- 2022-05-06 00:14:43
- Forum: Nisus Writer Pro
- Topic: Join macro: tables destroy 'Normal' style
- Replies: 3
- Views: 1345
Re: Join macro: tables destroy 'Normal' style
On further testing, I think the .join command may really be the culprit. .join performs some interesting style conflict resolution. For example i renamed one of the Normal styles, and even though both Heading 1 styles were now based on divergent "Normal" styles they simply get merged back ...
- 2022-05-05 23:50:17
- Forum: Nisus Writer Pro
- Topic: Join macro: tables destroy 'Normal' style
- Replies: 3
- Views: 1345
Re: Join macro: tables destroy 'Normal' style
I just tried replicating this and it is exactly as you say. Specifically I created 3 files File A with a Heading 1 paragraph two Normal paragraphs and a Table File B with a Heading 1 and a Normal paragraph File C with a Heading 1 and a Normal paragraph If I join B and C everything is fine. If I join...
- 2022-04-10 07:41:38
- Forum: Nisus Writer Pro Macros
- Topic: Change font & Size
- Replies: 29
- Views: 9025
Re: Change font & Size
Doing it this way means I have to match both 'th' and 'nd' using two operations but in practice that's OK. Once done I can play with the style and it should propagate through the whole doc. You don't have to use two operations you can do it all in one. The search will be for (spelled out): Screen S...
- 2022-04-01 20:14:43
- Forum: Nisus Writer Pro
- Topic: importing chapter headings/TOC level(s)
- Replies: 3
- Views: 1440
Re: importing chapter headings/TOC level(s)
I just took a quick look at tinderbox. It seems to have an export as RTF option. In this option it seems to preserve the levels of the outline using font sizes. So you can open the outline in Nisus and select all the ones in the same format and apply a heading style. It would also be easy to create ...
- 2022-04-01 19:29:37
- Forum: Nisus Writer Pro
- Topic: importing chapter headings/TOC level(s)
- Replies: 3
- Views: 1440
Re: importing chapter headings/TOC level(s)
I don't know anything about tinderbox, ithoughts. In NWP TOC is handled through styles. You can use any styles you choose as long as you set up things correctly. csv is just text and can obviously be opened in NWP, but what does that mean for your TOC levels? Will they be signaled by tabs/indenting?...
- 2022-03-30 13:30:37
- Forum: Nisus Writer Pro Macros
- Topic: Reversing Paragraph Line
- Replies: 2
- Views: 1504
Re: Reversing Paragraph Line
I'm a bit wary of such problems. It's certainly possible to write macros that rearrange text any way you want. The important goal is that the right to left order should be achieved by the font/script. You want the logical order of the characters to be the same as it would be for a left-to-right lang...
- 2022-03-24 06:07:58
- Forum: Nisus Writer Pro Macros
- Topic: How to exit a Header or Footer
- Replies: 1
- Views: 1502
Re: How to exit a Header or Footer
Well you will need to know where you want to go… Select Document Start Would take you out of the header. You can also use Find, or the macro language commands to place you, but you need to know where you want to go. You could save the location before you enter the header/footer and then return to th...
- 2022-03-24 04:44:36
- Forum: Nisus Writer Pro
- Topic: Odd position of commands in find and replace
- Replies: 8
- Views: 3392
Re: Odd position of commands in find and replace
Just to illustrate with screen shots:
Here an expression consisting only of repetitions of the Return Special Character. Here I set the line height to fixed 18pt And here the same with automatic line height
Here an expression consisting only of repetitions of the Return Special Character. Here I set the line height to fixed 18pt And here the same with automatic line height