home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / text / tex / 14479 < prev    next >
Encoding:
Text File  |  1992-12-27  |  908 b   |  32 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!utcsri!torn!spool.mu.edu!agate!ames!haven.umd.edu!wam.umd.edu!joel
  3. From: joel@wam.umd.edu (Joel M. Hoffman)
  4. Subject: Embedding \if's in TeX.  How?
  5. Message-ID: <1992Dec27.161533.11392@wam.umd.edu>
  6. Sender: usenet@wam.umd.edu (USENET News system)
  7. Nntp-Posting-Host: rac2.wam.umd.edu
  8. Organization: University of Maryland, College Park
  9. Date: Sun, 27 Dec 1992 16:15:33 GMT
  10. Lines: 20
  11.  
  12. I'd like to embed several \if\else\fi groups, but it doesn't seem to
  13. work.  For example
  14.  
  15. \iftesta ...
  16.     \else ...
  17.     \iftestb
  18.         \iftestc ...
  19.         \fi
  20.     \else ...
  21. \fi
  22.  
  23. I keep getting error messages about extra \else's.  I'm sure the
  24. \if's, \else's and \fi's are matches.
  25.  
  26. I think what's might be happening is that TeX is ignoring the embedded
  27. \if's if the first test fails, and then seeing the embedding \fi, and
  28. thinking it matches the matrix \fi.  Is this so?  Is there a
  29. workaround?
  30.  
  31. -Joel
  32.