#Index Previous Next [Cone] Re: question on advanced MS Word techniques - RTFM howto (Jerry Feldman) Alex Brown cone@blu.org Sat, 07 Jun 2003 16:31:11 -0400 * Previous message: [Cone] question on advanced MS Word techniques - RTFM howto * Next message: [Cone] Re: question on advanced MS Word techniques - RTFM howto (Jerry Feldman) * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ I don't think Word can handle this. If you don't need complex formatting you might try, using a browser or text editor, to write the original in #ifdef'd-HTML and use the C preprocessor in a script (since you are familiar with it) just as you've indicated, to derive two different HTML files, long and short -- then import into Word. The Cygwin suite provides gcc which gives you the preprocessor (gcc -EP) in win32 so this need not be an *ix-only solution. RTF might work too; I like the "Ted" RTF editor in Linux and I think there's a Win32 version. I also like Lyx with the Linuxdoc SGML Tools, which can produce RTF for import into Word. Lyx has features in its GUI to support RCS, so you could branch two versions of a common document in RCS. This is not quite the same, of course. In any case you will have to be aware of structure and tagging syntax so as not to create an insane document in either version. The same is true of Word or any other word processor, of course. Because Word does not easily reveal its concept of your document's structure, this is hard to do in Word. Last I knew it was still possible to see tags in Word Perfect with "Reveal Codes" so that might be an alternative. > > Note: I am using MS Office 2000 on Linux. > I'd like to hear more about this. Alex Brown cone-request@blu.org wrote: > ... > Message: 1 > Date: Sat, 7 Jun 2003 10:02:31 -0400 > From: Jerry Feldman > To: cone@blu.org > Organization: Boston Linux and Unix > Subject: [Cone] question on advanced MS Word techniques - RTFM howto > Reply-To: cone@blu.org > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have a document where I want to create a short version of an existing > document. On the surface, that is a simple cut. But, I want to maintain > both the long and the short version of the document. But, I really want > to maintain a single document source and have the short one derived from > the long one. In C or C++ it might look like: > > > #if defined (LONG VERSION) > > #endif > > > Note: I am using MS Office 2000 on Linux. > > - -- > Jerry Feldman > Boston Linux and Unix user group > http://www.blu.org PGP key id:C5061EA9 > PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > > iD8DBQE+4fB3+wA+1cUGHqkRAo/CAJ9L5y/yAdkDRitta9pqY+dYmcSGqgCfS6Ft > qVasIugDrbVDKTdWIMKEBoE= > =/O2O > -----END PGP SIGNATURE----- > ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ * Previous message: [Cone] question on advanced MS Word techniques - RTFM howto * Next message: [Cone] Re: question on advanced MS Word techniques - RTFM howto (Jerry Feldman) * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]