From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63287 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Vedran_Mileti=C4=87?= Newsgroups: gmane.comp.tex.context Subject: \startmode and \startcomment inside of \def Date: Sun, 7 Nov 2010 19:42:21 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0357057800==" X-Trace: dough.gmane.org 1289155379 15373 80.91.229.12 (7 Nov 2010 18:42:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Nov 2010 18:42:59 +0000 (UTC) To: NTG-ConTeXt mailing list Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 07 19:42:55 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PFACd-00087B-5c for gctc-ntg-context-518@m.gmane.org; Sun, 07 Nov 2010 19:42:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C209CA82E; Sun, 7 Nov 2010 19:42:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WjHx36UqnBVP; Sun, 7 Nov 2010 19:42:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E05E5CA81E; Sun, 7 Nov 2010 19:42:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4AC10CA821 for ; Sun, 7 Nov 2010 19:42:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gqtCNuWpDL41 for ; Sun, 7 Nov 2010 19:42:45 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 4D8FFCA81A for ; Sun, 7 Nov 2010 19:42:43 +0100 (CET) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oA7IggIY002696 for ; Sun, 7 Nov 2010 19:42:42 +0100 Original-Received: by wwj40 with SMTP id 40so5034870wwj.2 for ; Sun, 07 Nov 2010 10:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=HGf7iyV/U6dh7u1jtjoC/oVcFT/a6TEict8RlLcsMp4=; b=iaupD96eQO8LS7VRczeSo9pQ2CEAgG7vjl/Gk+uU+akmrnAv4rVsJmD/Cd+AswkeTz a2gNOzbmgvBhR1rhfXZleB2T5mkdntnTrNGRnCs/gM9vyioRei5y2YvQBiHERkrsaf+u 6cnltFKZAJjBdEXfZOywyrEdNQm4DZSDOdvLo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=FstU9iLWsXYt0vknpqdGDUiUYU22NJyXjKXujybD/U3ybDX9DJ+UmzRolwbWUH1yP/ N6tJFJN8Om4K5hdme+bAbifQuTYc7wy+/WzVhe6CL9IhD8lHMJ5hd/7LJan2qxutu/ep aJY+d4z01k33txq80sHFZ73I5xA/1nB9XnMtA= Original-Received: by 10.227.133.15 with SMTP id d15mr4382250wbt.37.1289155362440; Sun, 07 Nov 2010 10:42:42 -0800 (PST) Original-Received: by 10.227.136.200 with HTTP; Sun, 7 Nov 2010 10:42:21 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DsiGGFA - e222fe350371 - 20101107 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63287 Archived-At: --===============0357057800== Content-Type: multipart/alternative; boundary=001485f7cc4670479c04947adf85 --001485f7cc4670479c04947adf85 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I would like to define something like this: \def\startSolution{\startmode[solutions]...} \def\stopSolution{...\stopmode} But when I use \startSolution and \stopSolution, and mode solutions isn't enabled, I get something like Runaway argument? aaa \stopSolution \stoptext ! File ended while scanning use of \dostopmode. system > error on line 0 in file : File ended while scanning use o= f \dostopmode ... What's the proper way of doing this? --=20 Vedran Mileti=C4=87 --001485f7cc4670479c04947adf85 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

I would like to define something like this:
\def\startSolutio= n{\startmode[solutions]...}
\def\stopSolution{...\stopmode}

But w= hen I use \startSolution and \stopSolution, and mode solutions isn't en= abled, I get something like
Runaway argument?
aaa \stopSolution \stoptext
! File ended while sca= nning use of \dostopmode.

system=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 > error on line 0 in file : File ended while scanning= use of \dostopmode ...

What's the proper way of doing this?

--
Vedran Mileti=C4=87<= br> --001485f7cc4670479c04947adf85-- --===============0357057800== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0357057800==--