NisusWriter Macros and Methods



These are some macros and methods that make my use of NisusWriter more efficient. I've written most of them myself, one I got from somewhere else, one is an improved version by Mel Martinez. Some of them need to be assigned keyboard shortcuts to be really useful.

I can't guarantee that they will work perfectly in other setups. Be aware that they use markers and clipboards, so this means you need to watch out for clashes with marker names you're already using, and make sure that you don't leave anything important in the clipboards when you use these macros.

I'd be grateful for any feedback, suggestions, etc. And if you have a web page for your macros, let me know the URL if you are happy for me to add a link to it here.

IMPORTANT: These were all originally writtten in NW 4.x and some have not yet been checked with NW5.

There are also some external links to other people's macros near the end.


John Henderson



MacroBrief Description

NumberConversionMacro Converts automatic numbering (sections, figures, etc.) into text numbers so that this is retained when converting NW documents into other formats. Once done, it cannot be reversed so use only on a copy of the original NW document. NB: Only useful for versions before 5.0.

Collect Noncontiguous (with CR) This copies noncontiguous selections into the clipboard, inserting a Return between them. Especially useful after 'Find All'.
Formatted Contents This macro creates a contents page which is formatted for multiple levels of indentation based on section etc. numbering (e.g. 2.1.3.4). Use instead of ordinary 'Create Contents'. This version (22/5/97) set up for NW5.
FrequentFolders Opens the Catalogue to a folder where I keep aliases of the folders I use most frequently. Useful with keyboard shortcut.
Get Folder Opens the Catalogue to the folder where the front document comes from.
InitInit On starting up NW, opens the Catalogue to 'FrequentFolders', and opens the Notes file (see 'Make note' below).
Reverse lines Reverses the order of the characters in each line. Unlike NW's 'Reverse' format, this actually moves the characters. This allows sorting in the reverse order. Rather slow.
Invert selections Changes the selections in a document so that everything that was originally selected becomes unselected and everything that was originally unselected becomes selected. (I can't remember where I got this one from.)
MakeNote Copies selection to the end of the notes file, adding the date as a header. Modified 3/97.
Merge list files Makes a document which merges all the files that are on the Search List. File names and sizes are reported in the clipboard. Original files are unaffected.
Set x Inserts a place marker (called 'x'). Assigning a keyboard shortcut for this macro and one for the 'x' label under 'Tools>Jump to...' makes it easier to jump around within a document, especially if you create macros and keyboard shortcuts for 'y', 'z' etc. too.
Split file Splits the frontmost document into a specified number of smaller ones. Prompts for the number of files required and a PowerFind Pro string if you want to force the breaks to be made at the nearest occurence of some particular point (such as beginning of line, beginning of para, etc.) A report is given when the task is finished. Original document is unaffected. (version 25/5/97)
Split file to size Splits the frontmost document into smaller documents of a specified size. Prompts for the size required and a PowerFind Pro string if you want to force the breaks to be made at the nearest of some particular point (such as beginning of line, beginning of para, etc.) A report is given when the task is finished. Original document is unaffected. (version 25/5/97)
Split file at mark Splits a single open file into smaller files. Prompts for a PowerFind Pro string to specify where the breaks are to be made (such as 'From: ' etc.) A report is given when the task is finished. Original document is unaffected. (version 25/5/97)
Mac CR -> DOS Inserts 0A hex after 0D hex to convert Macintosh return characters to DOS end of paragraph sequence.
DOS -> Mac CR Removes 0A hex after 0D hex to convert the DOS end of paragraph sequence to a Macintosh return character.

Cross-referencing macros These macros and methods assist with handling lots of cross-referencing to automatically numbered figures, sections, etc. in big and complicated documents. The details are in a NW document which shows how it's done.




Links to other people's macros


George Maschke's macros
Sandra Silcot's HTML macros
Nisus Corral Macro Repository


Return to top of document.



Created: 16/10/96. Last modified: 25/5/97
All material in this document and the files linked to this document is copyright (though not necessarily mine).