From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Alphabetical sort
Date: Thu, 6 Oct 2011 20:27:53 +0200 [thread overview]
Message-ID: <5F86AB23-398D-4D0B-A8DC-198252F5720F@googlemail.com> (raw)
In-Reply-To: <4E8DEF65.4080205@gmail.com>
Am 06.10.2011 um 20:11 schrieb Vyatcheslav Yatskovsky:
> Hi!
>
> Please, advise me what I can do to alphabetically sort an itemized list? (I have list of songs, and want them to be alphabetically sorted, as an option ).
>
> \startitemize[n] %something like 'sort' key would be very useful
> \item Fly me to the moon
> \item Hit the road jack
> \item Sway
> …
\definesorting[song][songs]
\unexpanded\def\SongEntry#1#2#3%
{\startitemize[packed]
\startitem#2\stopitem
\stopitemize}
\starttext
\song{Hit the road jack}
\song{Sway}
\song{Fly me to the moon}
\placelistofsorts[song][criterium=all,command=\SongEntry]
\stoptext
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-10-06 18:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3481.1317916405.4231.ntg-context@ntg.nl>
2011-10-06 18:11 ` Vyatcheslav Yatskovsky
2011-10-06 18:27 ` Wolfgang Schuster [this message]
2011-10-07 8:35 ` Procházka Lukáš Ing. - Pontex s. r. o.
[not found] <mailman.3486.1317932640.4231.ntg-context@ntg.nl>
2011-10-07 14:16 ` Vyatcheslav Yatskovsky
2011-10-07 14:28 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5F86AB23-398D-4D0B-A8DC-198252F5720F@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).