ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bernd Militzer <bernd@militzer.net>
Subject: Sorting question
Date: Sun, 22 Jan 2006 11:17:08 +0100	[thread overview]
Message-ID: <1137925029.4142.3.camel@eagle.intern> (raw)
In-Reply-To: <43D2A70D.1000703@apostate.com>

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

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}
%
\placelistofpersonen


Any ideas?

Thanks, Bernd


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: testsort.tex --]
[-- Type: text/x-tex; name=testsort.tex; charset=UTF-8, Size: 2633 bytes --]

%#ConTeXt

%
%   allgemeine Grundeinstellung
%
\enableregime[windows]          % Eingabe-Codierung
\mainlanguage[de]               % Sprachmodus	
\usetypescript[modern][texnansi] 
\setupbodyfont[12pt]
%
%   Die besondere Seitenanpassung
%
\setuppapersize[a4][a4]
\setuplayout[location=singlesided]

\setuplayout[
    backspace=2.46cm,topspace=1.2cm,
    top=0cm,bottom=0cm,topdistance=0cm,bottomdistance=0cm,
    header=1.5cm,footer=1.0cm,headerdistance=0cm,footerdistance=0cm,
    leftedge=0cm,rightedge=0cm,leftedgedistance=0cm,rightedgedistance=0cm,
    leftmargin=1.5cm,rightmargin=1.0cm,leftmargindistance=0.42cm,rightmargindistance=0.42cm,
    width=16.5cm,height=27.4cm,
]
%
%
%   Zähler für die lfdNr.
%
    \global\newcount\xlfd \xlfd=0
% 
    \def\LFD{\futurelet\testchar\MitOptArgLFD}
    %

    \def\MitOptArgLFD{\ifx[\testchar%
     \let\next\OptArgLFD \else %
     \let\next \NoOptArgLFD \fi \next}
    %
    % setzte den Zähler auf bestimmten Wert
    %
    \def\OptArgLFD[#1]{%
        {\global\xlfd=\number#1}
    }
    %
    % erhöhe den Wert um 1
    % und gebe den Zähler aus
    % Besonderheit 
    % zweistellige Ausgabe der Zahl also 01., 02. ... 10. 11. ...
    % und Punkt
    %
    \def\NoOptArgLFD{%
    {\global\advance\xlfd by 1\relax}
	\ifnum\xlfd<10
	0\fi
    \number\xlfd.
    }
%
%    Linie nach dem Namen
%
    \def\myrule{ {\thinrules[n=1]\par}}
%
%
%
\starttext
%
%
% 1. ex no prob
%

\definesorting[personA][personenA]
\setupsorting[personA][criterium = all,before=\LFD,after=\myrule]

\personA{Unsinn, Klaus}
\personA{Militzer, Bernd}
\personA{Horten, Hans}


\placelistofpersonenA

\page

% 2. ex prob Überall on wrong position

%

\definesorting[personB][personenB]
\setupsorting[personB][criterium = all,before=\LFD,after=\myrule]

\personB{Unsinn, Klaus}
\personB{Militzer, Bernd}
\personB{Horten, Hans}
\personB{Überall, Heinrich}

\placelistofpersonenB

\page

% 3. ex prob Überall is missing

%
\definesorting[personC][personenC]
\setupsorting[personC][criterium = all,before=\LFD,after=\myrule]

\personC{Unsinn, Klaus}
\personC{Militzer, Bernd}
\personC{Horten, Hans}
\personC[Ueberall]{Überall, Heinrich}

\placelistofpersonenC

\page

% 4. ex prob Überall is missing

%
\definesorting[personD][personenD]
\setupsorting[personD][criterium = all,before=\LFD,after=\myrule]

\personD{Unsinn, Klaus}
\personD{Militzer, Bernd}
\personD{Horten, Hans}
\personD[Ueberall]{Überall, Heinrich}

First I use \Ueberall\ in text

\placelistofpersonenD

\page

\stoptext

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2006-01-22 10:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-21 21:26 AutoDroppedCaps and indenting Joshua Ellis
2006-01-22 10:17 ` Bernd Militzer [this message]
2006-01-22 17:02   ` Sorting question Vit Zyka
2006-01-22 19:36     ` Mojca Miklavec
2006-01-23  0:06       ` Henning Hraban Ramm
2006-01-23  0:08       ` Vit Zyka
2006-01-23  0:19         ` Henning Hraban Ramm
2006-01-23 23:26           ` Vit Zyka
2006-01-23 18:55 ` AutoDroppedCaps and indenting Joshua Ellis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1137925029.4142.3.camel@eagle.intern \
    --to=bernd@militzer.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).