Difference between revisions of "Command/definesorting"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Category:(.*)" to "Category:Command/$1")
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
Line 66: Line 66:
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 04:40, 23 March 2012

\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: