Style Libraries
Page 1 of 1

Author:  jb [ 2011-09-05 09:04:22 ]
Post subject:  Style Libraries

I prefer to write using quirky fonts and sizes that need to be replaced before printing or sending out.
I have two style libraries (’Writing’ & ’Printing’) with identically named styles, so switching between them does the job: it keeps all formatting while changing only the fonts and sizes appropriate to the context.

But I’m wondering: Is it possible to set up a macro to do the same thing?

Although the process of switching libraries manually is not terribly cumbersome, I find myself looking for a quicker way when revising and wanting to print so that I can review on paper.

Author:  martin [ 2011-09-06 16:47:54 ]
Post subject:  Re: Style Libraries

This isn't too difficult to automate. Assuming your style library files are saved as "Writing.rtf" and "Printing.rtf" then the attached macros should do the trick.

Attachments: [6.38 KiB]
Downloaded 280 times

Author:  phspaelti [ 2011-09-06 16:58:18 ]
Post subject:  Re: Style Libraries

$doc.addStyles($styleText, 'replace')

Ah, that was the key command I was looking for.

Author:  jb [ 2011-09-06 18:04:52 ]
Post subject:  Re: Style Libraries

This is great and makes Nisus even more versatile.

Many thanks, Martin.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group