Command/definesorting

From Wiki
< Command
Revision as of 00:49, 18 March 2012 by Jannis (talk | contribs) (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==")
Jump to navigation Jump to search

\definesorting

Syntax

\definesorting[...][...][...]
[...] singular
[...] plural
[...] command


Description

Example

(By WS, 10/2011, mail thread "Alphabetical sort")

\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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: