home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!utcsri!torn!spool.mu.edu!agate!ames!haven.umd.edu!wam.umd.edu!joel
- From: joel@wam.umd.edu (Joel M. Hoffman)
- Subject: Embedding \if's in TeX. How?
- Message-ID: <1992Dec27.161533.11392@wam.umd.edu>
- Sender: usenet@wam.umd.edu (USENET News system)
- Nntp-Posting-Host: rac2.wam.umd.edu
- Organization: University of Maryland, College Park
- Date: Sun, 27 Dec 1992 16:15:33 GMT
- Lines: 20
-
- I'd like to embed several \if\else\fi groups, but it doesn't seem to
- work. For example
-
- \iftesta ...
- \else ...
- \iftestb
- \iftestc ...
- \fi
- \else ...
- \fi
-
- I keep getting error messages about extra \else's. I'm sure the
- \if's, \else's and \fi's are matches.
-
- I think what's might be happening is that TeX is ignoring the embedded
- \if's if the first test fails, and then seeing the embedding \fi, and
- thinking it matches the matrix \fi. Is this so? Is there a
- workaround?
-
- -Joel
-