From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72780 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Resetting references or local references? Date: Sun, 27 Nov 2011 23:27:49 +0100 Message-ID: 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 1322432884 14002 80.91.229.12 (27 Nov 2011 22:28:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2011 22:28:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 27 23:28:00 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 1RUnCa-0001Hy-C9 for gctc-ntg-context-518@m.gmane.org; Sun, 27 Nov 2011 23:28:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32611CB0EE; Sun, 27 Nov 2011 23:28:00 +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 f1h8aufu4IJR; Sun, 27 Nov 2011 23:27:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 183B7CB0E7; Sun, 27 Nov 2011 23:27:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7CCBDCB0E7 for ; Sun, 27 Nov 2011 23:27:55 +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 ucv-t0lfOQib for ; Sun, 27 Nov 2011 23:27:53 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id AA917CB04D for ; Sun, 27 Nov 2011 23:27:53 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pARMRqkL011132 for ; Sun, 27 Nov 2011 23:27:53 +0100 Original-Received: by bke17 with SMTP id 17so9172570bke.14 for ; Sun, 27 Nov 2011 14:27:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=Lt3cRxsC+G4veVQ/fyfqoiZkm8JzS0BibtdhLyWlRvg=; b=xYCx8GOtHwxuxigbq+5dk3VzCG7Aqt9vppG2nvFCK4pJnZS47uwFmuySVnaTgZGhJE WV2yDs0EpGwp/uPimAzoNdEKuzz6XQX80fSkq0JnU29yOjRW98K7U4hKXaqOaHEBt3It i8UA9yN+m3KcGV4pbuw2FPYuZ3Oel5cEIAKAA= Original-Received: by 10.204.154.201 with SMTP id p9mr43444465bkw.33.1322432872154; Sun, 27 Nov 2011 14:27:52 -0800 (PST) Original-Received: from lmv-uvsq-102.home (AOrleans-553-1-20-4.w90-24.abo.wanadoo.fr. [90.24.62.4]) by mx.google.com with ESMTPS id e18sm25699929bkr.15.2011.11.27.14.27.50 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Nov 2011 14:27:51 -0800 (PST) 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: 0eG2mrQKe - f469d1f9d0c5 - 20111127 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:72780 Archived-At: Dear all, Is it possible to have a sort of =AB local references for formulas =BB or e= lse to clear previous references to formulas at a certain point? In a chapter where a certain number of exercices and formulas are to be num= bered, 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^{2n}= $. \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 exercise= (which is in fact defined through an enumeration environment), and be able= 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 whi= ch are referenced to with [eq:1] through [eq:10] (say=85), and have been pr= epared and given previously to students on independent sheets. When I want = to give out a booklet of all the exercises, then it would be handy to have = such a feature. I understand that I am not being very clear=85 Hope someone would understan= d what I mean and need :-) Best regards: OK ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________