Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucla-cs!ewa!kirkaas From: kirkaas@ewa.cs.ucla.edu (paul kirkaas) Newsgroups: comp.text.tex Subject: #ifdef equivalent of selective inclusion for TeX/LaTeX??? Message-ID: <40303@shemp.CS.UCLA.EDU> Date: 18 Oct 90 03:33:45 GMT References: <1990Oct18.021309.22918@cs.umn.edu> Sender: news@CS.UCLA.EDU Organization: UCLA Computer Science Department Lines: 26 I wonder if there is an equivalent to C's "#ifdef" for TeX --- that is, if there is something like: \ifdef{adef1} I want to see the first line of text included. \fi \ifdef{adef2} I want to see the second line of text included. \fi The point is that rather than defining adef1 to some value and testing for it, I can still run the source through TeX EVEN IF adef1 is NOWHERE DEFINED. I want that because I want to \include files from various source documents, which may or may not know all the possible \def's. Thanks for any help. Paul -- -- Paul Kirkaas kirkaas@cs.ucla.edu