From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47959 Path: news.gmane.org!not-for-mail From: Mikael Persson Newsgroups: gmane.comp.tex.context Subject: Re: Two questions - Cross Referencing (Automated label generation + Random items) Date: Wed, 4 Mar 2009 17:04:31 +0100 Message-ID: References: <6A462629-D6C0-4A9C-81E7-E5B130A4CB7D@gmail.com> <567CE7CB-9D51-4180-9B30-2AE8CFCB9CA2@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236182782 18759 80.91.229.12 (4 Mar 2009 16:06:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2009 16:06:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 04 17:07:38 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Letcc-0003pr-1S for gctc-ntg-context-518@m.gmane.org; Wed, 04 Mar 2009 17:07:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C31471FB1F; Wed, 4 Mar 2009 17:05:36 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25396-01-4; Wed, 4 Mar 2009 17:04:46 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7BF1E1FB1D; Wed, 4 Mar 2009 17:04:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A7D821FADF for ; Wed, 4 Mar 2009 17:04:44 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24773-02-2 for ; Wed, 4 Mar 2009 17:04:33 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id A67051FB3C for ; Wed, 4 Mar 2009 17:04:33 +0100 (CET) Original-Received: from mail-fx0-f167.google.com (mail-fx0-f167.google.com [209.85.220.167]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n24G4VbR029920 for ; Wed, 4 Mar 2009 17:04:32 +0100 Original-Received: by fxm11 with SMTP id 11so3173159fxm.2 for ; Wed, 04 Mar 2009 08:04:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=X/bq9kxpIbjoMmxu6e8hKlxQVcTiPi598D8gx34FmJA=; b=Pj5INMt6se8ey62BR+GBMsOBlvezT9V15xFgkJEBS9eUM/CT0HpVmUc6NDdsME2uAe zwVr/ihCf4FHpWcFgamwp3L+6p69eANkoVrCRWkojtYnIkN5pFvVohqHQ9PrEcT5Y8Jf Zb80WHMhah09yfgaE7/hxK5J3zbDI0lBY/1R4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=TIjF0YLbrwg/LZhPwjLgx1itjjcgGemNTzb+6bkGcYPGBrNd+4Bp8kTRJg0v8mTdQV deUBL6eQ2hR+4D2T6P08o4f9d8IZtEiyBrWOFqCt94tolEIYxv9Z4vnEGriDOvYn4cht dvziZI0lfrZIy9pcAJS9C7EXcEOtK0aYP/Kkg= Original-Received: by 10.86.66.19 with SMTP id o19mr193191fga.68.1236182671231; Wed, 04 Mar 2009 08:04:31 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.167; 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: 188579775 - 16a7ce446a73 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47959 Archived-At: On Wed, Mar 4, 2009 at 4:53 PM, Curious Learn wrot= e: > >> The low level way to do this is: >> >> \def\AnsT#1\eAns >> =A0 =A0{\doglobal\increment\choicecounter >> =A0 =A0 \startitem[\choicecounter]#1\stopitem} >> > >> Wolfgang > > > Beautiful! Thanks again Wolfgang. I tried the low level command and it wo= rks > great. I will try the Context way later. > > Hans, thanks very much for bringing to my attention the file m-educat.tex= . Can > you please tell me where I can find it? > > Even if I do not use it as it is, I am sure I can learn something and it = can > give me some ideas. > Dear Curious Learn (strange name, it can be considered rude not to use the real one) You can find m-educat.tex at tex/texmf-context/tex/context/base/m-educat.tex if you use the minimals It is also listed at http://wiki.contextgarden.net/Modules if you dont have that installation. Best regards, Mikael Persson ___________________________________________________________________________= ________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________