ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Sorting of abbreviations in index
Date: Sun, 24 Sep 2017 00:45:37 +0200	[thread overview]
Message-ID: <5AF879E4-42C3-492F-8596-1D880117D3B6@fiee.net> (raw)
In-Reply-To: <D0D8CB29-AE12-4404-9E97-A51BB07F1660@fiee.net>

So, in extension of my previous question:
I’m combining abbreviations and registers (index).
My author wants organizations listed with full name and abbreviation, and I try to avoid many verbose entries in the text.

If I use \infull within \index, entries get sorted at i – probably a problem of expansion. How can I solve this?

\Sach[\infull{ADN}]{\infull{ADN} (ADN)} doesn’t help.

-----

\mainlanguage[de]
\setupsynonyms [abbreviation] [textstyle=normal]

\abbreviation{Abt.}{Abteilung}
\abbreviation{ADN}{Allgemeiner Deutscher Nachrichtendienst}
\abbreviation{AFL}{American Federation of Labor}
\abbreviation{ANC}{African National Congress}
\abbreviation{AV}{Auslandsvertretung}
\abbreviation{BArch}{Bundesarchiv}

\defineregister[Sach][
  pagestyle=normal,
  compress=yes,
  indicator=no,
]
\setupregister[Sach][style=normal]

\def\Abk#1{\Sach{\infull{#1} (#1)}{\sc\lowercase{#1}}}
%\def\qAbk#1{\Sach{\infull{#1} (#1)}}


\starttext
\section{Intro}
\Sach{Abenteuer}\Sach{Abba}\Sach{Alliteration}
\Sach{Berta}\Sach{Cäsar}\Sach[Context]{\CONTEXT}\Sach{COBOL}\Sach{Cäsium}
\Sach{Igel}\Sach{Jagertee}\Sach{Humboldt}\Sach{infulk}\Sach{infulm}

\Abk{ADN}, \Abk{ANC}, \Abk{AV}

\section{Abkürzungen}
\placelistofabbreviations %[criterium=all]

\section{Sachregister}
\placeregister[Sach]

%\infull{AV}
%\infull{AFL}

\stoptext

-----

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2017-09-23 22:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-23 10:40 abbreviations: \infull always in small caps Henning Hraban Ramm
2017-09-23 19:28 ` Thomas A. Schmitz
2017-09-23 22:12   ` Henning Hraban Ramm
2017-09-23 22:45     ` Henning Hraban Ramm [this message]
2017-09-25 17:50       ` Sorting of abbreviations in index Henning Hraban Ramm
2017-10-01 13:31         ` Henning Hraban Ramm
2017-10-06 15:13           ` Henning Hraban Ramm
2017-10-09 10:42       ` Jano Kula
2017-10-09 15:35         ` Henning Hraban Ramm
2017-10-09 16:55           ` Jano Kula
2017-10-09 17:03             ` Floris van Manen
2017-09-23 22:46     ` abbreviations: \infull always in small caps Henning Hraban Ramm

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=5AF879E4-42C3-492F-8596-1D880117D3B6@fiee.net \
    --to=texml@fiee.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).