Todd Denniston wrote:
Sanders, Maarten (M.J.L.) wrote:

Hi,

We use a lot of branches in modular end user manuals for our equipment. Does anyone have an approach on dealing with "not branches"? E.g., the piece of text applies to every piece of equipment, except for no. 32. As you can imagine it is a bit tedious to repeat the same text in the other 31 branches.

If there is no approach, are there any development ideas in this direction? Thinking of that, a single chunk of text that can be used for 'n' branches would be nice as well.

Any comments?

Maarten


Unfortunately my The LaTeX Companion, 2nd ed. is at home, but there is a nice description in there on how to do just what you describe... I think it was docstrip that was used though.

http://www.ctan.org/tex-archive/help/Catalogue/entries/docstrip.html


I now have my TLC2 in hand.
I was wrong, it is not docstrip.
in TLC, 2nd ed. section 2.1.4 "optional--Providing variants in the document source", what you wanted to do is described using the 'optional' package.

http://www.ctan.org/tex-archive/help/Catalogue/entries/optional.html

I think what you are looking for would look something like:
%preamble statement for other than eq32
/usepackage[eq31,eq33,eq34]{optional}
%body
/opt{eq31,eq33}{this text describes things for only pieces of equipment 31 & 
33.}
/opt{eq32}{this text describes things only for piece of equipment 32}
/opt{eq34}{this text describes things only for piece of equipment 34}

Sorry about misleading you earlier.

ifthen can also be used to brute force it if you have to:

http://tug.org/TeXnik/mainFAQ.cgi?file=IfThen/ifthen#optional



--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter

Reply via email to