From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71605 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Alphabetical sort Date: Fri, 7 Oct 2011 16:28:54 +0200 Message-ID: References: <4E8F09BC.5080604@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1317997773 17995 80.91.229.12 (7 Oct 2011 14:29:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 14:29:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 07 16:29:29 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 1RCBQX-0007AQ-7v for gctc-ntg-context-518@m.gmane.org; Fri, 07 Oct 2011 16:29:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1F71ACB008; Fri, 7 Oct 2011 16:29:28 +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 5hCwaxYTL7pc; Fri, 7 Oct 2011 16:29:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8716ECAFF4; Fri, 7 Oct 2011 16:29:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8A96CAFF4 for ; Fri, 7 Oct 2011 16:29:21 +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 OULz7VgtSBiS for ; Fri, 7 Oct 2011 16:29:09 +0200 (CEST) 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 F136CCA680 for ; Fri, 7 Oct 2011 16:29:08 +0200 (CEST) Original-Received: from mail-yw0-f41.google.com (mail-yw0-f41.google.com [209.85.213.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p97ET7On018017 for ; Fri, 7 Oct 2011 16:29:08 +0200 Original-Received: by ywe9 with SMTP id 9so4865522ywe.14 for ; Fri, 07 Oct 2011 07:29:07 -0700 (PDT) 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=J2opH37AKmaqgJdxGanhuiWsmGoLIa8Amnik0ly7f8Y=; b=TWqLBke/wIcYRHbFLv8ZGvlFY/s96na3LAjt0GdIbO3gayvfr4tL9HeEpWHIxdMRBC jtCGo97rUJxd/41GH1+oqTX7TGD9IjDPYmvnxCuWpkD9i+U7NkjSwYD34PA53qIjtxZz lGrZcj2cL3iKGApSEW8wZNw4Zysq6k/TgEv8Q= Original-Received: by 10.223.61.146 with SMTP id t18mr11123594fah.34.1317997746964; Fri, 07 Oct 2011 07:29:06 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482CF64.dip.t-dialin.net. [84.130.207.100]) by mx.google.com with ESMTPS id a1sm12979942fab.4.2011.10.07.07.29.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 07:29:05 -0700 (PDT) In-Reply-To: <4E8F09BC.5080604@gmail.com> X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.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: 06FFOt7Aa - 36a3425208e5 - 20111007 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:71605 Archived-At: Am 07.10.2011 um 16:16 schrieb Vyatcheslav Yatskovsky: > 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. There is a easy way to find out if it works: 1. Create a new file, 2. add the code you want to test and 3. run ConTeXt. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________