* Alphabetical sort [not found] <mailman.3481.1317916405.4231.ntg-context@ntg.nl> @ 2011-10-06 18:11 ` Vyatcheslav Yatskovsky 2011-10-06 18:27 ` Wolfgang Schuster 0 siblings, 1 reply; 5+ messages in thread From: Vyatcheslav Yatskovsky @ 2011-10-06 18:11 UTC (permalink / raw) To: ntg-context 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 ... Regards, Vyatcheslav ___________________________________________________________________________________ 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] 5+ messages in thread
* Re: Alphabetical sort 2011-10-06 18:11 ` Alphabetical sort Vyatcheslav Yatskovsky @ 2011-10-06 18:27 ` Wolfgang Schuster 2011-10-07 8:35 ` Procházka Lukáš Ing. - Pontex s. r. o. 0 siblings, 1 reply; 5+ messages in thread From: Wolfgang Schuster @ 2011-10-06 18:27 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Alphabetical sort 2011-10-06 18:27 ` Wolfgang Schuster @ 2011-10-07 8:35 ` Procházka Lukáš Ing. - Pontex s. r. o. 0 siblings, 0 replies; 5+ messages in thread From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-10-07 8:35 UTC (permalink / raw) To: mailing list for ConTeXt users Hello, nice example - I put it to the wiki - http://wiki.contextgarden.net/Reference/en/definesorting. But the result doesn't appear with error message "internal error: pdfcrop failed", although the compilation on a computer is OK. Any idea what causes wiki compilation failure? Best regards, Lukas > \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 -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___________________________________________________________________________________ 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] 5+ messages in thread
[parent not found: <mailman.3486.1317932640.4231.ntg-context@ntg.nl>]
* Re: Alphabetical sort [not found] <mailman.3486.1317932640.4231.ntg-context@ntg.nl> @ 2011-10-07 14:16 ` Vyatcheslav Yatskovsky 2011-10-07 14:28 ` Wolfgang Schuster 0 siblings, 1 reply; 5+ messages in thread From: Vyatcheslav Yatskovsky @ 2011-10-07 14:16 UTC (permalink / raw) To: ntg-context 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Alphabetical sort 2011-10-07 14:16 ` Vyatcheslav Yatskovsky @ 2011-10-07 14:28 ` Wolfgang Schuster 0 siblings, 0 replies; 5+ messages in thread From: Wolfgang Schuster @ 2011-10-07 14:28 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-07 14:28 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <mailman.3481.1317916405.4231.ntg-context@ntg.nl> 2011-10-06 18:11 ` Alphabetical sort Vyatcheslav Yatskovsky 2011-10-06 18:27 ` Wolfgang Schuster 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
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).