* Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value @ 2013-08-07 17:40 Michael Scholtz 2013-08-07 20:13 ` Hans Hagen 0 siblings, 1 reply; 4+ messages in thread From: Michael Scholtz @ 2013-08-07 17:40 UTC (permalink / raw) To: mailing list for ConTeXt users Hi, the publication list can be configured with `\setuppublications` to be sorted by cite order (`sorttype=cite`) or the order of the publication entries (`sorttype=bbl`). With the following setup the "short names" of the publication entries are used for cite references: \setuppublications[ criterium=text, sorttype=cite, % <– "short"? refcommand=short, numbering=short, ... ] The short names are set using the `s` attribute: \startpublication[ s={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 alphabetical order by these short names to allow a faster lookup of publications. Currently I'm using the "filter" module and a Tcl script to sort the publication entries ( http://tex.stackexchange.com/q/126939/7074 ), but it might be useful if something like a `sorttype=short` option would be added. Regards, Michael ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value 2013-08-07 17:40 Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value Michael Scholtz @ 2013-08-07 20:13 ` Hans Hagen 2013-08-08 7:29 ` Michael Scholtz 0 siblings, 1 reply; 4+ messages in thread From: Hans Hagen @ 2013-08-07 20:13 UTC (permalink / raw) To: ntg-context On 8/7/2013 7:40 PM, Michael Scholtz wrote: > Hi, > > the publication list can be configured with `\setuppublications` to be sorted by cite order (`sorttype=cite`) or the order of the publication entries (`sorttype=bbl`). > > With the following setup the "short names" of the publication entries are used for cite references: > > \setuppublications[ > criterium=text, > sorttype=cite, % <– "short"? > refcommand=short, > numbering=short, > ... > ] > > The short names are set using the `s` attribute: > > \startpublication[ > s={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 alphabetical order by these short names to allow a faster lookup of publications. > > Currently I'm using the "filter" module and a Tcl script to sort the publication entries ( http://tex.stackexchange.com/q/126939/7074 ), but it might be useful if something like a `sorttype=short` option would be added. I added 'short' as sorttype .. untested as no example. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value 2013-08-07 20:13 ` Hans Hagen @ 2013-08-08 7:29 ` Michael Scholtz 2013-08-08 8:50 ` Hans Hagen 0 siblings, 1 reply; 4+ messages in thread From: Michael Scholtz @ 2013-08-08 7:29 UTC (permalink / raw) To: mailing list for ConTeXt users On 07.08.2013, at 22:13, Hans Hagen <pragma@wxs.nl> wrote: > On 8/7/2013 7:40 PM, Michael Scholtz wrote: >> Hi, >> >> the publication list can be configured with `\setuppublications` to be sorted by cite order (`sorttype=cite`) or the order of the publication entries (`sorttype=bbl`). >> >> With the following setup the "short names" of the publication entries are used for cite references: >> >> \setuppublications[ >> criterium=text, >> sorttype=cite, % <– "short"? >> refcommand=short, >> numbering=short, >> ... >> ] >> >> The short names are set using the `s` attribute: >> >> \startpublication[ >> s={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 alphabetical order by these short names to allow a faster lookup of publications. >> >> Currently I'm using the "filter" module and a Tcl script to sort the publication entries ( http://tex.stackexchange.com/q/126939/7074 ), but it might be useful if something like a `sorttype=short` option would be added. > > I added 'short' as sorttype .. untested as no example. Great, thanks! Here an example for testing: \setuppublications[ alternative=apa-de, criterium=text, sorttype=short, refcommand=short, numbering=short, autohang=yes, setupinteraction=start, ] \setuppublicationlist[ samplesize={AAAAAA}, author=\invertedauthor, artauthor=\invertedauthor, ] %=== entries === \startpublication[ k=jd42, t=book, a={Doe}, y=2042, n=1, s={JD42}, ] \author[]{John}[]{}{Doe} \pubyear{2042} \title{Greetings form the future} \stoppublication \startpublication[ k=bh2008, t=book, a={Bringhurst}, y=2008, n=1, s={ELEM}, ] \author[]{Robert}[]{}{Bringhurst} \pubyear{2008} \title{The Elements of Typographic Style} \edition{3.2} \city{Point Roberts WA, Vancouver} \stoppublication \startpublication[ k=taco1999, t=article, a=Hoekwater, y=1999, s=TH99, n=1 ] \artauthor[]{Taco}[T.]{}{Hoekwater} \arttitle{\CONTEXT\ Publication Module, The user documententation} \journal{MAPS} \pubyear{To appear} \note{This article} \pages{66--76} \stoppublication \startpublication [ k=fielding2000, t=phdthesis, a={Fielding}, y=2000, n=1, s={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 %=== /entries === \starttext Foo \cite[fielding2000]. Bar \cite[taco1999]. Baz \cite[bh2008]. Bla \cite[jd42]. \completepublications \stoptext Michael ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value 2013-08-08 7:29 ` Michael Scholtz @ 2013-08-08 8:50 ` Hans Hagen 0 siblings, 0 replies; 4+ messages in thread From: Hans Hagen @ 2013-08-08 8:50 UTC (permalink / raw) To: ntg-context On 8/8/2013 9:29 AM, Michael Scholtz wrote: > Here an example for testing: uploading a beta .. we now have: sorttype=cite|short|reference Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-08 8:50 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-08-07 17:40 Feature-Request: Sort bibliography entries in alphabetical order by the entries' “short” value Michael Scholtz 2013-08-07 20:13 ` Hans Hagen 2013-08-08 7:29 ` Michael Scholtz 2013-08-08 8:50 ` Hans Hagen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).