From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72782 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Resetting references or local references? Date: Mon, 28 Nov 2011 00:10:27 +0100 Message-ID: <256E87E8-CCD2-4843-A1D8-0F90129333E3@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322435460 28690 80.91.229.12 (27 Nov 2011 23:11:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2011 23:11:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 28 00:10:56 2011 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 1RUns6-0005zV-5L for gctc-ntg-context-518@m.gmane.org; Mon, 28 Nov 2011 00:10:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3A4C7CB0EE; Mon, 28 Nov 2011 00:10: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 W3sn3y3ysy4v; Mon, 28 Nov 2011 00:10:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0800DCB0E7; Mon, 28 Nov 2011 00:10:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C547ACB0E7 for ; Mon, 28 Nov 2011 00:10: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 jUegjQQsd-QI for ; Mon, 28 Nov 2011 00:10:37 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 9AF04CB04D for ; Mon, 28 Nov 2011 00:10:37 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pARNAaoA013538 for ; Mon, 28 Nov 2011 00:10:37 +0100 Original-Received: by bke17 with SMTP id 17so9220510bke.14 for ; Sun, 27 Nov 2011 15:10:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=grvZe0B8Pf39QjrymEmhvoCCFO+PCRK0dNij6/ecup0=; b=lIy/XL3UnHyt8akhtqhn/fQPNd4hZOcm/v0BboS+0OD470oO/9am64VKjHxNLdOz2a 5Od6TAiFTJgEaJ3YPOZaJ7nkc5L7/YbeSJPlgX6ohGwtOuBvDwVNigzCTAozKH/HrlIU i8tJa7SQtYh39Zc5ONglnuJy3cYRLhOiEZKxM= Original-Received: by 10.204.156.208 with SMTP id y16mr42887784bkw.72.1322435436580; Sun, 27 Nov 2011 15:10:36 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFD7C3.dip.t-dialin.net. [87.175.215.195]) by mx.google.com with ESMTPS id v7sm1905297fah.5.2011.11.27.15.10.33 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Nov 2011 15:10:35 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 06G2naAfP - 2d3186f905d7 - 20111128 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:72782 Archived-At: Am 27.11.2011 um 23:27 schrieb Otared Kavian: > Dear all, > = > Is it possible to have a sort of =AB local references for formulas =BB or= else to clear previous references to formulas at a certain point? > In a chapter where a certain number of exercices and formulas are to be n= umbered, assume I have the following minimal example > = > %%%%%%%%% begin > \starttext > = > Exercice 1. Prove that if $ab=3Dba$ and $2ab=3D0$ then > \placeformula[eq:1] > \startformula > (a+b)^2 =3D a^2 + b^2. > \stopformula > Using the identity (\in[eq:1]) prove that $(a=3Db)^{2n} =3D a^{2n} + b^{2= n}$. > = > \blank[big] > \hrule > \blank[big] > = > Exercice 2. Prove that for any integer $n$ > \resetnumber[formula] > %\reset[formulas][references] > \placeformula[eq:2] % I would like the reference to be [eq:1] > \startformula > (\cos(x) + {\rm i}\sin(x))^n =3D \cos(nx) + {\rm i} \sin(nx). > \stopformula > Using the identity (\in[eq:2]) % I would like here to say [eq:1] > compute $\cos{3x}$. > = > \stoptext > %%%%%%%%% end > = > I would like to be able to have the equations numbered within each exerci= se (which is in fact defined through an enumeration environment), and be ab= le to have the reference to each formula =AB local =BB within that exercise. > The resaon is that the execises and problems may have several equations w= hich are referenced to with [eq:1] through [eq:10] (say=85), and have been = prepared and given previously to students on independent sheets. When I wan= t to give out a booklet of all the exercises, then it would be handy to hav= e such a feature. > = > I understand that I am not being very clear=85 Hope someone would underst= and what I mean and need :-) Look at page 168: http://pragma-ade.com/general/manuals/cont-enp.pdf Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________