[texhax] writing about 2 parallel developments of a product withthe same base code

Philip G. Ratcliffe philip.ratcliffe at uninsubria.it
Tue Feb 6 10:41:05 CET 2007

> At 11:25 30.01.07, Philip G. Ratcliffe wrote:
> >Alternatively to maintain just a single main file, or if you wish to
> >interleave pieces for one or other document inside the subfiles, put
> >
> >   \newif\ifdocA
> >
> >in the main files' preambles, followed by either \docAtrue 
> or \docAfalse
> >accordingly.
> >
> >In your subfiles you can then simply put things like:
> >
> >This product is \ifdocAtrue really wonderful\else absolutely 
> useless\fi. We
> >\ifdocAtrue\else cannot \fi recommend it.
> A minor technical remark on this proposal:
> instead of \ifdocAtrue, you must type \ifdocA

Oops, sorry folks: a careless slip.

> With large documents or differences
> (and/or too primitive source editors),
> you may experience difficulties concerning
> which \if... corresponds to some given \fi.
> Another danger is that some inter-word space
> may be missing or wrongly doubled in the output
> -- unless the user is careful and skilled enough.
> At least some of the packages at which this thread
> has hinted help in avoiding these problems.

Yes, Uwe - I was indeed "rolling my own" and perhaps I should have been more
coherent with my declared philosophy and checked on who'd already rolled it.

Cheers,  Phil Ratcliffe

More information about the texhax mailing list