Search found 38 matches

by johseb
2020-10-30 07:08:57
Forum: Nisus Writer Pro
Topic: Equation numbering methods.
Replies: 13
Views: 5153

Re: Equation numbering methods.

Adrian, you're right, there's for sure room for improvements when it comes to figure/table captions and equation numbering (e.g. simpler ways to create numbering per chapter or create figure/tale lists, etc; all possible now but no so smooth). Re vertical adjustment of baseline, I noticed that hover...
by johseb
2020-10-30 05:37:44
Forum: Nisus Writer Pro
Topic: Equation numbering methods.
Replies: 13
Views: 5153

Re: Equation numbering methods.

Hi Adrian, your method works perfectly. Thanks for the tip! My example was purposely extreme but I guess the number of a significant proportion of equations will be off-center (even though by a small amount). The table method automatically takes care of the vertical aligment of the numbers but Marti...
by johseb
2020-10-30 02:29:39
Forum: Nisus Writer Pro
Topic: Equation numbering methods.
Replies: 13
Views: 5153

Re: Equation numbering methods.

Martin, ingenious indeed but placing the equation image inline you'll end up with the equation number aligned with the bottom of the image.
The effect is apparent when inserting multiline equations.

Are there any soutions to this problem?
by johseb
2020-10-28 14:51:06
Forum: Nisus Writer Pro Macros
Topic: Move table rows
Replies: 3
Views: 1661

Re: Move table rows

Thank you Martin, the macro now works like a charm (and thanks to Philip for writing the two original macros).
by johseb
2020-10-28 07:07:32
Forum: Nisus Writer Pro Macros
Topic: Move table rows
Replies: 3
Views: 1661

Move table rows

I downloaded a couple of macros to move table rows up/down (written by @phspaelti and shared in the thread https://nisus.com/forum/viewtopic.php?f=18&t=6732&p=30721&hilit=move+table+rows+Down#p30721). The "Move down" macro works perfectly but the "Move up" macro doesn't. I had a look to the macros b...
by johseb
2020-08-25 06:37:36
Forum: Nisus Writer Pro Macros
Topic: Macro command to Import from Style Library…
Replies: 8
Views: 6435

Re: Macro command to Import from Style Library…

Have you tried granting access to the specific file you are going to use (Case Report.rtf)? The message reads "file doesn't exist" so it seems to expect a file. In any case the Macro Reference suggests to use the built-in macro "Manage Macro File Access" to grant access once and for all. For instanc...
by johseb
2020-08-25 01:29:04
Forum: Nisus Writer Pro Macros
Topic: Highlight paragraphs with border(s)
Replies: 8
Views: 2174

Re: Highlight paragraphs with border(s)

Philip, that is really ingenious! Thanks again; the macro now works perfectly. Here it is in the final form if anyone else is interested: $doc = Document.active $paras = $doc.text.find('^.+\n','Ea') $green = Color.green $highlightedParas = Array.new foreach $para in $paras $attr = $para.text.display...
by johseb
2020-08-24 01:56:21
Forum: Nisus Writer Pro Macros
Topic: Highlight paragraphs with border(s)
Replies: 8
Views: 2174

Re: Highlight paragraphs with border(s)

Thanks Philip, very instructive. So, given that paragraphLineAttributesForEdge returns a LineAttributes object, I guess I can write something like: if $attr.paragraphLineAttributesForEdge('top').lineType == "Solid" or even (to detect any type of border): if $attr.paragraphLineAttributesForEdge('top'...
by johseb
2020-08-23 14:40:55
Forum: Nisus Writer Pro Macros
Topic: Highlight paragraphs with border(s)
Replies: 8
Views: 2174

Re: Highlight paragraphs with border(s)

Hi philip, thanks for your constant support on the forum! At this point only @martin can probably throw some light on the matter. Building a macro is not an easy task. Once a year, maybe less, I put togheter a few pieces of code stolen here and there but I must admit that I never got to grasp the la...
by johseb
2020-08-23 08:47:27
Forum: Nisus Writer Pro Macros
Topic: Highlight paragraphs with border(s)
Replies: 8
Views: 2174

Highlight paragraphs with border(s)

I'm trying to write a simple macro that checks every paragraph of the open document and highlight it if the paragraph has one or more borders. Here's my first attempt: $doc = Document.active $paras = $doc.text.find('^.+\n','Ea') $green = Color.green forEach $para in $paras $attr = $para.text.display...
by johseb
2020-03-23 17:19:35
Forum: Nisus Writer Pro
Topic: Content in table row to continue next page?
Replies: 3
Views: 1474

Re: Content in table row to continue next page?

+1 for this feature request. It would be also very useful to have 1. An option to repeat table header on each page (for tables spanning multiple pages). 2. Ability to add text with vertical baseline; I don't know if the description wording is correct so here's an example: Screen Shot 2020-03-24 at 0...
by johseb
2019-09-26 10:01:07
Forum: Nisus Writer Pro
Topic: Line spacing when using Combining Diacritical Marks
Replies: 22
Views: 10280

Re: Line spacing when using Combining Diacritical Marks

Please try selecting the character fully. If there's no selection and you just have an insertion point (caret) the palette won't show that any font substitution has occurred, because no character is actually selected. Selecting the character inside a table gives the correct result for me as well bu...
by johseb
2019-09-26 02:53:54
Forum: Nisus Writer Pro
Topic: Line spacing when using Combining Diacritical Marks
Replies: 22
Views: 10280

Re: Line spacing when using Combining Diacritical Marks

Martin,
in regards to Formatting Examiner's ability to detect font substitution I made a quick test (using OP's document).
It seems that FE is detecting the substituted font for main text but not for text inside the table.
Am I missing something?
by johseb
2019-09-10 01:19:25
Forum: Nisus Writer Pro Macros
Topic: Find/replace in each paragraph of the selection
Replies: 10
Views: 6529

Re: Find/replace in each paragraph of the selection

Philip,
thanks again for all your detailed and clear explanations!

I'm sure they'll be useful for other beginners taking their first steps in NWP macro syntax.
by johseb
2019-09-09 06:19:07
Forum: Nisus Writer Pro Macros
Topic: Find/replace in each paragraph of the selection
Replies: 10
Views: 6529

Re: Find/replace in each paragraph of the selection

Hi Philip, I'm making slow progresses thanks to your help. 1. Find in Selection - Method 1. I'm afraid I don't understand your hint. Could you please give a worked out example? - Method 2: I agree with you it's a bit convoluted - Method 3: that worked perfectly so it's presently my go-to method. I j...