X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["1940" "Mon" "28" "February" "1994" "17:33:57" "+0100" "Rik Huygen k297 tel. 4799" "rik@sron.rug.nl" nil "60" "(La)TeX conditional compilation" "^Date:" nil nil "2" nil nil nil nil]) Return-Path: Received: from sc.ZIB-Berlin.DE (mailserv) by dagobert.ZIB-Berlin.DE (4.1/SMI-4.0/24.6.93) id AA04888; Mon, 28 Feb 94 21:33:56 +0100 Received: from mail.cs.tu-berlin.de by sc.ZIB-Berlin.DE (4.1/SMI-4.0-sc/03.06.93) id AA24478; Mon, 28 Feb 94 21:32:55 +0100 Received: from tubvm.cs.tu-berlin.de by mail.cs.tu-berlin.de with SMTP id AA01633 (5.65c8/IDA-1.4.4(mail.m4[1.12]) for <@MAIL.CS.TU-BERLIN.DE:Schoepf@SC.ZIB-BERLIN.DE>); Mon, 28 Feb 1994 21:32:53 +0100 Message-Id: <199402282032.AA01633@mail.cs.tu-berlin.de> Received: from TUBVM.CS.TU-BERLIN.DE by tubvm.cs.tu-berlin.de (IBM VM SMTP V2R2) with BSMTP id 6398; Mon, 28 Feb 94 21:32:26 +0200 Received: from VM.URZ.UNI-HEIDELBERG.DE (NJE origin MAILER@DHDURZ1) by TUBVM.CS.TU-BERLIN.DE (LMail V1.2a/1.8a) with BSMTP id 6397; Mon, 28 Feb 1994 21:32:24 +0200 Received: from VM.URZ.UNI-HEIDELBERG.DE (NJE origin LISTSERV@DHDURZ1) by VM.URZ.UNI-HEIDELBERG.DE (LMail V1.2a/1.8a) with BSMTP id 1281; Mon, 28 Feb 1994 21:31:34 +0000 Reply-To: Mailing list for the LaTeX3 project Date: Mon, 28 Feb 1994 17:33:57 +0100 From: "Rik Huygen k297 tel. 4799" Sender: Mailing list for the LaTeX3 project To: Multiple recipients of list LATEX-L Subject: (La)TeX conditional compilation Status: R X-Status: X-Keywords: X-UID: 1577 Hi LaTeX specialists, I would like to present you a small (?) problem I have with conditional TeX-ing. Let me state the problem properly: I have a program documentation which contains information for moderate and for expert users, something like the TeX manual with the dangerous bend. I now would like to include/exclude the expert information depending on the type of manual. But I would like the expert info in a begin/end environment: \begin{Expert} .... \end{Expert} (see example below). If I use plain TeX everything works fine. If I want to use an environment instead of the \ifSomeCondition .... \fi construction fails on the `false'. I get the following message: ! Incomplete \iffalse; ... Apparently, TeX wants to read the false part of the \if construction too. I tried all kinds of tricks, using \relax, \bgroup \egroup constructs but until now nothing worked properly. Is there someone who has solved this problem previously? I will be very happy if someone can solve this one for me. Rik. ------------------------------ EXAMPLE ---------------------------- \documentstyle{article} \newif\ifSomeCondition \newenvironment{Expert}{\ifSomeCondition}{\fi} \begin{document} \SomeConditiontrue \ifSomeCondition If you see this, the Condition is true! \else If you see this, the Condition is false! \fi \SomeConditionfalse \begin{Expert} This is only for expert users, i.e., if SomeCondition is true! \end{Expert} \end{document} +----------------------------------------------------------------------------+ | Dr. Rik Huygen | SRON Space Research Laboratory | | | P.O. Box 800, 9700 AV Groningen, The Netherlands | | rik@sron.rug.nl | phone: +31 (0)50 634799 +31 (0)50 123662 (home) | | | FAX : +31 (0)50 634033 | +----------------------------------------------------------------------------+