Difference between revisions of "Command/definesorting"
< Command
Jump to navigation
Jump to search
(Create reference page) |
|||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
{{Reference | {{Reference | ||
|name=definesorting | |name=definesorting | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>definesorting</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 32: | Line 33: | ||
== Example == | == Example == | ||
<!-- Please fill in an example if you can --> | <!-- Please fill in an example if you can --> | ||
+ | (By WS, 10/2011, mail thread "Alphabetical sort") | ||
+ | |||
+ | <texcode> | ||
+ | \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 | ||
+ | </texcode> | ||
+ | <context> | ||
+ | \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 | ||
+ | </context> | ||
== See also == | == See also == | ||
− | <!-- something like | + | <!-- something like {{cmd|goto}} --> |
+ | |||
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[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: