* sorting list
@ 2006-07-23 17:45 Hans van der Meer
2006-07-24 10:27 ` Taco Hoekwater
0 siblings, 1 reply; 2+ messages in thread
From: Hans van der Meer @ 2006-07-23 17:45 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 880 bytes --]
Some things I do not understand about sorting:
This is the example:
\def\sortprocess#1{{\bf #1}}
\definesorting[city][cities][\callupcities]
\setupsorting[city][criterium=all,command=\sortprocess]
\city{Londen}
\city{Berlijn}
\city{New York}
\city{Parijs}
\city{Amstelveen}
\placelistofcities
\callupcities
question 1. The manual states (p.163) "When we add a command in the
third argument during the definition of the sorted list we may recall
sorted list with this command."
However \callupcities gives me this error:
Runaway argument?
! Paragraph ended before \callupcities was complete.
<to be read again>
\par
question 2. The command \sortprocess does work, the items are in
bold. But they now are typeset next to one another instead of each
one on a line by itself, as occurs without command=\sortprocess on
the setup.
Hans van der Meer
[-- Attachment #1.2: Type: text/html, Size: 2737 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sorting list
2006-07-23 17:45 sorting list Hans van der Meer
@ 2006-07-24 10:27 ` Taco Hoekwater
0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2006-07-24 10:27 UTC (permalink / raw)
Hans van der Meer wrote:
> Some things I do not understand about sorting:
>
> This is the example:
> \def\sortprocess#1{{\bf #1}}
> \definesorting[city][cities][\callupcities]
> \setupsorting[city][criterium=all,command=\sortprocess]
> \city{Londen}
> \city{Berlijn}
> \city{New York}
> \city{Parijs}
> \city{Amstelveen}
> \placelistofcities
> \callupcities
>
> question 1. The manual states (p.163) "When we add a command in the
> third argument during the definition of the sorted list we may recall
> sorted list with this command."
> However \callupcities gives me this error:
> Runaway argument?
> ! Paragraph ended before \callupcities was complete.
> <to be read again>
> \par
\callupcities takes an argument, that is what is causing the
error message. But how it is supposed to work, I do not know.
> question 2. The command \sortprocess does work, the items are in bold.
> But they now are typeset next to one another instead of each one on a
> line by itself, as occurs without command=\sortprocess on the setup.
You have to extend \sortprocess if you want something besides making
a bold inlined list of cities. Why? Consider this idiom:
\def\citylist{}
\def\makecitylist#1{\doglobal\appendtocommalist{#1}\citylist}
\setupsorting[city][criterium=all,command=\makecitylist]
Cheers, Taco
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-24 10:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-23 17:45 sorting list Hans van der Meer
2006-07-24 10:27 ` Taco Hoekwater
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).