From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10387 Path: main.gmane.org!not-for-mail From: John Culleton Newsgroups: gmane.comp.tex.context Subject: Re: Conditional Text Date: Sun, 19 Jan 2003 22:11:05 +0000 Organization: WexfordPress Sender: ntg-context-admin@ntg.nl Message-ID: <200301192211.05064.john@wexfordpress.com> References: <20030118170642.42ebdcbb.lazycode@linuxkungfu.org> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1043032378 17666 80.91.224.249 (20 Jan 2003 03:12:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 03:12:58 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18aSMq-0004ah-00 for ; Mon, 20 Jan 2003 04:12:56 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 78E3410AE9; Mon, 20 Jan 2003 04:14:23 +0100 (MET) Original-Received: from mta1.adelphia.net (unknown [64.8.50.175]) by ref.ntg.nl (Postfix) with ESMTP id A264A10AE8 for ; Mon, 20 Jan 2003 04:13:43 +0100 (MET) Original-Received: from publish ([68.65.115.54]) by mta1.adelphia.net (InterMail vM.5.01.05.25 201-253-122-126-125-20021216) with ESMTP id <20030120031553.CFOS12021.mta1.adelphia.net@publish>; Sun, 19 Jan 2003 22:15:53 -0500 Original-To: ntg-context@ntg.nl, Lazycode X-Mailer: KMail [version 1.4] In-Reply-To: <20030118170642.42ebdcbb.lazycode@linuxkungfu.org> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10387 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10387 On Sunday 19 January 2003 00:06, Lazycode wrote: > Greetings! > > Is it possible to have parts of the ConTeXt file > processed conditionally? I'm hoping to be able to do > something like: > > (in ConTeXt file) > > Question: What is the derivative of $e^{sqrt{x}}$\\ > \some-command-start > Answer: $\frac{d}{dx} e^{sqrt{x}} ... $ > \some-command-end > > So that, in the command line, if I run > > "texexec --pdf quiz01.tex" then it will NOT include > the answer section, but if I run > "texexec --pdf quiz01.tex -some-other-command" > it WILL also include the answer section. > > I'm confident this can be done through an if or if-defined > construct. However, I could not find such commands/macros > in the ConTeXt manuals (both the beginners and the detailed > manual). > > > Thanks in advance, > --tk > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context In context there is a mode command that handles conditional text.=20 See page 19 of the manual. HTH --=20 John Culleton Able Indexers and Typesetters=20 Rowse Reviews Culleton Editorial Services http://wexfordpress.com