Silly replying to my own post, but there's a tiny bit missing. When you enter the filename for the IncludeText field, you need to make path separators \\, and put quotes around it if it has spaces. So for c:\my documents\my code.asm, you enter "c:\\my documents\\my code.asm" The \ is reserved for options (switches), and of course spaces get treated as a new command. Tony > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu]On Behalf > Of Tony Smith > Sent: Thursday, 7 April 2005 8:08 AM > To: Microcontroller discussion list - Public. > Subject: RE: [OT][AD] MS Word, was Ideas for books on PIC > > > > -----Original Message----- > > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu]On Behalf > > Of William Chops Westfield > > Sent: Wednesday, 6 April 2005 10:29 AM > > To: Microcontroller discussion list - Public. > > Subject: Re: [AD] Ideas for books on PIC > > > > > > So what do all you authors use for (non-fiction writing) software? I > > was > > contemplating doing some writing, and found microsoft word (which I > > assumed did everything) to be terribly lacking in things like including > > source code examples and such. Short of $$$ packages like Framemaker, > > I wound up back at LaTeX, which seems a bit ridiculous even if it does > > have 'wrappers' that make it easier to use than in the old days... > > > > BillW > > -- > > > MS Word isn't lacking, you just didn't look hard enough ;-). I've 2 words > for you, Fields & Styles. > > Fire up Word, click Insert/Field. Under Categories, click "All" > or "Links & > References", then select IncludeText. Type in your filename. If you're > keen, look at Options, you can even tell Word to run a text > converter on the > linked file in case it's a WordStar v1 file. > > Hit Ok, there's your file. Just like $include. Hit F9 to refresh if > needed. Shift-F9 to toggle between showing the field command and > the text. > > Highlight the field command, Click Format/Styles. Select Macro Text. By > default, the formatting will be Courier New, 10 point, mono. If you're > doing ASM code, you'll need to fix the tabs. From then on, all your ASM > code will look the same. > > While you're fixing the tabs, turn off the Spelling & Grammar > check for the > Macro Text style. Word then won't hassle you with 5 billion alleged > spelling mistakes. > > Neat, huh? > > One last thing, click Tools/Option/Print. Under Printing Options, select > Update Links. This means when you print (even just right-clicking in > Explorer, Word will refresh the fields, meaning the latest source > code will > be included. (You can lock fields to stop this happening.) > > Enjoy! > > Tony > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist