to sort sections. I was wrong :-)
\definesorting[section][sections]
\setupsorting[sections][criterium=all]
% I thought something like this might work too
\definesorting[wahs]
\definesorting[wah][wahs][\getmarking[section]][\getmarking[section]]
\starttext
placelist (not sorted, as you would
oblem.
Is there a sort method that can be applied as well to sorted lists to do
this?
\definesorting[Sort][Sorts]
\starttext
\placelistofSorts[criterium=all]
\placeindex[n=1,method=default]
\index{"Hope" is the thing with feathers}
\index{Hope is the thing with feathers
]
\placebookmarks[section][section]
\def\What{This\autoinsertnextspace}
\definesorting[Name]
\setupsorting[Name][next=\autoinsertnextspace]
\Name[AName]{Knuth}
\usemodule[abr-01]
\setupsorting[logo][next=\autoinsertnextspace
\This and \AName not work, while \TEX does work?
I appreciate any feedback,
Christoph
MWE:
\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks[section][section]
\def\What{This\autoinsertnextspace}
\definesorting[Name]
\setupsorting[Name][next
]
\setupinteractionscreen[option=bookmark]
\placebookmarks[section][section]
\def\What{This\autoinsertnextspace}
\definesorting[Name]
\setupsorting[Name][next=\autoinsertnextspace]
\Name[AName]{Knuth}
\usemodule[abr-01]
\setupsorting[logo][next=\autoinsertnextspace]
\starttext
\startsection[title={\What
MWE:
\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks[section][section]
\def\What{This\autoinsertnextspace}
\definesorting[Name]
\setupsorting[Name][next=\autoinsertnextspace]
\Name[AName]{Knuth}
\usemodule[abr-01]
\setupsorting[logo][next
):
\definesynonyms
[myabbreviation]
\setupsynonyms
[myabbreviation]
[headstyle=bold,
headcolor=darkred,
synonymstyle=boldslanted,
synonymcolor=darkblue,
textstyle=slanted,
textcolor=darkgreen,
style=normal,
color=darkyellow]
\definesorting
[mylogo]
\setupsorting
=]
\definedescription
[MyEntry][alternative=serried,width=fit,before=\indentation,indenting=yes]
\unexpanded\def\MyCommand#1#2#3%
{\startMyEntry{\bi#2:}#3\stopMyEntry}
\definesorting[My][Mys]
\starttext
\startcolumnset[TwoColumns]
\definecolumnsethsize{TwoColumns}{1}{1}\One
{\placeannotationcontent}%
\endgroup
\expanded{\definitions[\DefinitionContent]{\startdefinitiondescription[title={\placeannotationtitle}]\placeannotationcontent\stopdefinitiondescription}}}
\defineannotation[definition][alternative=command,command=\DefintionCommand]
\definesorting[definitions
\dict{command: orden} for a complex\dict{complex: complejo}
text\dict{text: texto}.
\stoptext
What I'm trying to achieve is that the \dict footnotes are sorted
alphabetically.
Adding the code from sorted lists, I get the following:
\definesorting[meaning][meanings]
\setupsorting[meaning
the following:
\definesorting[meaning][meanings]
\setupsorting[meaning][criterium=all]
\definenote[dict]
\setupnote[dict][number=no,command=\placelistofmeanings]
\setupnotation[dict][number=no,command=\meaning]
\starttext
This is my dictionary\dict{dictionary: vocabulario}
command\dict{command: orden
Hi!
I have two questions about sort lists.
1) Is there a way to reset (empty) the sorting list, to reuse it several
times?
\definesorting[song][songs]
\unexpanded\def\SongEntry#1#2#3%
{#2 \crlf}
\starttext
\startlinenumbering
\startlines
\setupinterlinespace[big]
\song{Sway}
\song{Hit
Hello,
nice example - I put it to the wiki -
http://wiki.contextgarden.net/Reference/en/definesorting.
But the result doesn't appear with error message internal error: pdfcrop
failed, although the compilation on a computer is OK.
Any idea what causes wiki compilation failure?
Best regards
\item Fly me to the moon
\item Hit the road jack
\item Sway
…
\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
Hi Hans,
also with the newest beta—the bug is still there.
\definesorting[test][texts]
\setupsorting [test][criterium=all,after=\hairline]
\starttext
\test{bb} \test{cc} \test{xx} \test{aa}
% \placelistofsorts[test][] % works (but one can't customize the formatting)
% \placelistoftests
For a small manual-type document I am trying to include a phone
directory. I would like it to be sorted. The following produces no
output other than test. Shouldn't it?
Johan Sandblom
\starttext
test
\definesorting[telefon][telefoner]
\setupsorting[telefon][criterium=all]
\telefon{Milad El
would like it to be sorted. The following produces no
output other than test. Shouldn't it?
Johan Sandblom
\starttext
test
\definesorting[telefon][telefoner]
\setupsorting[telefon][criterium=all]
\telefon{Milad El Segaie, 0746231022}
\telefon{Carina C, 33050}
\placelistoftelefoner
.
\def\doplacesectiontitles#1:#2\relax
{\line{#1\hfill\hbox to 3em{#2\hss}}}
\def\placesectiontitles#1%
{\doplacesectiontitles#1\relax}
\definesorting
[sectiontitle]
[sectiontitles]
\setupsorting
[sectiontitle]
[criterium=all,
command=\placesectiontitles]
\def\titleformat#1
name of your choosing for this macro)
Cheers
Carsten
%-- setting things up -
\definesorting[Figure][Figures]
\setupsorting[Figure][criterium=all]
\newcounter\FigureCounter
\def\PlaceFigure{\dodoubleempty\doPlaceFigure}
\def\doPlaceFigure[#1][#2]#3#4{
\ifsecondargument
\definerawfont[name][file][settings]
\definereference[name][references]
\definereferenceformat[name][options]
\definereferencelist[name][settings]
\defineregister[singular][plural]
\definerule[name][settings]
\definesection[name]
\definesectionblock[name][settings]
\definesorting[singular][plural
Hi,
I found a bug in the mkiv code with the \definsorting macros. When I
try to output the sorted list with \placelistofsorts ConTeXt give me
only the name of the sort list but not the list entries.
\definesorting[test][tests]
\starttext
\test[One]{one}
\test[Two]{Two}
\test[Three]{3}
text
. With \definesorting or \abbreviation, you
can also get a list of logos or list of abbreviations free of cost :).
Look up the manual for details. And as a futher incentive, you can use
\setupsorting[logo][next=\autoinsertnextspace]
to get the behaviour you want.
Aditya
it through the unix sort command):
% This sorts the list contained in it's argument
\def\sortalphacommacommand#1%
{\definesorting[listsort][listsorts]%
\processcommacommand[#1]\listsort
\def\sortedcommalist{}%
\def\makesortedlist##1%
{\doglobal\appendtocommalist{##1
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
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
of the commands? Manually like the
solution above or with something like definesorting?
Is there a good way doing this?
Thanks a lot
Hubertus
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
Bernd Militzer wrote:
Hello,
is it possible to produce a sorted list without unsing the entry
\Ueberall in text?
%
\definesorting[person][personen]
\setupsorting[person][criterium = all]
%
\person{Unsinn, Klaus}
\person{Militzer, Bernd}
\person{Horten, Hans}
\person[Ueberall]{Überall, Heinrich
}
\exportsortexpansion{Udiaeresis}{u+4}
\exportsortdivision{u+1}{u}
\exportsortdivision{u+2}{u}
\exportsortdivision{u+3}{u}
\exportsortdivision{u+4}{u}
\stopmode
\setmode{sortorder-de}
\starttext
\definesorting[person][personen]
\setupsorting[person][criterium = all]
%\def\person#1{#1\expanded{\index
Dear Hans and ConTeXters,
I go back to this question since it was not answered:
is possible to change sorting order (e.g. sort in reverse order: not A, B,
C but C, B, A) in the
mechanism:
-
\definesorting[address][addressbook]
\setupsorting[address][criterium=all]
\address
Hallo ConTeXt debaters,
is possible to change sorting order (e.g. sort in reverse order) in the
mechanismn:
-
\definesorting[address][addressbook]
\setupsorting[address][criterium=all]
\address{A}
\address{B}
\placelistofaddressbook
-
Thanks
Vit Zyka
30 matches
Mail list logo