Difference between revisions of "Command/definesorting"

From Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>definesorting</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 66: Line 69:
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
  
== Help from ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 
All issues with:
 
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Sorting|definesorting]]
+
[[Category:Command/Sorting|definesorting]]

Latest revision as of 19:32, 13 January 2020

\definesorting

Syntax (autogenerated)

\definesorting[...][...][...]
[...]singular
[...]plural
[...]none csname


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: