From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83741 Path: news.gmane.org!not-for-mail From: Michael Scholtz Newsgroups: gmane.comp.tex.context Subject: Re: =?windows-1252?q?Feature-Request=3A_Sort_bibliograp?= =?windows-1252?q?hy_entries_in_alphabetical_order_by_the_entries=27_=93sh?= =?windows-1252?q?ort=94_value?= Date: Thu, 8 Aug 2013 09:29:00 +0200 Message-ID: <2B73ACC7-4739-4539-9CF4-9DD987D78727@gmail.com> References: <86F20A56-7ADE-4DB4-AB5B-C52D5CE69A38@gmail.com> <5202AA87.8020409@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1375946965 26296 80.91.229.3 (8 Aug 2013 07:29:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2013 07:29:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 08 09:29:29 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V7Kf2-0002J0-LY for gctc-ntg-context-518@m.gmane.org; Thu, 08 Aug 2013 09:29:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1653110202; Thu, 8 Aug 2013 09:28:44 +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 NZsnx4A567K0; Thu, 8 Aug 2013 09:28:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 18E53101FB; Thu, 8 Aug 2013 09:28:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DEF12101FB for ; Thu, 8 Aug 2013 09:28:31 +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 BPTCVwQgyHIh for ; Thu, 8 Aug 2013 09:28:21 +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 0BD31101F6 for ; Thu, 8 Aug 2013 09:28:20 +0200 (CEST) Original-Received: from mail-bk0-x22d.google.com (mail-bk0-x22d.google.com [IPv6:2a00:1450:4008:c01::22d]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r787T3KO028294 for ; Thu, 8 Aug 2013 09:29:03 +0200 Original-Received: by mail-bk0-f45.google.com with SMTP id mx11so551429bkb.32 for ; Thu, 08 Aug 2013 00:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=6k3nQAM00OJ5/KcB+qORDXPygv/7FGLBwFd2HpMnNGI=; b=uvb3tB18v8a2CwCc+yXsei3JbyUyJZ24nmKN/nvxXTGfWygUBLpcAhr8U29Qw9YGKS eS4lx7rubHN2Uwbx3XzraeGZ73JpIayus63NX9UuH5yZ9NZKW0B/ij8LXTn8NIYEG8YW a2pdliHove7YbLpzCBdS81Z38tv9hh9+9zxErVO6WphlzFrpAxldshsXiP/E9/s+P0rR w7pbe5nJzi/XODC9z8kLPdWl5eLvYhELM89GuCuzBVJHMObk0jDiYMqWMJPKEynbVV/Q fL6zjPPomEXp+hLHYdobLfBkVNS7s/XL0WV+DeIqO3QvuWYq4wpj0VBxpd1F2PRwkaGR 0o6w== X-Received: by 10.205.134.198 with SMTP id id6mr1073264bkc.121.1375946943527; Thu, 08 Aug 2013 00:29:03 -0700 (PDT) Original-Received: from camo144-122.hrz.tu-chemnitz.de (camo144-122.hrz.tu-chemnitz.de. [134.109.144.122]) by mx.google.com with ESMTPSA id if11sm2320761bkc.15.2013.08.08.00.29.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 00:29:02 -0700 (PDT) In-Reply-To: <5202AA87.8020409@wxs.nl> X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22d; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Ka7t36H - 0fbffaad1d82 - 20130808 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83741 Archived-At: On 07.08.2013, at 22:13, Hans Hagen wrote: > On 8/7/2013 7:40 PM, Michael Scholtz wrote: >> Hi, >> = >> the publication list can be configured with `\setuppublications` to be s= orted by cite order (`sorttype=3Dcite`) or the order of the publication ent= ries (`sorttype=3Dbbl`). >> = >> With the following setup the "short names" of the publication entries ar= e used for cite references: >> = >> \setuppublications[ >> criterium=3Dtext, >> sorttype=3Dcite, % <=96 "short"? >> refcommand=3Dshort, >> numbering=3Dshort, >> ... >> ] >> = >> The short names are set using the `s` attribute: >> = >> \startpublication[ >> s=3D{RFC2616}, >> ... >> ] >> ... >> \stoppublication >> = >> A cite with this setup would look like "[RFC2616]". >> = >> In a long bibliography list it is useful if the entries are sorted in al= phabetical order by these short names to allow a faster lookup of publicati= ons. >> = >> Currently I'm using the "filter" module and a Tcl script to sort the pub= lication entries ( http://tex.stackexchange.com/q/126939/7074 ), but it mig= ht be useful if something like a `sorttype=3Dshort` option would be added. > = > I added 'short' as sorttype .. untested as no example. Great, thanks! Here an example for testing: \setuppublications[ alternative=3Dapa-de, criterium=3Dtext, sorttype=3Dshort, refcommand=3Dshort, = numbering=3Dshort, = autohang=3Dyes, setupinteraction=3Dstart, ] \setuppublicationlist[ samplesize=3D{AAAAAA}, author=3D\invertedauthor, artauthor=3D\invertedauthor, ] %=3D=3D=3D entries =3D=3D=3D \startpublication[ k=3Djd42, t=3Dbook, a=3D{Doe}, y=3D2042, n=3D1, s=3D{JD42}, ] \author[]{John}[]{}{Doe} \pubyear{2042} \title{Greetings form the future} \stoppublication \startpublication[ k=3Dbh2008, t=3Dbook, a=3D{Bringhurst}, y=3D2008, n=3D1, s=3D{ELEM}, ] \author[]{Robert}[]{}{Bringhurst} \pubyear{2008} \title{The Elements of Typographic Style} \edition{3.2} \city{Point Roberts WA, Vancouver} \stoppublication \startpublication[ k=3Dtaco1999, = t=3Darticle, a=3DHoekwater, y=3D1999, s=3DTH99, n=3D1 ] \artauthor[]{Taco}[T.]{}{Hoekwater} \arttitle{\CONTEXT\ Publication Module, The user documententation} \jou= rnal{MAPS} \pubyear{To appear} \note{This article} \pages{66--76} \stoppublication \startpublication [ k=3Dfielding2000, t=3Dphdthesis, a=3D{Fielding}, y=3D2000, n=3D1, s=3D{FIE2000}, ] \author[]{Roy Thomas}[R. T.]{}{Fielding} \title{Architectural Styles and the Design of Network-based Software = Architectures} \pubname{University of California, Irvine} \isbn{0-599-87118-0} \stoppublication %=3D=3D=3D /entries =3D=3D=3D \starttext Foo \cite[fielding2000]. Bar \cite[taco1999]. Baz \cite[bh2008]. Bla \c= ite[jd42]. \completepublications \stoptext Michael ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________