I'm having some problems with my workflow: writing in Scrivener, exporting as .fodt, finishing up in Nisus Writer Pro.One of the issues is that pagebreaks in Scrivener are translated to a paragraph style containing a horizontal line in Nisus Writer (happens because the .fodt export assumes that pagebreaks are not necessary for webpages..)

Anyway, I was hoping to be able to write a macro that 1) finds all the occurrences of the paragraph style called 'Horizontal Line', and 2) replaces these with a pagebreak...Unfortunately, I'm just getting started with macros, and my time until submission deadline shrinks, so I was wondering if anybody had a tip to help me getting started!

Yeah, that's the usual problem.Apparently Nisus' "Macroize" feature doesn't transfer the necessary styles automatically. You'll have to copy the "Horizontal Line" style into the macro file and make sure it is applied to the relevant "Find and Replace" line of the macro. Even then the macro version may give you problems, depending on the attribute settings of the styles in either the macro file or the file where you are trying to run the macro. This is one area where the WYSIWYG nature of Nisus' interface is really not ideal.

thank for the quick reply!indeed I run into problems (although it's great to be able do do this; didn't expect that Nisus can do so many tricks!).

Problem seems to be that if I apply the 'Horizontal Style" to the search string, it is also applied to the replace string, which means that it places horizontal lines in the text after deleting them... But the page breaks are inserted!

fantastic, that works!a bit strange is that still Horizontal Lines are there after the Macro did its thing, but that was easily solved by changing the 'Horizontal Line' style to a style without a horizontal line

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum