Search found 1306 matches
- 2022-02-28 07:45:57
- Forum: Nisus Writer Pro
- Topic: Save shape styles?
- Replies: 5
- Views: 2370
Re: Save shape styles?
This is an area of NWP that is a total mess. The behavior is just all over the place. Let's consider some things that work. 1. Images can be inline or floating. If your image is floating, you are in luck! You can use the menu command "Edit > Copy > Copy Shape Appearance". Then you can past...
- 2022-02-01 02:16:11
- Forum: Nisus Writer Pro
- Topic: Ability to insert sequential number?
- Replies: 4
- Views: 1838
Re: Ability to insert sequential number?
Here are my 2¢ on the subject. If what you want is for this "page number" to appear in the header or footer, but to only change when the next "page" actually starts, then Martin's suggestion is the best way to go. But another way to get sequential numbers that stay sequential is ...
- 2021-11-29 20:28:41
- Forum: Nisus Writer Pro Macros
- Topic: Replacing text in a text object
- Replies: 2
- Views: 4081
Re: Replacing text in a text object
As a test case try:
Code: Select all
$text = "Mississippi"
$result = $text.findAndReplace 'i', '*', 'a'
prompt $text, $result
- 2021-11-29 20:22:57
- Forum: Nisus Writer Pro Macros
- Topic: Replacing text in a text object
- Replies: 2
- Views: 4081
Re: Replacing text in a text object
Starting with the solution, you should remove the "$text = " from your line of code. The reason is the ".findAndReplace" command will perform on your variable, but the returned result will be an (array of) selection(s). Probably in the case you tested, there weren't any hits? Or ...
- 2021-11-16 19:36:52
- Forum: Nisus Writer Pro
- Topic: Converting .rtf charts to .html and centering them on the web.
- Replies: 4
- Views: 3852
- 2021-11-16 19:31:15
- Forum: Nisus Writer Pro
- Topic: Converting .rtf charts to .html and centering them on the web.
- Replies: 4
- Views: 3852
Re: Converting .rtf charts to .html and centering them on the web.
And now in the spirit of TMI: The way the generator works is roughly as follows. It turns the tables into HTML tables (yeah!) Then it wraps every paragraph in <p> tags (ugh) It gives all the paragraphs a pXX class attribute. It looks like it numbers every paragraph individually. (Yikes!) Then it pac...
- 2021-11-16 19:16:18
- Forum: Nisus Writer Pro
- Topic: Converting .rtf charts to .html and centering them on the web.
- Replies: 4
- Views: 3852
Re: Converting .rtf charts to .html and centering them on the web.
Hello Michael, This is a Nisus issue in so far that the results you get depend on the functioning of the HTML generator (which is the "Cocoa HTML Writer". "Cocoa" that sounds Natsukashii :D ) The results from this are not great, but they're not the worst either (MS Word, ugh). Bu...
- 2021-11-08 20:38:52
- Forum: Nisus Writer Pro
- Topic: Request: Find all by Formatting Examiner within selection
- Replies: 13
- Views: 8406
Re: Request: Find all by Formatting Examiner within selection
Find most certainly can find blue color, or any other such feature, and it can do this within a selection. Open Find and in the dialog enter "AnyText" (You must be in PowerFind or PowerFind Pro). Select the "AnyText" and apply the feature you want to look for. (This should put a...
- 2021-10-22 19:18:56
- Forum: Nisus Writer Pro
- Topic: Multiple TOCs in the same document
- Replies: 8
- Views: 6123
Re: Multiple TOCs in the same document
Wow, that's very neat! It was clever to toggle "Remove From TOC" to ensure only the desired paragraphs were included. Thanks Philip :) Thanks. Yes, it's interesting that "Remove from TOC" even overrides any Includes specified as part of a style definition, which in this case is ...
- 2021-10-22 10:40:45
- Forum: Nisus Writer Pro
- Topic: Multiple TOCs in the same document
- Replies: 8
- Views: 6123
Re: Multiple TOCs in the same document
Following my own suggestion, I have now tried to create a more worked out macro. This macro inserts a TOC for the chapter after the immediately selected chapter heading. The TOC will include all sub-headings that are marked with a "Heading" style.
- 2021-10-21 10:01:42
- Forum: Nisus Writer Pro
- Topic: Multiple TOCs in the same document
- Replies: 8
- Views: 6123
Re: Multiple TOCs in the same document
Here is—in very limited form—what such a macro might look like. This macro works with just two levels of heading: Heading 1 are the chapter headings, and Heading 2 are the section headings. It visits each chapter heading and turns on the include on the headings within the chapter. Then it inserts th...
- 2021-10-21 09:05:55
- Forum: Nisus Writer Pro
- Topic: Multiple TOCs in the same document
- Replies: 8
- Views: 6123
Re: Multiple TOCs in the same document
Nisus allows you to create different TOC styles and insert as many TOCs as you want. The way you control what a TOC inserts is using an attribute on the headings that you want to include. In your case the basic procedure would work like this: Create a TOC style "Main TOC" and set styles to...
- 2021-09-15 19:03:19
- Forum: Nisus Writer Pro Macros
- Topic: joining files with page breaks when needed
- Replies: 2
- Views: 7095
Re: joining files with page breaks when needed
Well, pagination is this thing. Nisus needs to calculate the page layout. And before you include pages in a document so Nisus can do that, there won't actually be any pages. As the macro language documentation says, for new text objects like the one you are working with, you will just get undefined ...
- 2021-07-18 17:19:03
- Forum: Nisus Writer Pro Macros
- Topic: Extract digits from a text object
- Replies: 5
- Views: 9153
Re: Extract digits from a text object
PS: I should also mention that you can use this with more complicated Find patterns. So if you wanted to ensure that the digits are after the string "Lesson " you could do it like this: $ref.find "Lesson (?<refnum>\d+)", "E¢" If this doesn't match anything in $ref, then...
- 2021-07-18 17:14:53
- Forum: Nisus Writer Pro Macros
- Topic: Extract digits from a text object
- Replies: 5
- Views: 9153
Re: Extract digits from a text object
Hello Allen, This being Nisus you will be doing this with Find/Replace no matter what. To start with the solution, this will get you what you want: $ref.find "(?<refnum>d+)", "E¢" Basically, you can do Find/Replace on text objects in more or less the same way that you would do th...