From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71604 Path: news.gmane.org!not-for-mail From: Vyatcheslav Yatskovsky Newsgroups: gmane.comp.tex.context Subject: Re: Alphabetical sort Date: Fri, 07 Oct 2011 17:16:28 +0300 Message-ID: <4E8F09BC.5080604@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1317997030 12254 80.91.229.12 (7 Oct 2011 14:17:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 14:17:10 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 07 16:17:02 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 1RCBEU-0001fg-2B for gctc-ntg-context-518@m.gmane.org; Fri, 07 Oct 2011 16:17:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CCEE1CB000; Fri, 7 Oct 2011 16:17:00 +0200 (CEST) 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 Nedaw+T+vVwj; Fri, 7 Oct 2011 16:16:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ED0ECCAFF4; Fri, 7 Oct 2011 16:16:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AA012CAFF4 for ; Fri, 7 Oct 2011 16:16:53 +0200 (CEST) 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 qMpoDV7oHJuX for ; Fri, 7 Oct 2011 16:16:39 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id EF39ACA680 for ; Fri, 7 Oct 2011 16:16:38 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p97EGcXE006186 for ; Fri, 7 Oct 2011 16:16:38 +0200 Original-Received: by bkbzs2 with SMTP id zs2so6033757bkb.14 for ; Fri, 07 Oct 2011 07:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=f8tdndXKueDy0vT2cfC0HtBUuuYWfZVq//nEKL0Hv2I=; b=DKSMrCXuIHjriXrn7ICOP+I2I7ah446cIRQThk6AM4gu+hP+scsSieL+yRvmtvQ/+E +SCBGToefc2sMmCzAfc3bOtzGQIQyagdRXqw4HPCWQ/9Uh8qAuIcf6og5lX/J8/QaGiM HdEFUL1eUEsrZCsRFT+NPdRSpMrjNevFlk69A= Original-Received: by 10.204.154.28 with SMTP id m28mr1455179bkw.84.1317996997861; Fri, 07 Oct 2011 07:16:37 -0700 (PDT) Original-Received: from [10.0.22.59] ([46.151.80.66]) by mx.google.com with ESMTPS id ex8sm9219542bkc.2.2011.10.07.07.16.35 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 07:16:36 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: 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: 0cFFOgCQf - df939e231b95 - 20111007 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:71604 Archived-At: Fantastic snippet, thank you Wolfgang! My original code is a bit more complicated, it often (but not always) involves artist, tempo and tonality data, like this \define[1]\artist{{\itx #1}} \define[1]\bpm{{\tfx #1 bpm}}} ... \item Sway \artist{Pussycat Dolls} \bpm{136-138} \item Fly me to the moon \key{Em} \artist{Julie London} \item Hit the road jack \key{Am} \artist{Ray Charles} \bpm{94} ... How can I incorporate this optional data into song? My guess \song{Hit the road jack \bpm{94}} does not work. -- Best Regards, Vyatcheslav Yatskovsky ___________________________________________________________________________________ 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 ___________________________________________________________________________________