Search found 1153 matches

by phspaelti
2020-08-23 17:59:44
Forum: Nisus Writer Pro Macros
Topic: Highlight paragraphs with border(s)
Replies: 8
Views: 4081

Re: Highlight paragraphs with border(s)

How can a user guess, reading the reference guide, the correct syntax for a specific command/property? Both are equally valid. I like to put parentheses when things get long. There are some circumstances when you are required to use parentheses, basically when you need to disambiguate something. Yo...
by phspaelti
2020-08-23 10:32:50
Forum: Nisus Writer Express
Topic: 'Sum column'
Replies: 4
Views: 5213

Re: 'Sum column'

Is it possible to Sum Column in NWPro so that the total appears at the top of the column, instead of at the foot ? Alternatively, how could I write a macro for this ? It would be possible in NWPro . This here is the discussion for NWE though :? If you are using NWPro now, then you could modify the ...
by phspaelti
2020-08-23 10:17:18
Forum: Nisus Writer Pro Macros
Topic: Highlight paragraphs with border(s)
Replies: 8
Views: 4081

Re: Highlight paragraphs with border(s)

I tried using paragraphLineAttributesForEdge to no avail. That's what it says in the macro language reference in two locations. I'm suspecting that there may be a typo somewhere (maybe even in the code :? ). I've tried a few variations, but they all come back with errors. So I can't seem to check p...
by phspaelti
2020-08-20 00:17:44
Forum: Nisus Writer Pro
Topic: How to bookmark each instance of a paragraph style
Replies: 2
Views: 2284

Re: How to bookmark each instance of a paragraph style

Well if all you want is to bookmark all instances of this style, and you are happy with automated names, then you can do this without any automation: Place your cursor in one instance of the style Choose "Select All in Style". This should select all instances of your numbered heading Choose "Add Boo...
by phspaelti
2020-08-16 10:16:43
Forum: Nisus Writer Pro Macros
Topic: Turning styled text into tagged text
Replies: 2
Views: 2017

Re: Turning styled text into tagged text

In current NWP language you will need to use the formatting attributes. You can get the attributes for any location in the text of a document like so: $doc = Document.active # Put this at the very beginning of your code $loc = … # set to the location you want to check $attr = $doc.text.attributesAtI...
by phspaelti
2020-08-15 18:13:13
Forum: Nisus Writer Pro
Topic: Separate file into sections and then recombine
Replies: 7
Views: 4087

Re: Separate file into sections and then recombine

Hello Adrian, I think there is a bit of difference of ideas in what is meant by "Section". Nisus has a technical definition of Section which is what the original macro seemed to be aimed at. So that macro split the document at Section Breaks. But I think most people will think of sections of their d...
by phspaelti
2020-08-15 07:27:13
Forum: Nisus Writer Pro Macros
Topic: Different behavior from what looks to me like similar macros
Replies: 4
Views: 2471

Re: Different behavior from what looks to me like similar macros

I just checked the online manual for NWE, and it seems it should allow you to macroize Find expressions. Since the task you are looking for can easily be achieved using "Find and Replace", aka "PowerFind", you might be able to get the same that way. The Find Expression you want looks like this: Scre...
by phspaelti
2020-08-14 22:29:34
Forum: Nisus Writer Pro Macros
Topic: Different behavior from what looks to me like similar macros
Replies: 4
Views: 2471

Re: Different behavior from what looks to me like similar macros

How is this different and why? I just tested your bold macro and I don't find that it adds an extra space. I get exactly the result you are expecting. Having said that I am a Pro user not Express. It's been a long time, so I do have to ask? I know that Express does not have all the functionality of...
by phspaelti
2020-08-12 07:54:48
Forum: Nisus Writer Pro
Topic: Separate file into sections and then recombine
Replies: 7
Views: 4087

Re: Separate file into sections and then recombine

But having done it this way, it might be more appropriate to split the document by "sections" as indicated by the headings rather than the section breaks. Using section breaks might run into trouble in case the document uses sections for things like changing the number of columns for example. Let me...
by phspaelti
2020-08-12 07:47:43
Forum: Nisus Writer Pro
Topic: Separate file into sections and then recombine
Replies: 7
Views: 4087

Re: Separate file into sections and then recombine

The best approach to find sections is to use the macro command .rangeOfSectionAtIndex . You can retrieve all sections of a document with a "Kino-loop" like this: $doc = Document.active $loc = 0 while $loc < $doc.text.length $sectionRange = $doc.text.rangeOfSectionAtIndex $loc $loc = $sectionRange.bo...
by phspaelti
2020-08-03 01:15:39
Forum: Nisus Writer Pro
Topic: Import from Style Library... query
Replies: 3
Views: 2635

Re: Import from Style Library... query

This is not what should happen. The "replace existing" should immediately change the font. It does for me.
That this is not happening would generally suggest to me that the font is applied, rather than enforced by style.

Does this keep happening if you switch back and forth between two stylesheets?
by phspaelti
2020-07-10 02:50:20
Forum: Nisus Writer Pro
Topic: Indexing NOT to page numbers
Replies: 8
Views: 4371

Re: Indexing NOT to page numbers

Just as an example, maybe you have a document with short named paragraphs, or mini-sections, or numbered verses, etc. and you want to create an index to these section names or numbers rather than pages, then I would recommend doing this task with a macro rather than "Index As".
by phspaelti
2020-07-10 02:39:30
Forum: Nisus Writer Pro
Topic: Indexing NOT to page numbers
Replies: 8
Views: 4371

Re: Indexing NOT to page numbers

I would just like to say here that indexing with "Index As" to some text is really no index at all. It's just a word list. Nisus has a variety of tools that would help you generate word lists of various kinds much more quickly and more automatically. If you want any help with such things you may wan...
by phspaelti
2020-07-04 06:20:20
Forum: Nisus Writer Pro
Topic: converting Pages documents?
Replies: 3
Views: 2923

Re: converting Pages documents?

I think the Pages format is something particular that can't be opened by others. But there seem to be online converters that you could use to convert it to doc or the docx.
by phspaelti
2020-06-29 08:34:20
Forum: Nisus Writer Pro
Topic: Custom Background Color Shortcut
Replies: 4
Views: 2845

Re: Custom Background Color Shortcut

Hello Matt, You would need to copy the above two line macro for each background color you wanted. You can customize it by changing the hextriplet. You can find the hextriplet for any color you want using the color panel. Just switch to the RGB sliders. Screen Shot 2020-06-30 at 1.24.35 .png Below th...